Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| # required build environment packages: binfmt-support qemu qemu-user-static debootstrap kpartx lvm2 dosfstools | |
| # made possible by: | |
| # Klaus M Pfeiffer (http://blog.kmp.or.at/2012/05/build-your-own-raspberry-pi-image/) | |
| # Alex Bradbury (http://asbradbury.org/projects/spindle/) | |
| deb_mirror="http://archive.raspbian.org/raspbian/" | |
| deb_local_mirror=$deb_mirror | |
| deb_release="wheezy" |
(I guarantee nothing. No warranty I am not responsible blah blah blah. Seems to work great for me so far. Thanks to Tyler Bird who I forked this from.)
This installs a patched ruby 1.9.3-p392 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets
| #!/bin/bash | |
| ###################################################################### | |
| # Raspberry Pi | |
| # | |
| # Gross Script by Dweeber (Kevin Reed) <[email protected]> | |
| # V1.0 2012-09-19 | |
| # | |
| # Use the vcgencmd to obtain the Temp of the SOC | |
| # then calculates the F value using bc. | |
| # |
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
| # Fix for a Rails - Ruby 1.9 bug | |
| # Rails Router, now that it's UTF-8 default, blows up when routing requests | |
| # with invalid chars in the URL; it should properly return a 400 error | |
| # Have to monkey-patch the fix in, since it's not scheduled for release until | |
| # Rails 4.0. | |
| # Adapted Andrew White (pixeltrix)'s fix at | |
| # https://github.com/rails/rails/commit/3fc561a1f71edf1c2bae695cafa03909d24a5ca3, | |
| # but edited to work in 3.0.x. | |
| # 3.1.x, 3.2.x compatibility unknown | |
| require 'action_dispatch/routing/route_set' |
This script installs a patched version of ruby 1.9.3-p194 with patches for boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
Huge thanks to funny-falcon for the performance patches.
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/usr/bin/env bash | |
| ## | |
| # @author Jay Taylor <[email protected]> | |
| # | |
| # @date 2011-10-20 | |
| # | |
| # @description Copies MySQL database to ramdisk then runs supplied shell script | |
| # or command. The ramdisk version of the database is then copied back to the | |
| # filesystem. Speeds up IO-intensive operations (e.g. loading heavily indexed |
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |