Skip to content

Instantly share code, notes, and snippets.

View gzfrancisco's full-sized avatar
🤖
Bender of Code

Francisco Granados Gómez gzfrancisco

🤖
Bender of Code
View GitHub Profile
@gzfrancisco
gzfrancisco / osx_install.sh
Created October 18, 2015 07:18 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@gzfrancisco
gzfrancisco / permit_params_from.rb
Last active August 29, 2015 14:23
Rails 4 permit params DSL
def method_missing(symbol, *args, &block)
p "Start method_missing from #{self} at #{symbol}"
return unless symbol.to_s.start_with?('permit_params_from_')
object = symbol.to_s.sub('permit_params_from_', '')
context = []
def context.method_missing(symbol, &block_b)
p "Start context from #{self} at #{symbol}"
second_context = []
def second_context.method_missing(symbol)
self << symbol
@gzfrancisco
gzfrancisco / Before format protocol.markdown
Last active August 29, 2015 14:21
Before format protocol

Before format protocol

  1. Remove and backup licenses and credentials
  2. VMWare Fusion
  3. Sublime Text 3
  4. Adobe creative cloud
  5. Heroku
  6. AWS-CLI
  7. AWS-Elastic Beanstalk
  8. Xcode developer program
@gzfrancisco
gzfrancisco / README.markdown
Last active August 29, 2015 14:01
Script to get the hash of a folder.

Hash a entire folder

Script in bash which obtains get hash values of entire folders.

ToDo's

  • Man page
  • Usage
  • Take the arguments for:
  • Folder to hash

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@gzfrancisco
gzfrancisco / programming-fonts.md
Last active May 25, 2019 03:54
List with fonts recommended for programming.

Programming fonts

A list with fonts recomended for programming

@gzfrancisco
gzfrancisco / requerimientos prompt
Created August 20, 2013 01:44
Requerimientos en el diseño de mi prompt
# Diseño de prompt
## Requerimientos para prompt
* Hora
* Usuario solo si es root
* Equipo
* Git o hg solo si existe
* Branch de git o hg si existe
* Version de ruby solo si hay una en especifico
* Carpeta actual
@gzfrancisco
gzfrancisco / Sublime text 2 Shortcuts.textile
Last active December 19, 2015 08:59 — forked from rodrigoluizgenz/gist:5928383
Sublime text 2 shortcuts reference

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@gzfrancisco
gzfrancisco / ruby_shell_command.rb
Last active December 18, 2015 14:09 — forked from JosephPecoraro/shell-execution.rb
Ways to execute a shell script in Ruby by Joseph Pecoraro
# Ways to execute a shell script in Ruby
# Example Script - Joseph Pecoraro
cmd = "echo 'hi'" # Sample string that can be used
# 1. Kernel#` - commonly called backticks - `cmd`
# This is like many other languages, including bash, PHP, and Perl
# Returns the result of the shell command
# Docs: http://ruby-doc.org/core/classes/Kernel.html#M001111