Skip to content

Instantly share code, notes, and snippets.

View despo's full-sized avatar
🌈

Despo Pentara despo

🌈
View GitHub Profile
@despo
despo / the_command_line_is_your_friend.md
Last active December 16, 2015 11:59
Rails Girls London lightning talk - The command line is your friend

Rails Girls London logo Rails Girls London - 19th-20th April 2013

Commandline basics

Basic filestystem structure

.
|____home

| |____despo

@despo
despo / retrieve_by_area.sh
Created August 6, 2012 20:50
cyprus-street-names api
curl http://cyprus-street-names.herokuapp.com/area/:area_name -H 'accept: application/json'
# The videos can be found at http://programme.scottishrubyconference.com/schedule
# Usage: ruby download_scotruby_videos.rb /path/to/directory
page = "http://video2012.scotlandonrails.com"
path = ARGV.first || '.'
[
[ "Continuous Delivery - A Better Software Deployment Strategy", "D1_GH_01-Ruby1280_b.mp4" ],
[ "The Rails View: The Junk Drawer Grows Up", "D1_GH_02-Ruby1280_b.mp4" ],
[ "Perfectionists Anonymous", "D1_GH_03-Ruby1280_b.mp4" ],
[ "ElasticSearch, AMQP and Ruby; or how I learned to stop spelunking and love the logs", "D1_GH_04-Ruby1280_b.mp4" ],
@despo
despo / .vimrc.disable_arrows
Created July 15, 2012 13:17
no arrow keys please
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
@despo
despo / gist:2942468
Created June 16, 2012 20:41
Greek for vim
" vim in Greek
map σ s
map ε e
map ρ r
map τ t
map υ y
map θ u
map ι i
map ο o
map π p
@despo
despo / gist:2311952
Created April 5, 2012 15:27
Fix `time` in zsh
export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S'
@despo
despo / gist:2310750
Created April 5, 2012 12:35
Sum of all lines in awk
awk '{s+=$1} END { print s}' <filename>
heroku keys:add # what is says
export JRUBY_OPTS="--1.9"
export JAVA_OPTS='-Xmx1024m -Xms256m -Xss1024k -d32'
# d32 - the JVM defaults to 64-Bit Server VM, which has a faster runtime but will give you great runtime performance but very slow start time
@despo
despo / hack.sh
Created March 31, 2012 11:01 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#