Skip to content

Instantly share code, notes, and snippets.

View TomHoenderdos's full-sized avatar

Tom Hoenderdos TomHoenderdos

  • University of Applied Sciences Leiden
  • Leiden, The Netherlands
  • 23:57 (UTC +02:00)
View GitHub Profile
@TomHoenderdos
TomHoenderdos / es.sh
Created May 24, 2012 08:26 — forked from KazW/es.sh
Install ElasticSearch on Ubuntu 11.04
cd ~
sudo apt-get update
sudo apt-get install unzip curl python-software-properties -y
wget https://raw.github.com/flexiondotorg/oab-java6/master/oab-java6.sh -O oab-java6.sh
chmod +x oab-java6.sh
sudo ./oab-java6.sh
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin -y
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.18.7.tar.gz -O elasticsearch.tar.gz
[nix@nixos:~/nixpkgs]$ sudo nix-build -A jenkins
these derivations will be built:
/nix/store/f6zz59hasm15q9lgqslmg53446h5swrd-Jenkins-1.529.drv
building path(s) `/nix/store/nm4f4dqah8w1b7arfxgl2rm86vkbr1jn-Jenkins-1.529'
building /nix/store/nm4f4dqah8w1b7arfxgl2rm86vkbr1jn-Jenkins-1.529
unpacking sources
unpacking source archive /nix/store/6vqz3ax4pjy5dgy0bhmxaxmbwrcx88i8-jenkins.war
source archive /nix/store/6vqz3ax4pjy5dgy0bhmxaxmbwrcx88i8-jenkins.war has unknown type
builder for `/nix/store/f6zz59hasm15q9lgqslmg53446h5swrd-Jenkins-1.529.drv' failed with exit code 1
error: build of `/nix/store/f6zz59hasm15q9lgqslmg53446h5swrd-Jenkins-1.529.drv' failed
error: while evaluating the attribute `drvPath' at `/nix/store/l7ny7f17aii5qfgmadr2wcp3wan54wlp-nix-1.5.3/share/nix/corepkgs/derivation.nix:19:9':
while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `manifest.xml' at `/nix/store/wsvdwydc13bxj3hnj74nf797y1zkasi6-disnixos-0.2pre77208b9bf296b2376bd95154b333db304b50bec0.tar.gz/share/disnixos/manifest.nix:23:3':
while evaluating the derivation attribute `buildCommand' at `/nix/store/wsvdwydc13bxj3hnj74nf797y1zkasi6-disnixos-0.2pre77208b9bf296b2376bd95154b333db304b50bec0.tar.gz/share/disnixos/manifest.nix:25:3':
while evaluating the builtin function `toXML':
while evaluating the attribute `config.system.build.toplevel.outPath' at `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/pkgs/lib/customisation.nix:110:54':
while evaluating the attribute `outPath' at `/nix/store/l7ny7f17aii5qfgmadr2wcp3wan54wlp-nix-1.5.3/share/nix/corepkgs/derivation.nix:18:9':
while evaluating the builtin function `getAttr':
while eva
disnixos-deploy-network network.nix --show-trace
error: while evaluating the attribute `drvPath' at `/nix/store/l7ny7f17aii5qfgmadr2wcp3wan54wlp-nix-1.5.3/share/nix/corepkgs/derivation.nix:19:9':
while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `manifest.xml' at `/nix/store/wsvdwydc13bxj3hnj74nf797y1zkasi6-disnixos-0.2pre77208b9bf296b2376bd95154b333db304b50bec0.tar.gz/share/disnixos/manifest.nix:23:3':
while evaluating the derivation attribute `buildCommand' at `/nix/store/wsvdwydc13bxj3hnj74nf797y1zkasi6-disnixos-0.2pre77208b9bf296b2376bd95154b333db304b50bec0.tar.gz/share/disnixos/manifest.nix:25:3':
while evaluating the builtin function `toXML':
while evaluating the attribute `config.system.build.toplevel.outPath' at `/nix/store/0pzkjr9s78ak6m4shkl8sss24jmsd8rb-nixos/lib/eval-config.nix:69:3':
while evaluating `checkModule' at `/root/sources/nixpkgs/pkgs/lib/modules.nix:357:23':
while evaluating `fold' at `/root/sources/nixpkgs/pkgs/lib/lists.nix:24:19':
whi
{ nixpkgs ? <originalpkgs>, system ? builtins.currentSystem }:
let
pkgs = import nixpkgs { inherit system; };
in
rec {
storm = import ../servers/computing/storm {
inherit (pkgs) stdenv fetchurl zip unzip jdk lib python;
disnixos-deploy-network ~/Nodes/disnix/deployment/network.nix --show-trace
Distributing intra-dependency closure of profile: /nix/store/hxq63k4magx277s64zsbbyfwjcjx0mda-nixos-13.09pre5022_71365b7-38d54cf to target: 10.0.20.112
Connecting to the system bus.
Creating a Glib proxy object.
Add the argument signatures for the signal handler
Register D-Bus signal handlers
Assigned PID: 46
Executing operation.
Received success signal from pid: 46
Distributing intra-dependency closure of profile: /nix/store/fzma5hx42dzw3ac8cim2r3x98gmcifbg-nixos-13.09pre5022_71365b7-38d54cf to target: 10.0.20.129
{config, pkgs, ...}:
with pkgs.lib;
let
cfg = config.services.zookeeper;
custompkgs = import <customnixpkgs> {};
zookeeper = custompkgs.zookeeper;
zooCfg = pkgs.writeText "zoo.cfg" "${cfg.config}";
in
{ pkgs ? import <nixpkgs> {}, distribution ? [], ... }:
let
custompkgs = import <customnixpkgs> {};
in
with pkgs.lib;
@TomHoenderdos
TomHoenderdos / gist:7466290
Created November 14, 2013 12:54
vmadm remove nics, add nics and remove nics
echo '{"remove_nics": ["b2:b4:cb:d4:62:4f"]}' | vmadm update ce26e77d-0d63-40a6-a891-55c136290bca
echo '{"add_nics": [{"interface": "net0","mac": "b2:b4:cb:d4:62:4f","nic_tag": "switch0","gateway": "10.20.0.254","primary": true,"ip": "10.20.0.10","netmask": "10.20.255.255"}]}' | vmadm update ce26e77d-0d63-40a6-a891-55c136290bca
echo '{"update_nics":[{"mac": "b2:b4:cb:d4:62:4f", "ip": "10.0.1.10", "netmask": "10.255.255.255"}]}' | vmadm update ce26e77d-0d63-40a6-a891-55c136290bca
@TomHoenderdos
TomHoenderdos / gist:7530363
Created November 18, 2013 16:06
wiggle error log
2013-11-18 15:53:18.728 [error] emulator Error in process <0.729.0> on node 'wiggle@10.20.0.10' with exit value: {{try_clause,<<17 bytes>>},[{cowboy_websocket,handler_init,2,[{file,"src/cowboy_websocket.erl"},{line,140}]},{cowboy_protocol,execute,4,[{file,"src/cowboy_protocol.erl"},{line,523}]}]}