Skip to content

Instantly share code, notes, and snippets.

View joiggama's full-sized avatar

Ignacio Galindo joiggama

  • Málaga, Spain
  • 00:04 (UTC +02:00)
View GitHub Profile
# frozen_string_literal: true
Vagrant.configure("2") do |config|
config.vm.define "database" do |service|
service.vm.provider "docker" do |d|
d.image = "postgres:10.4"
d.ports = ["5433:5432"]
end
end
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" ~/.vimrc
"
" Dependencies:
"
" - fzf
" - neovim editor
" - python-3's neovim package
" - rbenv
@joiggama
joiggama / capybara cheat sheet
Created January 30, 2017 07:35 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@joiggama
joiggama / vim.md
Created January 27, 2017 16:40
Vim tips & tricks

Vim tips & tricks

Replace date format from mm/dd/* to dd/mm/*

%s/\(\d*\)\/\(\d*\)\//\2\/\1\//gc
@joiggama
joiggama / git.md
Created January 26, 2017 01:56
My git tips & tricks

Git

Remove all merged branches:

$ git branch --merged | awk '{ print $NF }' | xargs git branch -d
@joiggama
joiggama / tmux.md
Created January 18, 2017 17:55 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

Keybase proof

I hereby claim:

  • I am joiggama on github.
  • I am joiggama (https://keybase.io/joiggama) on keybase.
  • I have a public key whose fingerprint is 9C56 6351 EEAD 9C20 5839 A39A AAD0 2547 4714 B457

To claim this, I am signing this object:

@joiggama
joiggama / ctags.sh
Last active December 20, 2015 05:09
Ctags for my gems, yo!
alias rctags="touch ./tags; rm ./tags ; ctags -R --exclude=.git --exclude=log --exclude=tmp * ~/.rbenv/versions/\$(ruby_version)/lib/ruby/gems/**/gems/*"
@joiggama
joiggama / facebook_unkown_gender.html
Created January 23, 2013 06:46
Facebook unkown gender.
<select id="sex" name="sex" class="">
<option value="1">Mujer</option>
<option value="2">Hombre</option>
<option value="100" selected="1">Anything</option>
</select>