This file contains hidden or 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 | |
run() { | |
${*} 1>>/tmp/log 2>>/tmp/log | |
} | |
case "$(uname -s)" in | |
Linux) NCPU=$(($(cat /proc/cpuinfo|grep MHz|wc -l)+1)) ;; | |
esac |
This file contains hidden or 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/env ruby | |
class Graph | |
attr_accessor :items, :retv | |
def initialize(items=nil) | |
if items != nil | |
@items = items | |
@retv = [] | |
end | |
end |
This file contains hidden or 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
OS=$(uname -s) | |
LNDIR=$(which lndir) | |
# Setup for our OS, Linux maybe someday. | |
case "${OS}" in | |
Linux) | |
PKG_DIR="${HOME}/.custom/pkgdir/${OS}" | |
GO_DIR="${HOME}/.custom/go/${OS}" | |
PLATFORM="${OS}" | |
SHA1=$(which sha1sum) |
This file contains hidden or 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/env python | |
import os, sys, time | |
import curses,struct | |
states = ['STARTUP', 'BLOCKED', 'CONNECT', 'PREPROCESS', 'SEND', 'COMPILE', 'RECEIVE', 'DONE'] | |
DISTCC_DIR = os.getenv('DISTCC_DIR') or '%s/.distcc' % os.getenv('HOME') | |
def getStats(scr): | |
curses.init_pair(10, curses.COLOR_YELLOW, curses.COLOR_BLACK) | |
curses.init_pair(11, curses.COLOR_RED, curses.COLOR_BLACK) |
This file contains hidden or 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
class StaticObject(object): | |
''' | |
Class: StaticObject(object) | |
Author: Mike "Fuzzy" Partin | |
TODO: | |
''' | |
def __setattr__(self, key, val): | |
''' | |
Method: StaticObject.__setattr__(key, val) | |
Author: Mike "Fuzzy" Partin |
This file contains hidden or 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
#include <Python.h> | |
#include <sys/ioctl.h> | |
#include <sys/stdint.h> | |
#include <sys/types.h> | |
#include <sys/endian.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> |
NewerOlder