Skip to content

Instantly share code, notes, and snippets.

@cdkamat
cdkamat / WhiteFox-Aria-CDK.json
Created March 4, 2020 21:19
WhiteFox key configuration
{
"header": {
"Name": "WhiteFox",
"Layout": "AriaBlank",
"Base": "AllBlank",
"Version": "0.2",
"Author": "HaaTa (Jacob Alexander) 2015",
"KLL": "0.3c",
"Date": "2016-05-30",
"Generator": "KIICONF 0.2"
@cdkamat
cdkamat / install-tmux
Last active March 17, 2023 01:03 — forked from rothgar/install-tmux
Install tmux 2.3 on rhel/centos 6
# Install tmux on Centos release 6.5
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -xf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local
@cdkamat
cdkamat / emacs.repo
Created May 3, 2014 00:54
Emacs.repo for CentOS 6.5
[emacs]
name=Emacs 24.2 repo
baseurl=http://pj.freefaculty.org/EL/6/x86_64/
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=http://pj.freefaculty.org/EL/PaulJohnson-BinaryPackageSigningKey
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
@cdkamat
cdkamat / gist:5425865
Last active December 16, 2015 11:18
git subtree add
Used this
# Adding a repository as a subtree to your current repository
$ git subtree add --prefix=path/in/curr/repo \
git://github.com/yourname/your-repo.git master
git log has entry and histories (i.e all commits) of both repositories
commit d0b0cdeeb29d4512c7426e8f1680505aa3f3c03c
@cdkamat
cdkamat / .xmodmap
Last active March 23, 2017 23:08
.xmodmap
!
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
@cdkamat
cdkamat / org_latex.org
Created December 15, 2012 20:45
Standard header options for org-mode files that I want to convert to LaTeX and/or PDF

@cdkamat
cdkamat / emacs-format-file.el
Created October 18, 2012 07:25
Emacs function to batch untabify and reindent
;;; File: emacs-format-file
;; http://www.cslab.pepperdine.edu/warford/BatchIndentationEmacs.html
;; to be run as --
;; emacs -batch *.[ch] -l ~/src/scripts/emacs-format-file -f emacs-format-function
(defun emacs-format-function ()
"Format the whole buffer."
(if (< 1 (count-windows))
(delete-other-windows (selected-window)))
(catch 'tag
@cdkamat
cdkamat / tomorrow-night-theme.el
Created June 21, 2012 18:04
Tomorrow Night theme with my wombat modifications
;;; tomorrow-night-theme.el --- custom theme for faces
;;; Commentary:
;;
;;; Tomorrow Night Theme
;;
;; Originally by Chris Kempson https://github.com/ChrisKempson/Tomorrow-Theme
;; Ported to GNU Emacs by Chris Charles
;; Ported to GNU Emacs 24's built-in theme system by Jim Myhrberg (@jimeh)
;; Lots of modifications by Chinmay Kamat (@cdkamat)