Skip to content

Instantly share code, notes, and snippets.

View shengchiliu's full-sized avatar

Sheng-Chi Liu shengchiliu

View GitHub Profile
@shengchiliu
shengchiliu / save_chrome_url.rb
Created April 19, 2018 16:02 — forked from pdxmph/save_chrome_url.rb
Add a URL from Chrome to Safari's reading list
#!/usr/bin/env ruby -wKU
require "rubygems"
require "appscript"
include Appscript
chrome = app("Google Chrome")
safari = app("Safari")
chrome_tab = chrome.windows[1].active_tab
@shengchiliu
shengchiliu / Git push deployment in 7 easy steps.md
Created April 21, 2018 18:28 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@shengchiliu
shengchiliu / README.md
Created May 8, 2018 01:39 — forked from nicerobot/README.md
Mac OS X uninstall script for packaged install of node.js

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@shengchiliu
shengchiliu / Uninstall-pkg.md
Created May 8, 2018 01:43 — forked from githubutilities/Uninstall-pkg.md
Uninstall pkg manually in OS X

Mac Uninstall pkg Manually

  • using pkgutil
# list all your installed packages
pkgutil --pkgs

# show your package info
pkgutil --pkg-info 
@shengchiliu
shengchiliu / .bash_aliases
Created May 8, 2018 12:15 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset