Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
Ship the shipping shippers.

Alfonso Gómez-Arzola agarzola

:shipit:
Ship the shipping shippers.
View GitHub Profile
@agarzola
agarzola / git-prompt.plugin.zsh
Last active Aug 24, 2018
My zsh theme and git-prompt overrides
View git-prompt.plugin.zsh
# ZSH Git Prompt Plugin from:
# http://github.com/olivierverdier/zsh-git-prompt
__GIT_PROMPT_DIR="${0:A:h}"
## Hook function definitions
function chpwd_update_git_vars() {
update_current_git_vars
}
@agarzola
agarzola / lastpass_shortcuts.sh
Last active Mar 5, 2017
Shortcuts to my most used lpass commands
View lastpass_shortcuts.sh
function lastpass () {
if [ "$1" ]; then
if [ "$2" ]; then
if [ "$1" = "all" ] || [ "$1" = "password" ] || [ "$1" = "username" ] || [ "$1" = "url" ] || [ "$1" = "notes" ]; then
requested_part="$1"
else
requested_part="field=$1"
fi
requested_account="$2"
else
@agarzola
agarzola / gist:45bb1f3161fee3e9768bcf029401eddb
Created Jan 30, 2017 — forked from anonymous/gist:b9dab8b40252ba9d090fd8629af8aab8
Crockpot Caramelized Pork Ramen Noodle Soup w/Curry Roasted Acorn Squash
View gist:45bb1f3161fee3e9768bcf029401eddb
*
yields: 4 BOWLS OF SOUP + EXTRA PORK serving size:
*
* preparation time: 25 MINUTES
*
* cook time: 7 HOURS
*
* total time: 7 HOURS 25 MINUTES
@agarzola
agarzola / stockquote.sh
Created May 12, 2016
Some functions to get stock info from the command line because who needs friends?
View stockquote.sh
#!/bin/zsh
function stock {
if [[ $* == *--clean* ]]
then
clean=true
else
clean=false
fi
html=$(curl -s https://finviz.com/quote.ashx?t=$1);
@agarzola
agarzola / .zshrc
Last active May 5, 2016
Files relevant to my zsh config
View .zshrc
# Path to your oh-my-zsh installation.
export ZSH=/Users/agarzola/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
View cslewis_on_tyranny.md

“Of all tyrannies, a tyranny sincerely exercised for the good of its victims may be the most oppressive. It would be better to live under robber barons than under omnipotent moral busybodies. The robber baron’s cruelty may sometimes sleep, his cupidity may at some point be satiated; but those who torment us for our own good will torment us without end for they do so with the approval of their own conscience. They may be more likely to go to Heaven yet at the same time likelier to make a Hell of earth. This very kindness stings with intolerable insult. To be ‘cured’ against one's will and cured of states which we may not regard as disease is to be put on a level of those who have not yet reached the age of reason or those who never will; to be classed with infants, imbeciles, and domestic animals.”

View eduardo_monti.md

Mi nene paseó conmigo sin correa por 11 años. Yo sabía que era un riesgo que me tomaba, y la idea de que algún día me saliera el tiro por la culata de vez en cuando me atormentaba…

Pero, ¡cómo negarnos el placer de esa colaboración/negociación diaria! ¡Dos veces al dia!… Una colaboración bendecida por las diosas, sin duda alguna.

Qué honor poder caminar esos 11 años contigo, Monti. Qué bien caminábamos. ¡Qué mucho gozamos, bebesito!!!

> Gracias por tanto amoL…

View less2stylus.js
// Usage : less2stylusDir('../src/css/');
var fs = require('fs');
// this less 2 stylus conversion script make a stylus easy to read syntax
// - let the braces
// - replace the @ for var as $
// - let semicolons
function less2stylus(less)
View keybase.md

Keybase proof

I hereby claim:

  • I am agarzola on github.
  • I am alfonso (https://keybase.io/alfonso) on keybase.
  • I have a public key whose fingerprint is F7FD 7F5D 4381 CB39 0F26 54FE E052 A76E 977B 9D04

To claim this, I am signing this object:

@agarzola
agarzola / directory-and-git-state.sh
Last active Oct 7, 2018 — forked from mcjim/.bashrc
Git branch, dirty and stash state in Bash prompt.
View directory-and-git-state.sh
# Tweak presentation and add commits ahead/behind.
# Quick fork by @mcjim to add stash status and tweak to suit his style.
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# host dir master $ # clean working directory
# host dir master* $ # dirty working directory
# host dir master*^ $ # dirty working directory with stash
# host dir master^ $ # clean working directory with stash
function parse_git_dirty {