Skip to content

Instantly share code, notes, and snippets.

View dchapman1988's full-sized avatar

David Chapman dchapman1988

View GitHub Profile
@dchapman1988
dchapman1988 / demorgan_c.md
Last active December 15, 2015 14:29
DeMorgan's Theorem example in C

DeMorgan's Theorems state

!(A || B) == (!A && !B)
!(A && B) == (!A || !B)
@dchapman1988
dchapman1988 / .screenrc
Created February 19, 2013 14:15
My configuration for GNU Screen
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"
term screen-256color-bce
defscrollback 100000
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d/%Y %{W}%C %{g}]'
# This goes in your ~/.bashrc
if [ -f ~/.bash_files/prompts/elite ]; then
. ~/.bash_files/prompts/elite
elite
fi
@dchapman1988
dchapman1988 / dev_setup.sh
Last active October 5, 2015 07:57
Just some common apt packages needed for RoR development
#!/bin/bash
# Version: 1.0.1
# Author: David Chapman
# Description: A quick script to get a Ubuntu machine up and running.
# The commands we'll be using are here
CURL="curl"
APT="apt-get"
# Checks that the system has apt
@dchapman1988
dchapman1988 / launch_options.txt
Created March 10, 2012 02:35
My Counter-Strike 1.6 User Configuration
These are the Launch options I use:
-heapsize 1048576 -freq 60 -full -w 640 -h 480 -32bpp -gl -dxlevel 90 -noaafonts -console -nocrashdialog +map_background none -nojoy
Here are the ones that are available:
+map_background none -novid
-noforcemaccel ; Use desktop mouse acceleration settings
-noforcemspd ; Use desktop mouse speed settings.
-noforcemparms ; Use desktop mouse buttons settings.
-noaafonts ; Disables Anti-Aliasing of Screen Fonts.
$ sudo su
# apt-get install postgresql
# su postgres
$ createuser -P -s -e developer
Enter password for new role: <PASSWORD>
And now you're ready to set up your project on postgres...