These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| /** | |
| * This casper scipt checks for 404 internal links for a given root url. | |
| * | |
| * Usage: | |
| * | |
| * $ casperjs 404checker.js http://mysite.tld/ | |
| * $ casperjs 404checker.js http://mysite.tld/ --max-depth=42 | |
| */ | |
| /*global URI*/ |
| import java.net.UnknownHostException; | |
| import com.mongodb.BasicDBObject; | |
| import com.mongodb.BasicDBObjectBuilder; | |
| import com.mongodb.CommandResult; | |
| import com.mongodb.DB; | |
| import com.mongodb.DBObject; | |
| import com.mongodb.Mongo; | |
| import com.mongodb.MongoClient; | |
| import com.mongodb.MongoClientURI; |
| #!/bin/sh | |
| # | |
| # Installation | |
| # mkdir ~/bin | |
| # cd ~/bin | |
| # wget http://gist.github.com/raw//5506188/slugify | |
| # chmod +x ~/bin/slugify | |
| # | |
| # Usage | |
| # $ lspci > ~/Desktop/pci-devices-$(slugify `date`).report |
| #!/bin/bash | |
| # Perform installation as root | |
| # Install prereqs | |
| yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++ | |
| # Get Collectd, untar it, make it and install | |
| wget http://collectd.org/files/collectd-5.4.0.tar.gz | |
| tar zxvf collectd-5.4.0.tar.gz |
| type ( | |
| // BuoyCondition contains information for an individual station. | |
| BuoyCondition struct { | |
| WindSpeed float64 `bson:"wind_speed_milehour"` | |
| WindDirection int `bson:"wind_direction_degnorth"` | |
| WindGust float64 `bson:"gust_wind_speed_milehour"` | |
| } | |
| // BuoyLocation contains the buoy's location. | |
| BuoyLocation struct { |
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where:
| <?php | |
| register_tick_function(function() { | |
| $bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); | |
| $last = reset($bt); | |
| $info = sprintf("%s +%d\n", $last['file'], $last['line']); | |
| file_put_contents('/tmp/segfault.txt', $info, FILE_APPEND); | |
| // or | |
| // file_put_contents('php://output', $info, FILE_APPEND); | |
| }); |
| the 'repackage' command creates a distributable box file from the unpacked box in your ~/.vagrant.d/boxes directory. | |
| Let's say you "vagrant box add" a box named centos.box from an URL | |
| vagrant will extract centos.box in your vagrant home folder (the box format is just a tar file) | |
| in my case ~/.vagrant.d/boxes/centos | |
| In that folder you will see files like : | |
| [root@goll tmp]# ls ~/.vagrant.d/boxes/centos65/0/virtualbox/ | |
| box-disk1.vmdk box.ovf metadata.json Vagrantfile |