$ mkdir -p ~/tmp/build/chromium-vagrant && cd ~/tmp/build/chromium-vagrant
$ vim Vagrantfile
$ vagrant up && vagrant halt
# use virtualbox to add 20GB swap (/dev/sdb)
$ vagrant up && vagrant ssh
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
chromium-browser --user-data-dir=$HOME/tmp/chromium-test |
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
# === Manual Installation of OpenELEC for Raspberry Pi on SD card === | |
# | |
# Adapted from create_sdcard of OpenELEC-RPi.arm-3.0.3. | |
# Run in OpenELEC-RPi.arm-3.0.3/. | |
# | |
# === IMPORTANT === | |
# | |
# These instructions assume your SD card is at /dev/sdb; replace | |
# as appropriate. | |
# This will wipe any data off your chosen drive. |
[]: {{{1
File : README.md
Maintainer : Felix C. Stegerman <[email protected]>
Date : 2013-05-25
[]: }}}1
[]: {{{1
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
# Usage: canonpath <path> | |
# No physical check on the filesystem, but a logical cleanup of a | |
# path. | |
# Uses perl. | |
function canonpath () | |
{ perl -MFile::Spec -e 'print File::Spec->canonpath($ARGV[0])' "$1"; } | |
[]: {{{1
File : README.md
Maintainer : Felix C. Stegerman <[email protected]>
Date : 2013-06-12
[]: }}}1
This README describes how I created a precise64-flx vagrant base box. It is meant to be more secure and contain some useful tools.
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
# One-line version of head-and-tail.plx (w/o --no-overlap and w/o | |
# proper handling of tail less than number of lines): | |
seq 1 100000 | HEAD=5 TAIL=2 SEP=$'...\n' perl -e 'my($h,$t,$s,$l)=($ENV{"HEAD"}||10,$ENV{"TAIL"}||10,$ENV{"SEP"}||"",0);my @b=();while(<>){print if $.<=$h;$b[$.%$t]=$_;$l=$.};print $s;for(my $i=$t-1;$i>=0;--$i){print $b[($l-$i)%$t]}' | |
# For files (not streams), this seems to work just fine too (but it | |
# will not overlap): | |
( head -n 5; echo ...; tail -n 2 ) < some-file |