Skip to content

Instantly share code, notes, and snippets.

View davidosomething's full-sized avatar
🍼
I have a baby.

David O'Trakoun davidosomething

🍼
I have a baby.
View GitHub Profile
@davidosomething
davidosomething / .vimrc
Last active September 28, 2015 21:45
neocomplete.vim test
if &compatible | set nocompatible | endif
set number
" whitespace
set nowrap
set autoindent
set preserveindent " stay indented when press enter
set expandtab " spaces instead of tabs
set tabstop=2
@davidosomething
davidosomething / time-jira-link.js
Last active August 29, 2015 14:15 — forked from Marak/echoHttpRequest.js
Spit out the JIRA link to a ticket given a number
@davidosomething
davidosomething / rc.xml
Last active August 29, 2015 14:08
OSX style Super-c copy, Super-v paste in OpenBox
<!-- requires xsel, xvkbd, and xdotool -->
<!-- OSX style copy Super-c -->
<keybind key="W-c">
<action name="Execute">
<command>xdotool key XF86Copy</command>
</action>
</keybind>
<!-- OSX style paste Super-v -->
@davidosomething
davidosomething / 20-nvidia.conf
Last active August 29, 2015 14:08
syslinux.cfg
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
@davidosomething
davidosomething / _variables.scss
Created June 14, 2014 22:34
davidosomething.com variables
////////////////////////////////////////////////////////////////////////////////
$breakpoints: (
iphone-portrait: 320px,
iphone-landscape: 480px,
iphone-retina-portrait: 640px,
iphone-retina-landscape: 960px,
ipad-portrait: 768px,
ipad-landscape: 1024px,
container-large: 42em,
container-medium: 48em,
@davidosomething
davidosomething / xorg.conf
Created May 2, 2014 02:55
xorg.conf for a lenovo ThinkPad W510 on Linux Mint 16
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro FX 880M"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
@davidosomething
davidosomething / vimup.sh
Last active March 25, 2020 10:10
Script to update NeoBundle plugins from the commandline
#!/usr/bin/env bash
_vimup() {
vim -N -u ~/.vimrc -c "try | \
NeoBundleClean! | \
NeoBundleCheck | \
NeoBundleUpdate! | \
NeoBundleUpdatesLog $* | \
finally | qall! | endtry" \
-U NONE -i NONE -V1 -e -s
@davidosomething
davidosomething / afk.sh
Created December 7, 2013 02:41
creepy messages
##
# creepy messages on afk
# http://www.reddit.com/r/apple/comments/1s902t/type_this_into_your_terminal_to_have_funannoy/cdvcgsv
afk() {
words=('please help me' 'i am so alone' 'i am lonely' 'let me out' 'i must feed' 'it puts the lotion' 'my precious');
while [ 1 = 1 ]; do
say "${words[$[ $[ RANDOM % ${#words[@]} ]]]}" -v Whisper -r 2
sleep 100
done
}
@davidosomething
davidosomething / modal.js
Created July 23, 2013 18:35
Survey Modal v2
/*jshint jquery:true, browser:true*//*global navigator:true, console:true */
/**
* Survey Modal JavaScript
*
* Depends on jQuery 1.7.1+
* Replace $.on with $.delegate if need to backport
*
* Usage:
* Call with surveyModal.init();
*
@davidosomething
davidosomething / Gruntfile.js
Last active December 18, 2015 23:28
Gruntfile
module.exports = function (grunt) {
"use strict";
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// AUTOPREFIXER ////////////////////////////////////////////////////////////////
autoprefixer: {
options: {