This file contains hidden or 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 | |
| # Author: David Busby <[email protected]> | |
| ### BEGIN INIT INFO | |
| # Provides: edge | |
| # Required-Start: $supernode | |
| # Required-Stop: | |
| # Default-Start: 3 5 | |
| # Default-Stop: 0 1 2 6 |
This file contains hidden or 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
| # based on the import script by icebreaker, which is based on mojombo's | |
| # https://github.com/mojombo/jekyll/blob/master/lib/jekyll/migrators/wordpress.rb | |
| # https://gist.github.com/303570 | |
| # edited to rewrite image URLs to use my CloudFront URL | |
| require 'rubygems' | |
| require 'sequel' | |
| require 'fileutils' | |
| require 'yaml' |
This file contains hidden or 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
| put this in ifcfg-br0 : | |
| DEVICE=br0 | |
| TYPE=Bridge | |
| BOOTPROTO=static | |
| IPADDR=xxx.xxx.xxx.xxx | |
| NETMASK=xxx.xxx.xxx.xxx | |
| GATEWAY=xxx.xxx.xxx.xxx | |
| ONBOOT=yes | |
| DELAY=0 |
This file contains hidden or 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
| rpm -qa | while read pname; do RES=`rpm -qR $pname`; [[ "$RES" == "" ]] && echo "$pname has no deps"; done |
This file contains hidden or 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
| #adapted from pySerial examples for use on OSX systems | |
| import serial | |
| from glob import glob | |
| def _scan(): | |
| dev_list = glob('/dev/tty*usb*') | |
| available = [] | |
| for dev in dev_list: | |
| try: | |
| s = serial.Serial(dev) |
NewerOlder