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
echo "Enter your slave branch:" | |
read your_branch | |
echo "Enter your main branch:" | |
read master_branch | |
changes=$(git --no-pager diff --name-only "$master_branch" "$your_branch") | |
while IFS= read -r file; | |
do | |
file_changes=$(git --no-pager diff "$master_branch" "$your_branch" -- "$file") | |
line_count=$(echo "$file_changes" | wc -l) | |
if [ "$line_count" -eq 3 ]; then |
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
// ==UserScript== | |
// @name Pause = Next Track Workaround Yandex Music Script | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-03-01 | |
// @description try to take over the world! | |
// @author You | |
// @match https://music.yandex.ru/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=yandex.ru | |
// @grant none | |
// ==/UserScript== |
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
while true; do rsync -r --ignore-times --rsh="/usr/bin/sshpass -p SecretPassword ssh -o StrictHostKeyChecking=no -l root" ./ [email protected]:/var/www/path/on/remote/serv/; inotifywait -r ./; 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
#!/bin/sh | |
############ | |
# Usage | |
# Pass a path to watch, a file filter, and a command to run when those files are updated | |
# | |
# Example: | |
# watch.sh "node_modules/everest-*/src/templates" "*.handlebars" "ynpm compile-templates" | |
############ |
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
$table->setListPrefix(''); | |
$table->setChars([ | |
Table::CHAR_TOP => '', | |
Table::CHAR_TOP_MID => '', | |
Table::CHAR_TOP_LEFT => '', | |
Table::CHAR_TOP_RIGHT => '', | |
Table::CHAR_BOTTOM => '', | |
Table::CHAR_BOTTOM_MID => '', | |
Table::CHAR_BOTTOM_LEFT => '', | |
Table::CHAR_BOTTOM_RIGHT => '', |