Skip to content

Instantly share code, notes, and snippets.

View khale's full-sized avatar

Kyle Hale khale

View GitHub Profile

Keybase proof

I hereby claim:

  • I am khale on github.
  • I am kchale (https://keybase.io/kchale) on keybase.
  • I have a public key ASDID3Z3bLW54YGQR4G-ViLYL63ElyIeKC5jG9vNpq0LSwo

To claim this, I am signing this object:

@khale
khale / .tmux.conf
Last active June 26, 2018 22:45
Tmux config
set-option -g prefix C-q
# for nested tmux sessions
bind-key q send-prefix
# default 256 color
set -g default-terminal "screen-256color"
# fixes issues scrolling with shift-PageUp/Down
@khale
khale / .vimrc
Created June 26, 2018 21:10
vimrc
" install vundle if it doesn't exist
let vundle_initialized=1
let vundle_readme=expand('~/.vim/bundle/Vundle.vim/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle..."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/gmarik/Vundle.vim ~/.vim/bundle/Vundle.vim
let vundle_initialized=0
endif
@khale
khale / molokai.vim
Created June 26, 2018 21:32
molokai
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
" https://github.com/tomasr/molokai
"
" Note: Based on the Monokai theme for TextMate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
"
@khale
khale / .config
Created June 26, 2018 23:49
Naut config with serial chardev
#
# Automatically generated make config: don't edit
#Nautilus:
# Tue Jun 26 18:40:17 2018
#
#
# Platform/Arch Options
#
NAUT_CONFIG_X86_64_HOST=y
@khale
khale / demo
Last active June 27, 2018 00:42
Nautilus tmux qemu run demo
EMU_CMD="qemu-system-x86_64 -cdrom nautilus.iso -m 1G -nographic -serial stdio -monitor telnet:127.0.0.1:1234,server,nowait"
# launch qemu and the monitor in separate panes
tmux new-session -d 'nautilus-demo' \; split-window -c $PWD -h -d $EMU_CMD \; split-window -c $PWD -v -d 'sleep 2; telnet 127.0.0.1 1234' \; attach
##
@khale
khale / bootstrap-user.sh
Last active May 24, 2020 15:11
Nautilus-Vagrant user provision script
#!/usr/bin/env bash
# install tmux conf
git clone https://gist.github.com/khale/0d7f8b2e24bb874a1008f894716f16df
mv 0d7f8b2e24bb874a1008f894716f16df/.tmux.conf ~
rm -rf 0d7f8b2e24bb874a1008f894716f16df
# install vimrc
git clone https://gist.github.com/2dc44d3005bb369aaee6324056a095c4.git
mv 2dc44d3005bb369aaee6324056a095c4/.vimrc ~
@khale
khale / bootstrap.sh
Last active June 27, 2018 01:20
Nautilus-Vagrant provisioning script
#!/usr/bin/env bash
yum install -y epel-release
yum install -y vim \
emacs \
gcc \
gcc-c++ \
libstdc++-static\
ncurses-devel \
@khale
khale / fft.jl
Created June 28, 2018 01:06
Dead simple FFT implementations in Julia
#!/bin/julia
# KCH: implementaiton of various FFT versions
# 2016
using PyPlot
using Distributions
function siggen(f, n)
@khale
khale / rsa.rb
Created June 28, 2018 01:07
Dead simple RSA implementation in Ruby
#!/usr/bin/ruby
require 'rubygems'
require 'number-theory'
require 'openssl'
include NumberTheory
#
# Simple RSA implementation
#