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
cat /boot/cmdline.txt | |
dwc_otg.speed=1 dwc_otg.microframe_schedule=1 dwc_otg.fiq_fix_enable=1 dwc_otg.lpm_enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait |
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
URL: http://overpass-api.de/query_form.html | |
Query: (node(54.085, 11.867, 54.2503, 12.320);<;);out; | |
This returns a file roughly 45 MB in size. | |
Extract the seamarks stuff by using PHP: | |
<?php | |
echo '<?xml version="1.0" encoding="UTF-8"?> | |
<osm version="0.6" generator="Overpass API"> | |
<note>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</note> |
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
- (NSDictionary *)extract:(NSString *)sPayload | |
{ | |
NSError *regexError = nil; | |
NSString *sPattern = @"MACRO_NET_WORK_TYPE_[0-9A-Z _]{1,}=[ ]{1,}'[0-9]{1,}'"; | |
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:sPattern | |
options:NSRegularExpressionCaseInsensitive | |
error:®exError]; | |
if (sPayload == nil) { | |
NSLog(@"Gimme some real food..."); | |
return 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
- (NSDictionary *)extract:(NSString *)sPayload | |
{ | |
NSError *regexError = nil; | |
NSString *sPattern = @"MACRO_NET_WORK_TYPE_[0-9A-Z _]{1,}=[ ]{1,}'[0-9]{1,}'"; | |
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:sPattern | |
options:NSRegularExpressionCaseInsensitive | |
error:®exError]; | |
if (sPayload == nil) { | |
NSLog(@"Gimme some real food..."); | |
return 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
(lldb) po [loginController.view recursiveDescription] | |
<_UIAlertControllerView: 0x78ecf2e0; frame = (25 4; 270 256); layer = <CALayer: 0x78ecf550>> | |
| <UIView: 0x78ecf6c0; frame = (0 0; 270 256); animations = { <_UIParallaxMotionEffect: 0x79a47f10>=<CAAnimationGroup: 0x79a80530>; }; layer = <CALayer: 0x78ecf730>> | |
| | <_UIDimmingKnockoutBackdropView: 0x78f54ba0; frame = (0 0; 270 256); clipsToBounds = YES; layer = <CALayer: 0x78f54d30>> | |
| | | <UIView: 0x79a66f00; frame = (0 0; 270 256); clipsToBounds = YES; layer = <CALayer: 0x79a67540>> | |
| | | <_UIBackdropView: 0x78f54e60; frame = (0 0; 270 256); clipsToBounds = YES; opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <_UIBackdropViewLayer: 0x78f55100>> | |
| | | | <_UIBackdropEffectView: 0x79a70c60; frame = (0 0; 270 256); clipsToBounds = YES; opaque = NO; autoresize = W+H; userInteractionEnabled = NO; animations = { filters.colorMatrix.inputColorMatrix=<CABasicAnimation: 0x79aa4490>; }; layer = <CABackdropLaye |
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
func get(path: String) { | |
let url = NSURL(string: path) | |
let session = NSURLSession.sharedSession() | |
running = true | |
let task = session.dataTaskWithURL(url!, completionHandler: { | |
[unowned self] (data, response, error) -> Void in | |
println("Task completed") | |
if(error != nil) { | |
// If there is an error in the web request, print it to the console | |
println(error.localizedDescription) |
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
import Ember from 'ember'; | |
import layout from '../templates/components/mapbox-marker'; | |
export default Ember.Component.extend({ | |
classNameBindings: ['isLoaded'], | |
layout: layout, | |
iconUrl: '', | |
iconUrl: '', | |
iconSize: [30, 45], | |
iconAnchor: [15, 45], |
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/bash | |
HOST="your.host.name" | |
USER="username" | |
PASS="pasword" | |
FTPURL="ftp://$USER:$PASS@$HOST" | |
LCD="/Users/martin/Desktop/emberplayground/oi/dist" | |
RCD="/" | |
#DELETE="--delete" | |
lftp -c "set ftp:list-options -a; | |
open '$FTPURL'; |
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
CURR=1 | |
SUBNET="10.0.0" | |
while [ $CURR -lt 255 ] ; do | |
ping -c1 -t1 $SUBNET.$CURR 2>&1 >/dev/null | |
if [ "$?" -eq "0" ]; then | |
echo "$SUBNET.$CURR" | |
fi | |
let CURR=$CURR+1 | |
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/bash | |
if [ $# -eq 1 ] | |
then | |
version="$1" | |
echo "Bumping to version $version..." | |
npm version $version | |
git push --follow-tags | |
ember deploy production | |
exit 0 | |
else |
OlderNewer