Skip to content

Instantly share code, notes, and snippets.

View qguv's full-sized avatar
vibing

Quint Guvernator qguv

vibing
View GitHub Profile
@qguv
qguv / intermediate git.md
Created June 5, 2014 21:15
an introduction beyond the basic commit workflow

INTERMEDIATE GIT

git v2.0.0

documentation

$ cd ~/Desktop

  • git help branch
  • man git
  • not man git branch
@qguv
qguv / gist:ffaa67fca814cf0f49ec
Last active August 29, 2015 14:03
Roll your own vim
# replace --with-python-config-dir and --with-lua-prefix with a system-specific directory
mkdir -p ~/build
cd ~/build
hg clone https://vim.googlecode.com/hg/ vim
cd vim
hg pull
hg update
# might also need --with-python-config-dir=/usr/lib64/python2.6/config
@qguv
qguv / gist:9b9c0fb45d5124dd641a
Created September 2, 2014 14:27
kill a process running on port 8000 (or any other port)
sudo kill `sudo lsof -t -i:8000`
@qguv
qguv / iterm2-no-dock.sh
Last active August 29, 2015 14:08
Remove iTerm2 from Dock & Cmd+Tab
defaults write /Applications/iTerm.app/Contents/Info LSUIElement true
@qguv
qguv / quota.sh
Created December 7, 2014 06:39
get number of files in subdirectories of this one
find . -maxdepth 1 -mindepth 1 -type d | while read dir; do
printf "%-25.25s : " "$dir"
find "$dir" -type f | wc -l
done
@qguv
qguv / config.h
Created January 27, 2015 21:38
DWM config.h
/* appearance */
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#444444";
static const char normbgcolor[] = "#222222";
static const char normfgcolor[] = "#bbbbbb";
static const char selbordercolor[] = "#005577";
static const char selbgcolor[] = "#005577";
static const char selfgcolor[] = "#eeeeee";
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
#!/usr/bin/env sh
source .conf/zsh/system
# one-time configurations
xsetroot -solid "#442211"
# persistent windowbar configuration
while true; do
xsetroot -name "$(whoami)@$(uname -n) ($(uname -o)) | $(date +%R)"
sleep 1
@qguv
qguv / gist:848b225888bc3a9f3bdb
Created March 22, 2015 03:41
Jekyll Build/Serve Error
Configuration file: /Users/quintus/dev/essays/_config.yml
Source: /Users/quintus/dev/essays
Destination: /Users/quintus/dev/essays/_site
Generating...
/Users/quintus/.local/lib/gems/gems/posix-spawn-0.3.10/lib/posix_spawn_ext.bundle: [BUG] Segmentation fault
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
@qguv
qguv / gist:a95db5756e808540b4e7
Created March 30, 2015 14:11
CMLS Classwork 2015-03-30
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [
{
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.