Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
| def request(context, flow): | |
| if "miiicasa.com" in flow.request.host: | |
| if flow.request.scheme == "https": | |
| flow.request.host = "192.168.254.9" | |
| flow.request.port = "50113" | |
| if flow.request.scheme == "http": | |
| flow.request.host = "192.168.254.9" | |
| flow.request.port = "50110" |
| <VirtualHost *:80> | |
| ServerName golang.tw | |
| DocumentRoot /home/cat/go_code/src/golang.tw/public | |
| <Directory /home/cat/go_code/src/golang.tw/public/> | |
| AllowOverride all | |
| Options -MultiViews | |
| </Directory> |
| @interface UIDevice (Hardware) | |
| - (NSString *) platform; | |
| @end | |
| #pragma mark - UIDevice+platform.h | |
| @implementation UIDevice (Hardware) | |
| /* | |
| Platforms | |
| iPhone1,1 -> iPhone 2G |
| #!/bin/bash | |
| # | |
| # Startup script for the Supervisor server | |
| # | |
| # Tested with Red Hat Enterprise Linux Server release 5.5 | |
| # | |
| # chkconfig: 2345 85 15 | |
| # description: Supervisor is a client/server system that allows its users to \ | |
| # monitor and control a number of processes on UNIX-like \ | |
| # operating systems. |
| #!/bin/sh | |
| # /usr/local/bin/vpn-pppssh | |
| # | |
| # This script initiates a ppp-ssh vpn connection. | |
| # see the VPN PPP-SSH HOWTO on http://www.linuxdoc.org for more information. | |
| # | |
| # revision history: | |
| # 1.6 11-Nov-1996 miquels@cistron.nl | |
| # 1.7 20-Dec-1999 bart@jukie.net | |
| # 2.0 16-May-2001 bronson@trestle.com |
| #!/bin/sh | |
| # do gocode first | |
| cd /Users/cat/golang.tw/gocode | |
| git pull | |
| git filter-branch -f --subdirectory-filter vim -- --all | |
| git push pathogen master | |
| git fetch | |
| git reset --hard origin/master |
| - (void)testLogin | |
| { | |
| dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); | |
| [[miiiCasaServer getServer] login:@"test@example.com" andPassword:@"password" success:^(AFHTTPRequestOperation *operation, id responseObject) { | |
| assertThat(responseObject[@"status"], is(@"ok")); | |
| dispatch_semaphore_signal(semaphore); | |
| } failure:nil]; | |
| while (dispatch_semaphore_wait(semaphore, DISPATCH_TIME_NOW)) | |
| [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode | |
| beforeDate:[NSDate dateWithTimeIntervalSinceNow:10]]; |
Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
| # Append this at the bottom of /etc/puppetlabs/puppet/manifests/site.pp | |
| node 'devm3' { | |
| stage { 'pre': } | |
| class { | |
| "archfix": stage => "pre"; | |
| } | |
| Stage["pre"] -> Stage["main"] | |
| include common |
| import urllib, urllib2, json | |
| class FacebookTestUserManager: | |
| ''' | |
| A tool which helps to create and delete test account for | |
| Facebook. | |
| See https://developers.facebook.com/docs/test_users/ | |
| ''' |