Skip to content

Instantly share code, notes, and snippets.

int main() {
UBRR0H = 0;
UBRR0L = 52;
UCSR0B = _BV(TXEN0);
UCSR0C = _BV(USBS0) | _BV(UCSZ01);
stdout = &mystdout;
while(1) {
int x;
for (x = 1; x < 1024; x++) {
UBRR0L = x;
var io = require('socket.io');
var redis_options = {}; // read https://github.com/LearnBoost/socket.io/blob/master/lib/stores/redis.js
var store = new io.RedisStore(redis_options);
var server = io.listen(http_server,{store:store});
@cleverca22
cleverca22 / config.nix
Last active October 22, 2015 10:25
qemu-user setup
{
packageOverrides = pkgs: rec {
qemu-user-arm = pkgs.callPackage ./qemu-user.nix { user_arch = "arm"; };
nix = pkgs.stdenv.lib.overrideDerivation pkgs.nix (oldAttrs: {
patches = ./hax.patch;
});
};
}
@cleverca22
cleverca22 / cwrap.nix
Last active October 23, 2015 11:03 — forked from anonymous/default.nix
{ stdenv, lua, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "cwrap-7";
src = fetchFromGitHub {
owner = "torch";
repo = "cwrap";
rev = "6e7d52f0a359dee47127386adb03c0dc4ddd4766";
sha256 = "01yh9z0axz0b4f87mbhkzh64dyv6c4jdkazcpmy1bl1am8apbd8w";
{ nixpkgs ? <nixpkgs>, system ? builtins.currentSystem }:
with import nixpkgs { inherit system; };
let nix = enableDebugging nixUnstable; in
runCommand "test"
{ buildInputs = [ nix boehmgc ]; dontStrip = true; }
''
mkdir -p $out/bin/
fileSystems = {
"/" = {
device = "UUID=d230cc98-8f33-457f-9fee-b65558165188";
fsType = "ext4";
iscsi = {
enable = true;
host = "192.168.2.61";
lun = "iqn.2001-04.com.c2d-nix3";
};
};
diff --git a/src/lib/Hydra/Plugin/NixPush.pm b/src/lib/Hydra/Plugin/NixPush.pm
new file mode 100644
index 0000000..2b4e29f
--- /dev/null
+++ b/src/lib/Hydra/Plugin/NixPush.pm
@@ -0,0 +1,22 @@
+package Hydra::Plugin::NixPush;
+
+use strict;
+use parent 'Hydra::Plugin';
|Time | 192.99.15.220 |
| | | 192.168.2.15 |
|0.000000000| Data | |TOX: Data
| |(33445) ------------------> (33445) |
|0.050289000| Data | |TOX: Data
| |(33445) ------------------> (33445) |
|1.006913000| Data | |TOX: Data
| |(33445) ------------------> (33445) |
|2.014028000| Data | |TOX: Data
| |(33445) ------------------> (33445) |
services = {
bind = {
enable = true;
cacheNetworks = [ "192.168.2.0/24" "127.0.0.0/8" ];
zones = [
{
name = "localnet";
slaves = [ ];
file = ./localnet;
}
if exists user-class and option user-class = "iPXE" {
filename "http://192.168.2.61/test/script.ipxe";
} else {
filename = "undionly.kpxe";
}