Jeg satt i den store, grå bilen vår på den lange veien til den fine, brune hytta vår. Lydboken vi skulle høre på trodde jeg var kjedelig, men jeg innså at den var helt utrolig gøy. Derfor gikk den lange turen til hytta veldig fort. Dagen etter tok jeg et stort, mykt lammeskinn og la det på det kalde gulvet. Jeg tok fram den spennende boka mi og la meg på lammeskinnet og leste lenge. På fredag gikk vi en lang skitur rundt det store Otrøvannet. Det var strålende sol når vi satte oss ned for å spise halvveis i løypa. Vi spiste deilig mat og nydelig kvikklunsj til dessert. Dagen etter sto vi på slålom i de bratte bakkene ved siden av den brune hytta vår. Vi spiste lunsj på en fin cafe nede ved den minste slålombakken. Vi hadde en god hamburger med pommes frites og en stor, nydelig kakao med marshmallows.
This file contains 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
import okhttp3.*; | |
import org.junit.Test; | |
import static org.junit.Assert.assertEquals; | |
import static org.junit.Assert.assertNull; | |
public class OkHttpBug { | |
@Test | |
public void test() throws Exception { | |
Request request = new Request.Builder() |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.openzfsonosx.ilovezfs.zfs.zpool-import</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/sbin/zpool</string> | |
<string>import</string> |
I hereby claim:
- I am stigkj on github.
- I am stigkj (https://keybase.io/stigkj) on keybase.
- I have a public key ASAF9Gyyn_lXDCnknfiFInAwotjWOBQAflBHzDnNJS5algo
To claim this, I am signing this object:
This file contains 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
@Test | |
public void should_filter_out_messages_with_missing_durations() { | |
template.sendBodyAndHeaders("solr://<some solr server>", [someInputData(), someOtherInputData()], headers) | |
new PollingConditions(timeout: 10, initialDelay: 1.5, factor: 1.25).eventually { | |
assert solr.received.size() == 1 | |
} | |
assert solr.received.first().body.contains(<some string>) | |
} |
This file contains 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/sh | |
# | |
# Creates a SmartOS VM in VirtualBox (assuming you alread have VirtualBox installed) | |
# | |
# This script will: | |
# * Download the latest live ISO image of SmartOS | |
# * Create a VirtualBox VM, or update an existing VM with the latest ISO | |
# * Configure the VM with a zones disk, and boot it! | |
# | |
# |
The diode bridge is the simplest rectifier I know.
Rectifier lets you share a directory with a docker container (just like $yourvm
shared folders).
You don't have to install anything in your containers, and you only need to install diod
in the host. diod
is packaged on Ubuntu/Debian distros, and will automatically be apt-get install
-ed if needed.
Since it uses diod
to make a bridge, I called it rectifier. Yeah, that sucks, so if you have a better name, I'll steal it!
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define "boot2docker-nsinit" | |
config.vm.box = "yungsang/boot2docker" |
This file contains 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: require('./pid')("myapp"); | |
// | |
var fs = require('fs'); | |
module.exports = function(appname){ | |
process.title = appname; | |
var PID_FILE = "/usr/local/var/run/"+process.title+".pid"; |
This file contains 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/sh | |
set -e | |
JAVA_VER=7 | |
rm -f /tmp/oab-index.html /tmp/oab-download.html >/dev/null 2>&1 || true | |
trap "rm -f /tmp/oab-index.html /tmp/oab-download.html" EXIT ERR QUIT INT TERM | |
# Try and dynamic find the JDK downloads | |
echo " [x] Getting Java SE download page " |
NewerOlder