Skip to content

Instantly share code, notes, and snippets.

@aliou
aliou / roar.sh
Created August 19, 2011 08:00 — forked from lsegal/sane_lion_defaults.sh
Resets some defaults in Lion, namely clearing the Launchpad, showing the user Library folder and some other stuff.
#################################### Keyboard ####################################
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
#################################### Trackpad ####################################
# Enable tap to click on a Magic Trackpad
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
@aliou
aliou / about.md
Last active October 1, 2015 00:28 — forked from jasonrudolph/about.md

Programming Achievements: How to Level Up as a Developer

This gist is part of a blog post. Check it out at here.

@aliou
aliou / install.sh
Created February 25, 2012 23:00
dotfiles install
#!/bin/sh
echo "Renaming old files to <file>_old."
mv ~/.bashrc ~/.bashrc_old 2>/dev/null
mv ~/.inputrc ~/.inputrc_old 2>/dev/null
mv ~/.profile ~/.profile_old 2>/dev/null
mv ~/.vim ~/.vim_old 2>/dev/null
mv ~/.vimrc ~/.vimrc_old 2>/dev/null
echo "Downloading dotfiles."
test : test.o
gcc test.o -o test
test.o : test.c
gcc -c test.c
#!/usr/bin/env ruby
require 'rubygems'
require 'gmail'
config_file = "#{ENV['HOME']}/.gmail"
unless File.exist?(config_file)
puts "You need to type your email and password (one per line) into `~/.gmail`."
exit!(1)
end
@aliou
aliou / gist:2366779
Created April 12, 2012 11:49
vim cheat sheet
Cursor movement
h - move left
j - move down
k - move up
l - move right
ctrl-b - page up
ctrl-f - page down
% - jump to matching brace
w - jump by start of words (punctuation considered words)
@aliou
aliou / ChromeReload.vim
Created April 12, 2012 18:31 — forked from brettbuddin/docksend.vim
Reload Google Chrome from Vim
function! ChromeReload()
let applescript = "-e \"tell application \\\"Google Chrome\\\" to tell the active tab of its first window \r
\reload \r
\end tell \r
\tell application \\\"Google Chrome\\\" to activate\""
silent exec "!osascript " . applescript
endfunction
command! ChromeReload call ChromeReload()
@aliou
aliou / gitmessage.txt
Created April 13, 2012 08:01
Git commit message template
# git config --global commit.template $HOME/.dotfiles/git/gitmessage.txt
[Subject]:
Added:
Change:
Fix:
Deleted:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script>
@aliou
aliou / install.sh
Created April 23, 2012 15:35
ultimate install script
if [ ! -d "/Developer/Applications/Xcode.app" ]; then
echo "Please install Xcode first. Exiting."
exit 1
fi
sudo echo ""