- Create 10GB FreeBSD image using QEMU.
- Run the VM using xhyve.
- Mount host directory.
- Resize the image.
- OSX
- Homebrew
| <?php | |
| //require this to get a database connection | |
| $connect = mysql_connect('localhost','test','test'); | |
| mysql_select_db('test'); | |
| ?> |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # unfortunately debian currently panics in xhyve | |
| tmp=$(mktemp -d) | |
| pushd "$tmp" | |
| iso="$HOME"/Downloads/debian-8.1.0-amd64-netinst.iso | |
| #iso="$HOME"/Downloads/debian-8.1.0-i386-netinst.iso | |
| echo "fixing disk" | |
| dd if=/dev/zero bs=2k count=1 of=tmp.iso |
| #!/bin/bash | |
| tmp=$(mktemp -d) | |
| pushd "$tmp" | |
| iso=/Users/lloeki/Downloads/archlinux-2015.08.01-dual.iso | |
| echo "fixing disk" | |
| dd if=/dev/zero bs=2k count=1 of=tmp.iso | |
| dd if=$iso bs=2k skip=1 >> tmp.iso | |
| echo "mounting disk" |
| from __future__ import division | |
| from pyparsing import (Literal,CaselessLiteral,Word,Combine,Group,Optional, | |
| ZeroOrMore,Forward,nums,alphas,oneOf) | |
| import math | |
| import operator | |
| __author__='Paul McGuire' | |
| __version__ = '$Revision: 0.0 $' | |
| __date__ = '$Date: 2009-03-20 $' | |
| __source__='''http://pyparsing.wikispaces.com/file/view/fourFn.py |
| <? | |
| class Google2FA { | |
| const keyRegeneration = 30; // Interval between key regeneration | |
| const otpLength = 6; // Length of the Token generated | |
| private static $lut = array( // Lookup needed for Base32 encoding | |
| "A" => 0, "B" => 1, | |
| "C" => 2, "D" => 3, | |
| "E" => 4, "F" => 5, | |
| "G" => 6, "H" => 7, | |
| "I" => 8, "J" => 9, |
| /* | |
| * IRC - Internet Relay Chat, src/modules/cloak.c | |
| * (C) 2004 The UnrealIRCd Team | |
| * | |
| * See file AUTHORS in IRC package for additional names of | |
| * the programmers. | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 1, or (at your option) |
| import java.util.HashMap; | |
| import java.util.Map; | |
| public class TagCloud { | |
| private HashMap<String, Integer> tags; | |
| public static void main(String[] args) { | |
| TagCloud tagcloud = new TagCloud(); | |
| } | |
| public TagCloud(){ |