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 | |
# before that do e.g. brew install lynx and brew install aria2 | |
for x in `lynx http://cdn.media.ccc.de/congress/2013/mp4/ --dump | grep "http" | grep "30c3" | cut -c 7-`; do | |
echo "$x".torrent; | |
done > SessionTorrentList.txt | |
aria2c --seed-time=0 -Z -i SessionTorrentList.txt |
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
It's the computer we were insane to build. | |
The one that turns conventional thinking on its head, then kicks the living $#&% out of it. | |
We challenged all our assumptions. | |
Abandoned our preconceptions. | |
And Blew away limitation after limitation. | |
This is the new Mac Pro. | |
It's like no Mac we've created before. | |
And we can't wait to see what you create with it. |
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
/** usage example | |
@implementation ABCPlayerManager | |
+ (instancetype)sharedPlayerManager { | |
return TCM_SINGLETON(ABCPlayerManager); | |
} | |
@end | |
*/ | |
#define TCM_SINGLETON(THECLASS) ({ \ | |
static THECLASS *s_sharedInstance = nil; \ |
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
#if __clang__ | |
#define __NSX_PASTE__(A,B) A##B | |
#if !defined(MIN) | |
#define __NSMIN_IMPL__(A,B,L) ({ __typeof__(A) __NSX_PASTE__(__a,L) = (A); __typeof__(B) __NSX_PASTE__(__b,L) = (B); (__NSX_PASTE__(__a,L) < __NSX_PASTE__(__b,L)) ? __NSX_PASTE__(__a,L) : __NSX_PASTE__(__b,L); }) | |
#define MIN(A,B) __NSMIN_IMPL__(A,B,__COUNTER__) | |
#endif | |
#if !defined(MAX) |
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
while true; do curl -sS http://store.apple.com/de/iphone | grep "back soon" || (terminal-notifier -message "buy it" -title "Good news everyone" -open http://store.apple.com/de/iphone && say buy now && sleep 3600); sleep 10; done |
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 | |
rmdir /Volumes/BuildDisk | |
diskutil erasevolume HFS+ "BuildDisk" `hdiutil attach -nomount ram://4661720` |
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
#!/usr/bin/env ruby | |
require 'webrick' | |
require 'optparse' | |
include WEBrick | |
options = {:Port => 9090, | |
:DocumentRoot => './', | |
:Bonjour => false} | |
optparser=OptionParser.new do |opts| | |
opts.banner = "Usage: #{File.basename(__FILE__)} [options]" |
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 | |
diskutil erasevolume HFS+ "BuildDisk" `hdiutil attach -nomount ram://9323440` |
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
#!/usr/bin/env ruby | |
# == Synopsis | |
# blinkenpackets listens on a port for blinkenpackets and prints out verbose descriptions for them | |
# == Examples | |
# blinkenpackets.rb -p 2323 | |
# | |
# Other examples: | |
# blinkenpackets.rb proxy.blinkenlights.net:4244 | |
# blinkenpackets.rb proxy.blinkenlights.net:4245 |
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
+ (NSString *)UUIDString { | |
CFUUIDRef myUUID = CFUUIDCreate(NULL); | |
NSString *myUUIDString = CFBridgingRelease(CFUUIDCreateString(NULL, myUUID)); | |
CFRelease(myUUID); | |
return myUUIDString; | |
} |