Skip to content

Instantly share code, notes, and snippets.

View andreadellacorte's full-sized avatar
🎯
Focusing

Andrea Della Corte andreadellacorte

🎯
Focusing
View GitHub Profile
@andreadellacorte
andreadellacorte / backup.sh
Last active August 27, 2018 18:35
MacOS Backup
#!/bin/zsh
SHELL=/bin/zsh
ZSH=/Users/andrea/.oh-my-zsh
PATH=/usr/local/sbin:/Users/andrea/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/opt/puppetlabs/bin:/improbable/tools/latest/mac
upgrade_oh_my_zsh () {
env ZSH=$ZSH sh $ZSH/tools/upgrade.sh
}
#!/bin/zsh
echo "Start Export Process"
echo "Log into Keybase..."
keybase login
echo "Exporting your PGP keys..."
keybase pgp export -o keybase.public.key
keybase pgp export -s -o keybase.private.key

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@andreadellacorte
andreadellacorte / grep-passive-voice.sh
Created February 27, 2016 19:59
Find passive voice - usage: cat file.txt | ./grep-passive-voice.sh
#!/bin/sh
# http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
irregulars="awoken|\
been|born|beat|\
become|begun|bent|\
beset|bet|bid|\
bidden|bound|bitten|\
bled|blown|broken|\
bred|brought|broadcast|\
@andreadellacorte
andreadellacorte / grep-lexical-illusions.sh
Last active February 27, 2016 19:58
Find lexical illusions - usage: cat file.txt | ./grep-lexical-illusions.sh
#!/bin/sh
# http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
exec egrep -i -n --color -Eo '(\b.+) \1\b' "$@"
@andreadellacorte
andreadellacorte / grep-weasel-words.sh
Last active February 27, 2016 20:56
Find weasel words - usage: cat file.txt | ./grep-weasel-words.sh
#!/bin/sh
# http://matt.might.net/articles/shell-scripts-for-passive-voice-weasel-words-duplicates/
weasels="many|various|very|fairly|several|extremely\
|exceedingly|quite|remarkably|few|surprisingly\
|mostly|largely|huge|tiny|((are|is) a number)\
|excellent|interestingly|significantly\
|substantially|clearly|vast|relatively\
|completely|helps|supports|useful|improved\
|improves|effective|almost|lots\