sudo dnf check-update
sudo dnf update
This file contains hidden or 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 hidden or 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
ffmpeg -framerate 30 -i frame_%03d.png -c:v prores_ks -profile:v 4444 -pix_fmt yuva444p10le -alpha_bits 8 -q:v 20 output.mov |
This file contains hidden or 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
// Based on: https://dfns.dyalog.com/n_sudoku.htm | |
// x(,/{@[x;y;]'(!10)^x*|/p[;y]=p,:,3/:-3!p:!9 9}')/&~*x | |
const solveSudoku = (board) => { | |
const grid = Array.isArray(board[0]) | |
? board | |
: Array.from({ length: 9 }, (_, i) => board.slice(i * 9, (i + 1) * 9)); | |
if (solve(grid)) { | |
return grid; |
This file contains hidden or 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 "\033[32mUpdating:\033[0m $dir\n$(git -C "$dir" remote get-url origin 2>/dev/null || echo "No remote for $dir")"; git -C "$dir" pull || echo "Failed $dir"; echo; done' |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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' |
NewerOlder