Skip to content

Instantly share code, notes, and snippets.

Ignacio Galindo joiggama

View GitHub Profile
View Vagrantfile.docker.pg
# 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
View temp.vimrc
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" ~/.vimrc
"
" Dependencies:
"
" - fzf
" - neovim editor
" - python-3's neovim package
" - rbenv
View 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 Jan 27, 2017
Vim tips & tricks
View vim.md

Vim tips & tricks

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

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

Git

Remove all merged branches:

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

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
View keybase.md

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 Dec 20, 2015
Ctags for my gems, yo!
View ctags.sh
alias rctags="touch ./tags; rm ./tags ; ctags -R --exclude=.git --exclude=log --exclude=tmp * ~/.rbenv/versions/\$(ruby_version)/lib/ruby/gems/**/gems/*"
View facebook_unkown_gender.html
<select id="sex" name="sex" class="">
<option value="1">Mujer</option>
<option value="2">Hombre</option>
<option value="100" selected="1">Anything</option>
</select>
You can’t perform that action at this time.