Skip to content

Instantly share code, notes, and snippets.

View MrChrisRodriguez's full-sized avatar

Christian Rodriguez MrChrisRodriguez

View GitHub Profile
@MrChrisRodriguez
MrChrisRodriguez / setup-mac.sh
Last active February 1, 2017 20:23 — forked from igilham/setup-mac.sh
Automate setting up software from a fresh install on Mac OS X
#!/bin/sh
# mac setup automation script based on
# http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Keybase proof

I hereby claim:

  • I am mrchrisrodriguez on github.
  • I am mrcr (https://keybase.io/mrcr) on keybase.
  • I have a public key whose fingerprint is 727B D811 CC01 3260 1787 8D77 308C E04B B19C 15E5

To claim this, I am signing this object:

@MrChrisRodriguez
MrChrisRodriguez / 0_reuse_code.js
Created April 2, 2014 15:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@MrChrisRodriguez
MrChrisRodriguez / google-apps-order-by-name
Created November 4, 2013 18:27
Google: Order groups by group name alphabetically. Requires jQuery
name_and_row = {};
center_panel = jQuery("#center-panel tbody");
center_panel.children().each(
function(i,e){
e = jQuery(e);
name_and_row[e.children(":nth-child(2)").text()] = e
})
reversed_rows = Object.keys(name_and_row).sort().reverse()
jQuery(reversed_rows).each(function(i,tag){
console.log(tag);
@MrChrisRodriguez
MrChrisRodriguez / asana-order-tags
Created October 11, 2013 01:13
Asana: Order tags alphabetically. Requires jQuery
tags_and_elements = {}
tags_browser = jQuery("#tags_browser [drag_drop_id]")
tags_browser.children().each(
function(i,e){
e = jQuery(e);
tags_and_elements[e.text()] = e;
})
reversed_tags = Object.keys(tags_and_elements).sort().reverse()
jQuery(reversed_tags).each(function(i,tag){
tags_browser.prepend(tags_and_elements[tag])