Skip to content

Instantly share code, notes, and snippets.

🐶
🐕

Lucas Andión Montáns andion

🐶
🐕
Block or report user

Report or block andion

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andion
andion / Cheat Compilation
Last active May 25, 2016 — forked from afair/tmux.cheat
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
View Cheat Compilation
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@andion
andion / slides.md
Created Feb 4, 2015
Sample SlidePack Slides
View slides.md

--

SlidePack

A really simple slides generator & viewer

--

Simple

@andion
andion / sample_slides.md
Last active Aug 29, 2015
Slide-pack-me test
View sample_slides.md

--

SlidePack

A really simple slides generator & viewer

--

Simple

@andion
andion / agnoster-andion.zsh-theme
Last active Jun 17, 2017
Oh-my-zsh agnoster theme modified to suit my needs
View agnoster-andion.zsh-theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@andion
andion / .gitignore
Last active Apr 9, 2018
Play all ~/Music/**/*{.mp3} files using afplay
@andion
andion / loteria_navidad.rb
Created Dec 22, 2010
Similar lottery-check script to https://gist.github.com/751314 but only print something if you've won something
View loteria_navidad.rb
#!/usr/bin/env ruby
url = 'http://api.elpais.com/ws/LoteriaNavidadPremiados?n='
urls = {}
if ARGV.any?
ARGV.each do |n|
urls[n] = "#{url}#{n.to_i}"
end
@andion
andion / loteria_navidad.rb
Created Dec 22, 2010
A little script to check spanish christmas lottery numbers on real time checking elpais.com API
View loteria_navidad.rb
#!/usr/bin/env ruby
url = 'http://api.elpais.com/ws/LoteriaNavidadPremiados?n='
urls = {}
if ARGV.any?
ARGV.each do |n|
urls[n] = "#{url}#{n.to_i}"
end
View lottery.rb
%w(won won won won won won LOST).inject(%w(lucas asis oscar adrian alejo marcos david)) {|acc,s| puts [acc.delete_at(rand(acc.length)),s].join(' ');sleep 3 if acc.length > 1; acc}
View ReadlineProblem with RVM
rvm --trace package install readline
--trace package install readline
rvm 0.1.23 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]
+ [[ -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 3 -gt 0 ]]
View gist:333058
This example shows how to setup an environment running Rails 3 beta under 1.9.1 with a 'rails3' gem set.
∴ rvm update --head
# ((Open a new shell))
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install 1.9.1
# Switch to 1.9.1
∴ rvm 1.9.1
You can’t perform that action at this time.