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)"

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 / 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
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),