Skip to content

Instantly share code, notes, and snippets.

@lukehsiao
lukehsiao / install-linux.sh
Last active January 3, 2018 19:09
Post-install script for setting up an xubuntu machine.
#!/bin/bash
NOTEBOOK=true
# Add repositories
sudo add-apt-repository -y "deb https://dl.google.com/linux/chrome/deb/ stable main"
sudo add-apt-repository -y pps:yubico/stable
if [ "$NOTEBOOK" = true ] ; then
sudo add-apt-repository -y ppa:linrunner/tlp
@lukehsiao
lukehsiao / keybase.md
Last active November 4, 2017 00:30
My keybase.io proof.

Keybase proof

I hereby claim:

  • I am lukehsiao on github.
  • I am lukehsiao (https://keybase.io/lukehsiao) on keybase.
  • I have a public key ASCLA2H_w5c-A0L3j4ZjuN_tw_MrehMUMrgbjERxxM3B3Qo

To claim this, I am signing this object:

@lukehsiao
lukehsiao / cfg-init
Last active April 30, 2017 15:25
dotfile-cfg
git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc
#!/bin/bash
# AUTHOR: (c) Rob W 2012, modified by MHC (http://askubuntu.com/users/81372/mhc)
# NAME: GIFRecord 0.1
# DESCRIPTION: A script to record GIF screencasts.
# LICENSE: GNU GPL v3 (http://www.gnu.org/licenses/gpl.html)
# DEPENDENCIES: byzanz,gdialog,notify-send (install via sudo add-apt-repository ppa:fossfreedom/byzanz; sudo apt-get update && sudo apt-get install byzanz gdialog notify-osd)
# Time and date
TIME=$(date +"%Y-%m-%d_%H%M%S")
@lukehsiao
lukehsiao / uncrustify.cfg
Last active February 13, 2016 19:14
My Google C++ Style Inspired Uncrusity Config
indent_align_string=false
indent_braces=false
indent_braces_no_func=false
indent_brace_parent=false
indent_namespace=false
indent_extern=false
indent_class=true
indent_class_colon=true
indent_else_if=false
indent_func_call_param=false