Skip to content

Instantly share code, notes, and snippets.

View Ketouem's full-sized avatar

Cyril Thomas Ketouem

View GitHub Profile
@Ketouem
Ketouem / parseYAML.sh
Created January 18, 2016 11:12
Parse YAML from the CLI suing Ruby
function ryaml {
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
}
@Ketouem
Ketouem / escputil.py.cgi
Created January 26, 2016 14:14
Bridge escputil to cgi using Python
#!/usr/bin/python2.7
import subprocess
print 'Content-type: text/html'
print ''
print '<html>'
print '<head>'
@Ketouem
Ketouem / gitprojects.sh
Created January 27, 2016 09:28
Goes through all the folder and apply a `git pull --rebase` from master
for file in */ ; do
if [[ -d "$file" && ! -L "$file" ]]; then
echo "$file is a directory, launching git commands.";
cd $file && git checkout master && git reset HEAD --hard && git pull --rebase --prune;
cd ..;
fi;
done

Keybase proof

I hereby claim:

  • I am Ketouem on github.
  • I am ketouem (https://keybase.io/ketouem) on keybase.
  • I have a public key whose fingerprint is 1110 C301 7FDA B877 FADE 9D1A 9EF1 9D13 7306 65C7

To claim this, I am signing this object:

@Ketouem
Ketouem / atomPackages.txt
Last active October 12, 2017 15:57
Installed Atom packages list
apm list --installed --bare
atom-fix-path@0.1.0
atom-html-preview@0.2.2
atom-ide-ui@0.5.0
autocomplete-python@1.10.3
busy-signal@1.4.3
file-icons@2.1.13
git-plus@7.10.0
highlight-selected@0.13.1
ide-python@0.1.1