start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
# Modified by Carlin Yuen 2014/02 | |
# | |
# Run this from the folder that you want to be the root of your app, | |
# which can be cloned from or later pushed to Heroku's git repo. | |
# NOTE: this is best done with a clean / empty root folder! | |
# Troubleshooting: https://github.com/linnovate/mean. | |
# | |
# This will pull the latest MEAN.io and install/update the following packages: | |
# Brew, Git, Node, Bower, Grunt, Heroku Toolbelt, MongoDB, |
// Pre-iOS 7 | |
+ (NSString *)base64EncodeString:(NSString *)stringToEncode | |
{ | |
CFHTTPMessageRef messageRef = CFHTTPMessageCreateEmpty(kCFAllocatorDefault, FALSE); | |
CFHTTPMessageAddAuthentication(messageRef, NULL, CFSTR("AS"), (__bridge CFStringRef)stringToEncode, kCFHTTPAuthenticationSchemeBasic, FALSE); | |
CFStringRef authStringRef = CFHTTPMessageCopyHeaderFieldValue(messageRef, CFSTR("Authorization")); | |
NSString *encodedString = [(__bridge NSString *)authStringRef substringFromIndex:10]; | |
CFRelease(messageRef); |
#import "GTMOAuthAuthentication.h" | |
GTMOAuthAuthentication *auth = [[GTMOAuthAuthentication alloc] | |
initWithSignatureMethod:kGTMOAuthSignatureMethodHMAC_SHA1 | |
consumerKey:@"..." | |
privateKey:@"..."]; | |
auth.accessToken = @"..."; | |
auth.tokenSecret = @"..."; | |
[auth setHasAccessToken:true]; |
--- | |
language: objective-c | |
before_script: | |
- ./scripts/travis/add-key.sh | |
after_script: | |
- ./scripts/travis/remove-key.sh | |
after_success: | |
- ./scripts/travis/testflight.sh | |
env: | |
global: |