This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery | |
set nocompatible | |
set autoindent | |
set tabstop=2 | |
set showmatch | |
set vb t_vb= | |
set ruler | |
set nohls | |
set incsearch | |
syntax on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------- beginning of /dev/log/main | |
06-30 15:55:41.043 D/DATA ( 1575): [QCTMM] DataNetStatistics sent == 0 && received == 0 newActivity=DORMANT | |
06-30 15:55:41.043 D/DATA ( 1575): sentSinceLastRecv=0,watchdogTrigger=10 | |
06-30 15:55:41.393 D/dalvikvm( 2035): GC_EXPLICIT freed 3092 objects / 189552 bytes in 72ms | |
--------- beginning of /dev/log/system | |
06-30 15:55:41.943 I/ActivityManager( 1450): Starting activity: Intent { dat=content://mms-sms/conversations/4 cmp=com.jb.gosms/.ui.ComposeMessageActivity (has extras) } | |
06-30 15:55:42.043 D/DATA ( 1575): [QCTMM] DataNetStatistics sent == 0 && received == 0 newActivity=DORMANT | |
06-30 15:55:42.043 D/DATA ( 1575): sentSinceLastRecv=0,watchdogTrigger=10 | |
06-30 15:55:42.073 D/com.jb@Mms/compose( 2460): [1] [az] loadDraft: call WorkingMessage.loadDraft | |
06-30 15:55:42.073 D/com.jb@Mms( 2460): [1] readDraftSmsMessage tid=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
""" | |
Description: Will run an lpstat -p and send an email to jtrutwin notifying him of a disabled printer, if there is one, so that he can take action. | |
TODO: | |
1) Add parameter to override the recipient of the email | |
2) Add functionality for only sending email when a printer hasn't been found to be disabled today - ie. email sent at 5am shouldn't be sent again if only that same printer is disabled as of 8am, should only send another email if another printer has been disabled or if the original printer has been disabled, enabled and re-disabled. | |
""" | |
import commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python -u | |
# mywol.py | |
# TODO need to check that too many options aren't being mixed at once, some should be exclusive | |
import subprocess | |
import sqlite3 | |
from subprocess import Popen, PIPE | |
from optparse import OptionParser | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
""" | |
Checks a program you name below for conditions you also name below and emails either the default (below) or can be set at command runtime | |
""" | |
import commands | |
import smtplib | |
from email.mime.text import MIMEText | |
import json | |
from optparse import OptionParser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script is for settingup a usable rvm environment for ruby development | |
# Enables user to manage versions of ruby and sets of Gems in a clean manner | |
# | |
# Information on rvm is available at http://beginrescueend.com/ | |
git="git" | |
rvm="rvm" | |
rvmdir="$HOME/.rvm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "m2m_fast_insert" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.inherited(sub) | |
instance_variables.each do |field| | |
sub.instance_variable_set field, instance_variable_get(field) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias rr="rake spec | grep \"rspec.*#\" | awk '{ print \$2 }' | sed -e 's/\.rb:.*/\.rb/' | uniq" | |
# For vim I would do: | |
vim $(rr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function title { | |
#[ "$DISABLE_AUTO_TITLE" != "true" ] || return | |
if [[ "$TERM" == screen* ]]; then | |
print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars | |
elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then | |
print -Pn "\e]2;$2:q\a" #set window name | |
print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal) | |
fi | |
} |
OlderNewer