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/sh | |
# computer activity data collection for http://jehiah.cz/one-two/ | |
# by Jehiah Czebotar | |
FILE="activity_log/`date +%Y%m%d`.log" | |
function log_activity() | |
{ | |
local UTC=`date "+%s,%Z"` | |
local IDLE=$((`/usr/sbin/ioreg -c IOHIDSystem | sed -e '/HIDIdleTime/!{ d' -e 't' -e '}' -e 's/.* = //g' -e 'q'` / 1000000000 )) |
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/sh | |
# This script takes a photo if the computer has not been idle for longer than a period of time | |
# it uses isightcapture from https://www.macupdate.com/app/mac/18598/isightcapture | |
[ -z "$USER" ] && echo "missing variable \$USER " && exit 1 | |
if [ ! -d /Users/$USER/daily_photo ]; then | |
mkdir -p $/Users/$USER/daily_photo | |
fi | |
IDLE=$((`/usr/sbin/ioreg -c IOHIDSystem | sed -e '/HIDIdleTime/!{ d' -e 't' -e '}' -e 's/.* = //g' -e 'q'` / 1000000000 )) | |
export SUDO_ASKPASS=/Users/$USER/bin/get_pass.sh |
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
# Copyright Jehiah Czebotar 2013 | |
# http://jehiah.cz/ | |
import tornado.options | |
import glob | |
import os | |
import sqlite3 | |
import logging | |
import datetime | |
import csv |
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
# Specfile for go used @ bitly for CentOS 5.*, RHEL5 | |
%define name go-devel | |
%define path /usr/local | |
%define version go1.0.2 | |
%define release 13 | |
%define group Development/Languages | |
%define __os_install_post %{nil} | |
Name: %{name} |
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/sh | |
# | |
# This is a script to run syntax check (via `sh -n $filename`) but it | |
# supports recursive checking and --quiet | |
QUIET=0 | |
while [ "$1" != "" ]; do | |
PARAM=`echo $1 | awk -F= '{print $1}'` | |
VALUE=`echo $1 | awk -F= '{print $2}'` | |
case $PARAM in |
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 | |
COUNT=1 | |
FILE=$0 | |
# run this script with bash | |
# i bet you can't predict the outcome | |
function printsleep { | |
echo COUNT=$(( COUNT++ )) | |
echo printsleep >> $FILE |
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
TARGET="$PROJECT_DIR/project/Info.plist" | |
echo $TARGET | |
if [ ! -f "$TARGET" ]; then | |
echo "missing file $TARGET" | |
exit 1; | |
fi | |
# the perl regex splits out the last part of a build number (ie: 1.1.1) and increments it by one | |
# if you have a build number that is more than 3 components, add a '\.\d+' into the first part of the regex. |
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
#import <Cocoa/Cocoa.h> | |
#import <UIKit/UIKit.h> | |
@class ChameleonAppDelegate; | |
@interface AppDelegate : NSObject <NSApplicationDelegate> { | |
@private | |
NSWindow *window; | |
IBOutlet UIKitView *chameleonNSView; | |
ChameleonAppDelegate *chameleonApp; | |
} |
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
moved to github --> https://github.com/bill-auger/git-branch-status/ |
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/env python | |
""" | |
This is a test script to simulate a memcached instance on a server | |
that has gone south and is accepting connections, but generally not | |
responding. | |
The goal of this script is to help test/develop correct client | |
side settings for timeouts/failure scenarios |