Skip to content

Instantly share code, notes, and snippets.

View derekmceachern's full-sized avatar

Derek McEachern derekmceachern

View GitHub Profile
#!/bin/bash
# Create a bunch of dummy files in directory OUT_FILES
# I used for creating a bunch of small files to use up all the inodes
# in an fs to test alerting
OUT_DIR=files
BS=1
COUNT=1
# This is Git's per-user configuration file.
[user]
name = <name>
email = <email>
[alias]
#--grog for light theme
#grog = log --graph --abbrev-commit --decorate --all --format=format:\"%C(bold blue)%h%C(reset) - %C(blue)%aD%C(blue) - %an%C(reset) %C(blue)(%ar)%C(reset)%C(bold blue)%d%C(reset)%n %C(dim black)%s%n%C(reset)\"
#--grod for dark theme
grog = log --graph --abbrev-commit --decorate --all --format=format:\"%C(bold blue)%h%C(reset) - %C(blue)%aD%C(blue) - %an%C(reset) %C(blue)(%ar)%C(reset)%C(bold blue)%d%C(reset)%n %C(green)%s%n%C(reset)\"
# Change the prefix key to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Turn the mouse on
#set -g mouse on
# To copy, drag to highlight text in yellow, press Enter and then release mouse
# Use vim keybindings in copy mode
!
XTerm*charClass:33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48,35:48,58:48,63:48,61:48,44:48,38:48,59:48
XTerm*faceName: DejaVu Sans Mono
XTerm*faceSize: 10
XTerm*locale: true
XTerm*loginShell: true
XTerm*scrollBar: true
XTerm*saveLines: 10000
XTerm*selectToClipboard: true
XTerm*on2Clicks: word
C:\cygwin\bin\rxvt.exe -display :0 -fn "Lucida Console-14" -tn rxvt-cygwin-native -sl 4000 -e /bin/bash --login
" Set 'nocompatible' to ward off unexpected things that your distro might
" have made, as well as sanely reset options when re-sourcing .vimrc
set nocompatible
" Set colorscheme. slate seems to work well on a dark terminal
colo slate
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","

Keybase proof

I hereby claim:

  • I am derekmceachern on github.
  • I am derekmceachern (https://keybase.io/derekmceachern) on keybase.
  • I have a public key whose fingerprint is 0170 FD6D 0C4B 35AA EBF1 6832 D64A AFE3 77FA F785

To claim this, I am signing this object:

@derekmceachern
derekmceachern / .Xdefaults
Created August 24, 2014 20:26
Cygwin .Xdefaults File
! ~/.Xdefaults - X default resource settings
!
Rxvt*geometry: 110x40
Rxvt*background: #000000
!Rxvt*foreground: #ffffbf
Rxvt*foreground: #c0c0c0
Rxvt*cursorColor: #008000
!Rxvt*borderColor: Blue
!Rxvt*scrollColor: Blue
!Rxvt*troughColor: Gray
@derekmceachern
derekmceachern / .bashrc
Last active September 21, 2021 15:58
bash .profile
#--bash history settings
#
# The export HISTFILE and history -c; history -r; is only needed for
# shared accounts
export HISTFILE=/home/$USER/.bash_history.derekm
history -c
history -r ${HISTFILE}
shopt -s histappend
export HISTSIZE=6000