Skip to content

Instantly share code, notes, and snippets.

View vizanto's full-sized avatar

Danny Wilson vizanto

View GitHub Profile
@vizanto
vizanto / 0-INTRO
Last active September 23, 2017 12:31
FiFo on Single IP dedicated (hetzner) server, with NAT-ted Zones
These are my interfaces:
========================
- Main interface (with internet connection, the only physical cable..)
igb0: flags=1104943<UP,BROADCAST,RUNNING,PROMISC,MULTICAST,DHCP,ROUTER,IPv4> mtu 1500 index 2
inet ***.76.170.*** netmask fffffff8 broadcast ***.76.170.***
ether 33:11:22:33:22:44
<script language="haxe">
var someState = ["things"];
</script>
<contexts>
<index>
<img src={this.thumb}/>
</index>
appserver> 2014-04-24 13:00:02
Full thread dump Java HotSpot(TM) 64-Bit Server VM (23.6-b04 mixed mode):
"ClosingPipeCloser 660406533" daemon prio=5 tid=0x00007ffbf50f8800 nid=0x4d03 in Object.wait() [0x000000011927d000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0x00000007f2199bc0> (a java.lang.Thread)
at java.lang.Thread.join(Thread.java:1258)
- locked <0x00000007f2199bc0> (a java.lang.Thread)
at java.lang.Thread.join(Thread.java:1332)
@vizanto
vizanto / configuration.nix.sql
Created November 20, 2013 18:07
NixOS boot with (shared) `/nix` mounted through NFS. Using this hack to have `/nix` stored on ZFS in the SmartOS global zone, until SmartOS gets `virtfs` support.
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
/etc/nixos/hardware-configuration.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
[root@smartnixos64 /tmp/nix-build-nix-1.6.1.drv-0/nix-1.6.1]# NIX_DEBUG=1 make -j 1
Makefile:903: warning: overriding recipe for target `config.h'
Makefile:371: warning: ignoring old recipe for target `config.h'
building config.h
true
building all
make all-recursive
make[1]: Entering directory `/tmp/nix-build-nix-1.6.1.drv-0/nix-1.6.1'
Makefile:903: warning: overriding recipe for target `config.h'
Makefile:371: warning: ignoring old recipe for target `config.h'
@vizanto
vizanto / nixos-zfs-root.sh
Last active April 16, 2016 11:31
Installing NixOS as ZFS raidz1 root on a DL360 G5
# Add the zfs filesystem to the install environment:
nano /etc/nixos/configuration.nix
## ---8<-------------------------8<---
boot.supportedFilesystems = ["zfs"];
## ---8<-------------------------8<---
nixos-rebuild switch
# Load the just installed ZFS kernel module
@vizanto
vizanto / bin-release
Created May 1, 2013 11:57
Stackoverflow while resolving deps? (but :resolve-dependencies is false)
➭ ll
total 8
-rw-r--r-- 1 blue staff 510 1 mei 13:32 project.clj
drwxr-xr-x 3 blue staff 102 4 jan 09:19 resources
drwxr-xr-x 4 blue staff 136 1 mei 13:22 src
drwxr-xr-x 4 blue staff 136 1 mei 13:25 target
➭ ll target
total 0
drwxr-xr-x 154 blue staff 5236 1 mei 13:27 classes
@vizanto
vizanto / deps.sh
Last active December 16, 2015 19:51
Deploying this project works find in immutant 0.9.0, but fails in 0.10.0 while loading hiccup. Hiccup is fully excluded from the project and should not even load!
➭ lein deps :tree
[cc.qbits/alia "1.0.0-beta1" :exclusions [[org.xerial.snappy/snappy-java]]]
[cc.qbits/hayt "0.3.0-RC1"]
[cc.qbits/knit "0.2.1"]
[cc.qbits/tardis "1.0.0"]
[com.eaio.uuid/uuid "3.3"]
[com.datastax.cassandra/cassandra-driver-core "1.0.0-beta1"]
[com.yammer.metrics/metrics-core "2.2.0"]
[io.netty/netty "3.6.2.Final"]
[org.apache.cassandra/cassandra-all "1.2.0"]
class FloatUtil {
static public function isSet(v:Float) {
trace("float isSet");
}
}