Figure out which en interface to use
ifconfig
See the mac address
ifconfig en0 | grep ether
Turn off wifi on your macbook from the Mac OSX terminal command line:
networksetup -setairportpower en0 off
Turn on wifi on your macbook from the Mac OSX terminal command line:
networksetup -setairportpower en0 on
List available wifi networks from the Mac OSX terminal command line:
| networksetup -listpreferredwirelessnetworks en0 | wc -l |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>FRP Infinite Scroll using Bacon.js</title> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.53/Bacon.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/3.7.0/lodash.min.js"></script> | |
| <style type="text/css"> | |
| body { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>FRP Infinite Scroll using Bacon.js</title> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.53/Bacon.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/3.7.0/lodash.min.js"></script> | |
| <style type="text/css"> | |
| body { |
| #!/bin/bash | |
| echo "Starting Dropbox Backup" | |
| echo "-----------------------" | |
| echo `date` | |
| cd ~ | |
| mkdir -p "Dropbox Backups" | |
| echo "Archiving './Dropbox' to 'DropBox Backups/Dropbox_YEAR-MM).zip'.." |
| (function(){ | |
| 'use strict'; | |
| /* | |
| Create intra-page links | |
| Requires that your headings already have an `id` attribute set (because that's what jekyll does) | |
| For every heading in your page, this adds a little anchor link `#` that you can click to get a permalink to the heading. | |
| Ignores `h1`, because you should only have one per page. | |
| The text content of the tag is used to generate the link, so it will fail "gracefully-ish" if you have duplicate heading text. | |
| */ |
| var id = 1530358597204949; // the id of the dom node that has the icon you want | |
| var makeItStopDannySelvag = setInterval(function(){ | |
| var node = document.querySelectorAll('[data-id="'+ id +'"]')[0]; | |
| $n = $(node); | |
| $n.click(); | |
| }, 500); |
| class Icon { | |
| // Create a colored version of an existing image. Great for coloring icons. | |
| // @param name of the image in your bundle | |
| // @param color of the image to return | |
| static func createColoredVersionOfImageNamed(name: String, color: CGColor) -> UIImage { | |
| let img = UIImage(named: name)! | |
| let rect = CGRect(origin: CGPointZero, size: img.size) | |
| UIGraphicsBeginImageContextWithOptions(rect.size, false, img.scale) | |
| let context = UIGraphicsGetCurrentContext() |