- spc f s Save a buffer
- spc f S Save all opened buffers
- spc b s Open (switch) to a buffer with helm
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
# Prerequisit: ImageMagick installed | |
def file_exists?(filename) | |
`[ -f #{filename} ] && echo "Found" || echo "Not found"` == "Not found\n" | |
end | |
['landing'].each do |screengrab_file_name| | |
before = screengrab_file_name + '_before.png' | |
after = screengrab_file_name + '_after.png' | |
difference = screengrab_file_name + '_difference.png' |
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 | |
if [ ! -z "$(find ~/.mail/*/INBOX -type f)" ]; then | |
printf '📥 ' | |
for box in `ls ~/.mail | grep -v temp`; do | |
emails=$(find ~/.mail/$box/INBOX -type f | wc -l) | |
[ $emails -ne 0 ] && printf '%s:%d ' ${box:0:1} $emails | |
done | |
printf '~\n' | |
fi |