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
diff -u -r /home/nall/anthill_b2/Anthill_b2/_globals.php anthill/_globals.php | |
--- /home/nall/anthill_b2/Anthill_b2/_globals.php 2009-02-13 05:41:27.000000000 -0800 | |
+++ anthill/_globals.php 2010-03-03 14:14:42.000000000 -0800 | |
@@ -105,6 +105,7 @@ | |
//$AGCURRENTUSER = "Hello!"; | |
+ AGMysql(); | |
$cu = AGUser::UserWithCredentials($email, $passhash, true); | |
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 <mach/task.h> | |
int getmem (vm_size_t *rss, vm_size_t *vs) | |
{ | |
struct task_basic_info t_info; | |
mach_msg_type_number_t t_info_count = TASK_BASIC_INFO_COUNT; | |
if (KERN_SUCCESS != task_info(mach_task_self(), | |
TASK_BASIC_INFO, (task_info_t)&t_info, &t_info_count)) | |
{ | |
return -1; |
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
# Force a git push for a non-fast fwd update | |
git push origin +master:master |
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
#ifdef DEBUG | |
BOOL GET_BIT(uint32_t value, uint32_t bit) | |
{ | |
assert(bit < (sizeof(value) * 8)); | |
return ((value >> bit) & 1); | |
} | |
uint32_t SET_BIT(uint32_t value, uint32_t bit, BOOL bitValue) | |
{ | |
assert(bit < (sizeof(value) * 8)); |
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
# Crontab format | |
# Use an asterisk to mean "all legal values" | |
# Use comments to separate values of a field | |
# Use a hyphen to denote a range | |
# Use a / to denote division (3-59/5 * * * * * means every minute between 3-59 which is divisible by 5) | |
# +---------------------- The Minute (0-59) | |
# | +------------------- The Hour (0-23) | |
# | | +---------------- The day of the month (1-31) |
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 perl | |
my $date = `date "+%m%d%y"`; | |
chomp($date); | |
my $tmpfile = "/tmp/GRMN_".$date.".xml.tmp"; | |
my $file = "$ENV{HOME}/Documents/GRMN_logs/GRMN_".$date.".xml"; | |
print "Reading from GPS...\n"; | |
system("/Library/MotionBased/GpstoMb Xml=true GzipBase64=false > $tmpfile 2> /dev/null"); |
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
// | |
// KBCollectionExtensions.h | |
// | |
// Created by Guy English on 25/02/08. | |
// Copyright 2008 Kickingbear. All rights reserved. | |
// | |
#import <Cocoa/Cocoa.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
(* | |
Automount Encrypted Image | |
This script monitors for a volume to be attached and upon detection, mounts an encrypted image on that volume | |
This folder action is intended to be used on /Volumes. When it's detected that /Volumes/<theVolume> is attached, it will automatically try to attach /Volumes/<theVolume>/<theEncryptedVolume> | |
Copyright © 2008-2009, Jon Nall, STUNTAZ!!!. | |
*) |
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
-- Applescript to save the current clipboard, send STUNTAZ!!! to the current text area | |
-- and restore the clipboard | |
-- | |
-- Jon Nall | |
-- 08Sep2009 | |
set theCommand to "STUNTAZ!!!" | |
set theOldClipboard to the clipboard | |
set the clipboard to theCommand | |
--delay 0.2 |
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
// Program to demonstrate how to change to a new stack section on x86 | |
#include <stdlib.h> | |
#include <stdio.h> | |
#define ALTSTACK | |
void* altStack = 0; | |
void core() | |
{ |