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> |
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
#!/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
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 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
#!/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 | |
require 'find' | |
Find.find(ARGV[0]) do |f| | |
c = ARGV[0].split('/').size | |
d = f.split('/').size | |
e = "#{ENV['CPKG_SESSION_DIR']}/#{f.split('/')[c...d].join('/')}" | |
begin File.symlink(f, e); | |
rescue Errno::EEXIST | |
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
#!/usr/bin/env python | |
import os, re, sys, time | |
import subprocess as SP | |
class oList(list): | |
def join(self): | |
retv = '' | |
for i in self: | |
retv += i+' ' |
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
/*- | |
* Copyright (c) 2010 The FreeBSD Foundation | |
* All rights reserved. | |
* | |
* This software was developed by Edward Tomasz Napierala under sponsorship | |
* from the FreeBSD Foundation. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: |
OlderNewer