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
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; |
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
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}); | |
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
{ | |
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; | |
}); | |
}; | |
} |
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
{ stdenv, lua, fetchFromGitHub }: | |
stdenv.mkDerivation rec { | |
name = "cwrap-7"; | |
src = fetchFromGitHub { | |
owner = "torch"; | |
repo = "cwrap"; | |
rev = "6e7d52f0a359dee47127386adb03c0dc4ddd4766"; | |
sha256 = "01yh9z0axz0b4f87mbhkzh64dyv6c4jdkazcpmy1bl1am8apbd8w"; |
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
{ 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/ |
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
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"; | |
}; | |
}; |
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
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'; |
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
|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) | |
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
services = { | |
bind = { | |
enable = true; | |
cacheNetworks = [ "192.168.2.0/24" "127.0.0.0/8" ]; | |
zones = [ | |
{ | |
name = "localnet"; | |
slaves = [ ]; | |
file = ./localnet; | |
} |
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
if exists user-class and option user-class = "iPXE" { | |
filename "http://192.168.2.61/test/script.ipxe"; | |
} else { | |
filename = "undionly.kpxe"; | |
} |