- Related tutorial: http://raspberrypiguide.de/
- Command Line Cheatsheet: https://gist.github.com/hofmannsven/8392477
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
#import <UIKit/UIKit.h> | |
#import <ImageIO/ImageIO.h> | |
#import <MobileCoreServices/MobileCoreServices.h> | |
static UIImage *frameImage(CGSize size, CGFloat radians) { | |
UIGraphicsBeginImageContextWithOptions(size, YES, 1); { | |
[[UIColor whiteColor] setFill]; | |
UIRectFill(CGRectInfinite); | |
CGContextRef gc = UIGraphicsGetCurrentContext(); | |
CGContextTranslateCTM(gc, size.width / 2, size.height / 2); |
Add this .plist to ~/Library/LaunchAgents to have it automatically | |
take effect whenever you log in. It will continue to be active until | |
you log out (even if you delete the file). | |
You can take manual control over it instead by putting the file | |
anywhere else, then using launchctl like this: | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
launchctl load path/to/the/plist/com.admsyn.keep-twitter-alive.plist | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |