Skip to content

Instantly share code, notes, and snippets.

@tgrrtt
tgrrtt / tgrrtt.zsh-theme
Last active August 29, 2015 14:03
My zsh prompt theme
PROMPT='%{$fg[cyan]%}%c%{$reset_color%} %{$fg_bold[cyan]%}➜ '
RPROMPT='%{$fg[green]%}$(git_prompt_info)% %{$fg_bold[blue]%}%*%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="<%{$fg[blue]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%} %{$fg[red]%}✗%{$fg[green]%}>%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}>"
@tgrrtt
tgrrtt / gist:c93a1733c493e98b392a
Created July 17, 2014 21:09
PR for only a specific commit
git checkout -b upstream upstream/master
git cherry-pick <SHA hash of commit>
git push origin upstream
@tgrrtt
tgrrtt / DefaultKeyBinding.dict
Created July 17, 2014 22:49
Emacs Key Bindings
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
{
"nodes": [
{
"name": "Tyler",
"id": "1"
},
{
"name": "Aric",
"id": "2"
},
@tgrrtt
tgrrtt / gist:6a186ee1fdf618d1b313
Created October 17, 2014 20:57
fullstack-angular azure web.config
<?xml version="1.0" encoding="utf-8"?>
<!--
This configuration file is required if iisnode is used to run node processes behind
IIS or IIS Express. For more information, visit:
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config
-->
<configuration>
<system.webServer>
@tgrrtt
tgrrtt / keybase.md
Created October 21, 2014 00:11
keybase

Keybase proof

I hereby claim:

  • I am tgrrtt on github.
  • I am tgrrtt (https://keybase.io/tgrrtt) on keybase.
  • I have a public key whose fingerprint is 3FBA ED63 1781 3484 A579 CAC4 3FB1 E673 E743 4076

To claim this, I am signing this object:

@tgrrtt
tgrrtt / travis.yml
Created November 11, 2014 00:39
Travis Example
language: node_js
node_js:
- '0.10'
notifications:
email: false
after_success:
- test $TRAVIS_PULL_REQUEST = false
&& echo -e "Host *.cloudapp.net\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
&& openssl aes-256-cbc -K $encrypted_1d50cdfa274b_key -iv $encrypted_1d50cdfa274b_iv -in .travis/k.key.enc -out .travis/k.key -d
&& chmod 600 .travis/k.key
@tgrrtt
tgrrtt / newubuntu.sh
Last active August 29, 2015 14:09
New Ubuntu Setup w/ Nginx & Upstart
curl -sL https://deb.nodesource.com/setup | sudo bash - &&
sudo apt-get install -y nodejs
sudo apt-get update &&
sudo apt-get install nginx &&
sudo apt-get install git
## upgrade aps and resolve deps with the more important ones
sudo apt-get dist-upgrade
#chagne to root
@tgrrtt
tgrrtt / deploy.sh
Created November 11, 2014 00:44
Deploy script
#!/bin/bash
wget $file
sudo stop $upstartName
# if dist exists (or public or whatever the tar extracts to
if [ -e dist ]
then
sudo rm -rf dist
fi
# extact the tar
@tgrrtt
tgrrtt / travis.yml
Last active January 10, 2021 17:58
Travis-CI Config File (.travis.yml)
# Set up notification options
notifications:
email:
recipients:
- one@example.com
- other@example.com
# change is when the repo status goes from pass to fail or vice versa
on_success: change
on_failure: always