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
cdf() { | |
target=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'` | |
if [ "$target" != "" ]; then | |
cd "$target"; pwd | |
else | |
echo 'No Finder window found' >&2 | |
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
# pip2 | |
pip2 list outdated T -n+3 | awk '{print $1}' | xargs -n1 pip2 install -U --user | |
pip3 list outdated T -n+3 | awk '{print $1}' | xargs -n1 pip3 install -U --user |
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
// ==UserScript== | |
// @name DeliverooBlacklist | |
// @version 1 | |
// @grant none | |
// @include https://deliveroo.com.au/restaurants/* | |
// ==/UserScript== | |
var blacklist = ["Guzman Y Gomez", "KFC", "McDonald's", "Nando's", "Gong Cha", "Subway" ]; | |
console.log("Running DeliverooBlacklist") |