Skip to content

Instantly share code, notes, and snippets.

View Ketouem's full-sized avatar

Cyril Thomas Ketouem

View GitHub Profile
@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

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 / 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
@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 / 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 / stKeyboardShortcuts.md
Created January 18, 2016 10:22
Useful SublimeText keyboard shortcuts
  • Ctrl(Cmd)+Shift+R: Search symbol in project
  • Ctrl(Cmd)+R: Search symbol in current file
  • Ctrl(Cmd)+P: Search file
  • Ctrl(Cmd)+Shift+P: Display list of commands
  • Ctrl(Cmd)+K, Ctrl(Cmd)+Shift+Up: Split Pane and sends to right pane
  • Ctrl(Cmd)+/: Toggle comment
  • Ctrl(Cmd)+Shift+Space: Select all in current scope
  • Ctrl+G: Go to line
  • Ctrl(Cmd)+F: Search in current file
  • Ctrl(Cmd)+Shift+F: Search & replace (in folders)
@Ketouem
Ketouem / sublimePackages.md
Last active January 18, 2016 10:31
SublimeText useful packages
@Ketouem
Ketouem / timestampCliOutput.sh
Created January 18, 2016 10:17
Adding a timestamp on each shell output line.
# OSX brew install moreutils
# Ubuntu apt-get install moreutils
<command> | ts '[%Y-%m-%d %H:%M:%S]'
@Ketouem
Ketouem / anacondaProject.json
Created January 18, 2016 10:13
SublimeText x Python configuration files
"settings":
{
"python_interpreter": "<path to python interpreter>",
"test_command": "<path to python interpreter> -m nose --nocapture"
}
@Ketouem
Ketouem / changeCommitAuthor.sh
Created January 18, 2016 10:10
Change the author of a commit
git rebase -i -p <some HEAD before all of your bad commits>
git commit --amend --author "New Author Name <email@address.com>" --no-edit && \
git rebase --continue