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
@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),
@gzfrancisco
gzfrancisco / gz.zsh-theme
Created November 11, 2012 10:36
My ohzsh theme
# Fino theme by Max Masnick (http://max.masnick.me)
# Use with a dark background and 256-color terminal!
# Meant for people with RVM and git. Tested only on OS X 10.7.
# You can set your computer name in the ~/.box-name file if you want.
# Borrowing shamelessly from these oh-my-zsh themes:
# bira
# robbyrussell
@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
@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 / 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 / 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

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

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@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
@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