Skip to content

Instantly share code, notes, and snippets.

@jenhsun
jenhsun / update_git_repos.sh
Created Jun 21, 2020 — forked from douglas/update_git_repos.sh
Update all git repositories under a base directory
View update_git_repos.sh
#!/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
View keybase.md

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:

View keybase.md

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 Jan 2, 2016 — 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
View Open iterm tab here
-- 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 Sep 21, 2014
rbenv output 4
View config.log
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 Sep 21, 2014
rbenv output 3
View config.log
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 Sep 21, 2014
rbenv output 2
View config.log
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 Sep 20, 2014
rbenv installation output
View config.log
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. ##
You can’t perform that action at this time.