Options | airport usage | wdutil usage |
---|---|---|
Info | sudo airport -I | sudo wdutil info |
Diagnose | sudo wdutil diagnose | |
Dump | airport -x | sudo wdutil dump |
Log | sudo wdutil log +wifi | |
Scan | airport -s | |
Key | airport -P --ssid=SSID --password=PASSWORD |
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
# extract single audio stream video from multiple streamed video | |
ffmpeg -i input.mp4 -c:v copy -c:a copy -map 0:v -map 0:a:2 output.mp4 |
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
asset 'jquery-ujs' | |
asset 'bootstrap-sass' | |
asset 'fontawesome' |
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
- (void)locationManager:(CLLocationManager *)manager didRangeBeacons:(NSArray *)beacons inRegion:(CLBeaconRegion *)region { NSString *message = nil; | |
for (CLBeacon *beacon in beacons) { | |
switch (beacon.proximity) { | |
case CLProximityImmediate: | |
message = @"CLProximityImmediate"; | |
break; | |
case CLProximityNear: | |
message = @"CLProximityNear"; | |
break; | |
case CLProximityFar: |
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
# Test Frameworks | |
pod 'gh-unit' | |
pod 'kiwi' | |
## Mock Frameworks | |
pod 'OCMock' | |
# Debugging/Logging | |
pod 'UALogger' |
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 | |
# move to home directory | |
cd ${HOME}; | |
# clone rbenv into home directory | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
# set env path for zsh | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv |
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
ajax_req = (param, beforeReq, doneReq, afterReq) -> | |
beforeReq = null if typeof beforeReq == 'undefined' | |
doneReq = null if typeof doneReq == 'undefined' | |
afterReq = null if typeof afterReq == 'undefined' | |
$.ajax 'http://www.example.com/blah', | |
type:'GET' | |
dataType:'json' | |
beforeSend: (jqXHR, settings) -> | |
console.log settings |
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
<!-- Add the following lines to theme's html code right before </head> --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script> | |
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script> | |
<!-- | |
Usage: just add <div class="gist">[gist URL]</div> | |
Example: <div class="gist">https://gist.github.com/1395926</div> | |
--> |
NewerOlder