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
module Webby | |
class Renderer | |
attr_reader :page | |
end | |
end | |
# To use add interlink to the list of filters in the layout. | |
# Creates links to pages using a MediaWiki-style syntax: | |
# | |
# [[main-page]] |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.alloysoft.DroboKeepAlive</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/touch</string> | |
<string>/Volumes/Drobo/.keepalive</string> |
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
module Webby | |
class Renderer | |
attr_reader :page | |
end | |
module Filters | |
# To use add localpath to the end of the list of filters in the layout. | |
# Converts all links starting with '/' to use relative paths and appends | |
# 'index.html' to all links both starting and ending with '/'. |
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
# Define the base URL in the sitefile | |
SITE.base = 'http://yourdomain.com' |
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 node | |
var sys = require('sys'), | |
path = require('path'), | |
fs = require('fs'), | |
pcap = require('pcap'), pcap_session, | |
tcp_tracker = new pcap.TCP_tracker(); | |
var device = undefined; | |
var filter = ""; |
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
System Info | |
Xbench Version 1.3 | |
System Version 10.6.7 (10J869) | |
Physical RAM 8192 MB | |
Model MacBookPro6,2 | |
Drive Type TOSHIBA MK5055GSXF | |
Disk Test 20.07 | |
Sequential 80.14 | |
Uncached Write 74.35 45.65 MB/sec [4K blocks] | |
Uncached Write 74.26 42.01 MB/sec [256K blocks] |
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
#import "NetworkMonitor.h" | |
NSString *NetworkConfigurationDidChangeNotification = @"NetworkConfigurationDidChangeNotification"; | |
void storeCallback(SCDynamicStoreRef store, CFArrayRef changedKeys, void *info) { | |
[(NetworkMonitor *)info update]; | |
} | |
@implementation NetworkMonitor |
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
#import <Cocoa/Cocoa.h> | |
BOOL VerifyAppStoreReceipt(); | |
BOOL VerifyAppStoreReceiptData(NSData *data); | |
NSURL *BackupReceiptURL(); | |
void BackupAppStoreReceipt(); | |
NSData *MACAddressData(); | |
NSDictionary *DictionaryFromAppStoreReceipt(NSData *fullData); |
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
#import <Foundation/Foundation.h> | |
#import <Security/Security.h> | |
static const char *public_key = "-----BEGIN DSA PUBLIC KEY-----\n" | |
"MIHxMIGoBgcqhkjOOAQBMIGcAkEAvPM8vp7lHRrWFhpso2I/Wrq1qV8TSl7/YITH\n" | |
"7cHsINCP/xrZZpTlx14pKNkKwEEf3t3bdkKY97NQKRJ+cIRyawIVAMDJQP8l7EVy\n" | |
"fcqtVnJjJupPIccxAkBhLjwIRUNerlWb0kW357ABc4+65XB90lQIdcwVLGqRsx9A\n" | |
"wKoeeMUEyVdQhjJMnclvYJU+xqnl2AP9224QOGGLA0QAAkEAkFQyL1jGMfEjer1O\n" | |
"QjBq7knMY8zHEUVNRbPXBNS5QenFg07rgMUFL/Bj6/876pWvubwpDAcXkiK+SR3A\n" | |
"FRF/VA==\n" |
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
NSDate *now = [NSDate date]; | |
NSCalendar *calendar = [NSCalendar currentCalendar]; | |
NSDateComponents *nowComponents = [calendar components:NSSecondCalendarUnit fromDate:now]; | |
NSDateComponents *offsetComponents = [[NSDateComponents alloc] init]; | |
[offsetComponents setMinute:1]; | |
[offsetComponents setSecond:-[nowComponents second]]; | |
NSDate *nextMinute = [calendar dateByAddingComponents:offsetComponents toDate:now options:0]; | |
NSTimeInterval interval = [nextMinute timeIntervalSinceDate:now]; |
OlderNewer