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
apt-get update | |
apt-get upgrade | |
apt-get install libcrack2-dev libssl-dev | |
apt-get install avahi-daemon | |
apt-get install netatalk | |
vim /etc/netatalk/AppleVolumes.default | |
<path_to_share> <sharename> allow:<username> cnidscheme:cdb options:usedots,upriv |
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
rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/ |
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
setInterval("MyApp.stores.myStore.sync()", 3000); |
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
#download fortune : http://download.cnet.com/fortune/3000-20416_4-8558.html | |
if brew is installed : | |
brew install fortune | |
#download cowsay : http://linux.softpedia.com/get/Utilities/cowsay-34561.shtml | |
brew install cowsay | |
# Install them | |
#fire up vim ! | |
vim ~/.profile | |
#add a cow say a fortune |
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
lsof -i -n | egrep 'COMMAND|LISTEN' |
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
self.moveTo(0,0); | |
//iphone | |
self.resizeTo(360,480); | |
//iphone retina | |
self.resizeTo(960,640); |
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
// {{#each_with_index records}} | |
// <li class="legend_item{{index}}"><span></span>{{Name}}</li> | |
// {{/each_with_index}} | |
Handlebars.registerHelper("each_with_index", function(array, fn) { | |
var total = array.length; | |
var buffer = ""; | |
for (var i = 0, j = array.length; i < j; i++) { | |
var item = array[i]; |
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
echo Hello ! | |
export PS1="\[\033[0;32m\]\u\[\033[0m\]@\[\033[0;34m\]\h\[\033[1;36m\]\w\[\0[0m\]: " | |
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/:/Users/igab/gtk/inst/lib/pkgconfig/ | |
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Users/gabrielstuff/bin:$PATH" | |
test -r /sw/bin/init.sh && . /sw/bin/init.sh | |
cd /tmp | |
if [ -h mysql.sock ] | |
then | |
echo mysql is ready ! | |
else |
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
Ven mar 16 00:33:24 ~/Sites/exquise/wp-content/themes/exquiseV2 [master] $ brew install -v haskell-platform | |
==> Downloading http://lambda.haskell.org/platform/download/2011.4.0.0/haskell-platform-2011.4.0.0.tar.gz | |
File already downloaded in /Users/gabrielstuff/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/gabrielstuff/Library/Caches/Homebrew/haskell-platform-2011.4.0.0.tar.gz | |
==> ./configure --prefix=/usr/local/Cellar/haskell-platform/2011.4.0.0 --enable-unsupported-ghc-version | |
./configure --prefix=/usr/local/Cellar/haskell-platform/2011.4.0.0 --enable-unsupported-ghc-version | |
************************************************** | |
* | |
* Haskell Platform Source Installer | |
* |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |