Skip to content

Instantly share code, notes, and snippets.

View chirayuk's full-sized avatar

Chirayu Krishnappa chirayuk

View GitHub Profile
#!/usr/bin/env zsh
PREFIX=/usr/local
set -vxe
# Script for installing tmux and dependencies.
# tmux will be installed in /usr/local/lib by default.
# Prerequisites: - gcc
@chirayuk
chirayuk / keybase.md
Created October 25, 2014 14:48
keybase.io verification

Keybase proof

I hereby claim:

  • I am chirayuk on github.
  • I am chirayuk (https://keybase.io/chirayuk) on keybase.
  • I have a public key whose fingerprint is B2E6 E629 ABA6 0019 AFD9 ADA3 2F95 BB13 8516 557D

To claim this, I am signing this object:

@chirayuk
chirayuk / index.css
Last active August 29, 2015 14:02
ng-show example for tran
.myDiv {
padding:10px;
border:1px solid black;
background:white;
overflow: hidden;
}
.myDiv.ng-hide-add.ng-hide-add-active,
.myDiv.ng-hide-remove {
opacity: 0;
@chirayuk
chirayuk / .tmux.conf
Last active March 23, 2019 16:11
~/.tmux.conf for tmux 1.5 (e.g. for use on Cloud9 console.)
# This is a modified version that supports tmux 1.5 so you can use tmux on Cloud9 IDE.
# https://gist.github.com/chirayuk/6084618
# NOTE: The default TERM value under Cloud9 is set to vt100. This won't give
# you colors under tmux. Before running tmux, "export
# TERM=screen-256color" and then run tmux. If you already ran tmux
# before doing so, you can "tmux kill-server" to kill it and start a new
# one.
#nop# # https://gist.github.com/chirayuk/5377283
@chirayuk
chirayuk / reset_launch_services
Created May 31, 2013 00:01
Reset launch services – to fix filetype bindings, copy/paste, etc.
#!/bin/sh
# Ref:
# http://krypted.com/mac-os-x/lsregister-associating-file-types-in-mac-os-x/
# http://apple.stackexchange.com/questions/7075/how-can-i-reinstall-an-application-that-the-mac-app-store-thinks-is-installed-al
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
#!/usr/bin/python -E
# -*- coding: UTF-8 -*-
# Usage: In ~/.tmuxrc,
# set default-command /Users/chirayu/ck/vcs/ck5/scripts/for_os_x/tmux_shell_with_clipboard_support.sh
import ctypes
import os
import platform