Skip to content

Instantly share code, notes, and snippets.

@jenhsun
jenhsun / update_git_repos.sh
Created June 21, 2020 20:53 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do

Keybase proof

I hereby claim:

  • I am jenhsun on github.
  • I am jenhsun (https://keybase.io/jenhsun) on keybase.
  • I have a public key whose fingerprint is B0DD A800 1709 E0B5 AEF0 882D AAE1 1822 7402 F50D

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jenhsun on github.
  • I am jenhsun (https://keybase.io/jenhsun) on keybase.
  • I have a public key ASC4tDZ42kcaVHJATEhdOXHRdo2TYAd0JkotgCLA49yXZQo

To claim this, I am signing this object:

@jenhsun
jenhsun / Open iterm tab here
Created January 2, 2016 16:01 — forked from eric-hu/Open iterm tab here
Apple script to open an iterm2 tab from right-clicking on a file or folder in Finder. To use: (1) Open Automator (2) Create a new service (3) Change "Service receives selected" drop downs to "Files or folders" in "Finder" (4) Select "Run applescript" from the sidebar, then paste this script in and save
-- Adapted from these sources:
-- http://peterdowns.com/posts/open-iterm-finder-service.html
-- https://gist.github.com/cowboy/905546
--
-- Modified to work with files as well, cd-ing to their container folder
on run {input, parameters}
tell application "Finder"
set my_file to first item of input
set filetype to (kind of (info for my_file))
-- Treats OS X applications as files. To treat them as folders, integrate this SO answer:
@jenhsun
jenhsun / config.log
Created September 21, 2014 14:31
rbenv output 4
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local/var/rbenv/versions/2.1.3 --with-openssl-dir=/usr/local/opt/openssl --with-readline-dir=/usr/local/opt/readline
## --------- ##
## Platform. ##
@jenhsun
jenhsun / config.log
Created September 21, 2014 09:46
rbenv output 3
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local/var/rbenv/versions/2.1.3 --with-openssl-dir=/usr/local/opt/openssl --with-readline-dir=/usr/local/opt/readline
## --------- ##
## Platform. ##
@jenhsun
jenhsun / config.log
Created September 21, 2014 00:26
rbenv output 2
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local/var/rbenv/versions/2.1.3 --with-openssl-dir=/usr/local/opt/openssl --with-readline-dir=/usr/local/opt/readline
## --------- ##
## Platform. ##
@jenhsun
jenhsun / config.log
Created September 20, 2014 16:53
rbenv installation output
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local/var/rbenv/versions/2.1.3 --with-openssl-dir=/usr/local/opt/openssl --with-readline-dir=/usr/local/opt/readline
## --------- ##
## Platform. ##