This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias multipull='find . -mindepth 1 -maxdepth 1 -type d | while read -r dir; do echo "Updating : $dir"; git -C "$dir" pull || echo "Failed $dir"; echo; done' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ zig build -Doptimize=ReleaseFast | |
install | |
└─ install generated to libghostty-macos.a | |
└─ lipo ghostty (libghostty.a) | |
└─ libtool ghostty (libghostty-x86_64-fat.a) | |
└─ zig build-lib ghostty ReleaseFast x86_64-macos.12.0 | |
└─ metallib Ghostty (Ghostty.metallib) | |
└─ metal Ghostty (Ghostty.ir) failure | |
/Code/ghostty/src/renderer/shaders/cell.metal:289:41: error: use of undeclared identifier 'mode' | |
if (uniforms.min_contrast > 1.0f && !(mode & ~(MODE_TEXT | MODE_TEXT_BLINK))) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...document.querySelectorAll( 'link[rel~=alternate][type="application/atom+xml"],' + 'link[rel~=alternate][type="application/rss+xml"],' + 'a[rel~=alternate][type="application/atom+xml"],' + 'a[rel~=alternate][type="application/rss+xml"]' )].map(link => link.href); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if the correct number of arguments is provided | |
if [ "$#" -ne 3 ]; then | |
echo "Usage: $0 <source_directory> <destination1> <destination2>" | |
exit 1 | |
fi | |
# Assign arguments to variables | |
source_dir="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
usage() { | |
echo "https://github.com/facefusion/facefusion" | |
echo "Usage: $0 -s source_image -t target_image [-r reference_face_position] [-e]" | |
echo " -s: Path to the source image" | |
echo " -t: Path to the target image" | |
echo " -r: Reference face position (default: 0)" | |
echo " -e: Toggle to remove the face enhancer (optional)" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
if [ -t 0 ]; then | |
# Argument | |
input="$1" | |
else | |
# STDIN | |
input="$(cat /dev/stdin)" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
device = 'cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'open3' | |
require 'json' | |
ffmpeg_bin = '/usr/local/bin/ffmpeg' | |
target_il = -16.0 | |
target_lra = +11.0 | |
target_tp = -1.0 | |
samplerate = '41k' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
launchctl unload -w ~/Library/LaunchAgents/com.google.keystone.xpcservice.plist | |
launchctl unload -w ~/Library/LaunchAgents/com.google.keystone.agent.plist | |
echo > ~/Library/LaunchAgents/com.google.keystone.xpcservice.plist | |
echo > ~/Library/LaunchAgents/com.google.keystone.agent.plist | |
chmod 644 ~/Library/LaunchAgents/com.google.keystone.xpcservice.plist | |
chmod 644 ~/Library/LaunchAgents/com.google.keystone.agent.plist | |
sudo chown root ~/Library/LaunchAgents/com.google.keystone.xpcservice.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { S3Client, PutObjectCommand, GetObjectCommand, DeleteObjectCommand } from "@aws-sdk/client-s3"; | |
const s3Client = new S3Client({ region: "us-east-1" }); | |
const Bucket = "BUCKET_NAME_GOES_HERE"; | |
export const handler = async (event) => { | |
let statusCode = 200; | |
let body = ``; | |
if (event.requestContext.http.method === "POST") { |
NewerOlder