View default.nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, ogre, ignition, tinyxml, gazeboSimulator
, freeimage, tbb, yarp
}:
stdenv.mkDerivation rec {
name = "gazebo-yarp-plugins-${version}";
version = "0.1.2";
src = fetchFromGitHub {
View configuration.nix
let
tudscr.pkgs = [(pkgs.callPackage (import ./tudscr.nix) {})];
mytexlive = (pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-basic
collection-bibtexextra
collection-binextra
View gist:b7fe5e0ad4d3b834c192bd6ecd763b99
let
userservice = args: {
name = args.name;
value = {
wantedBy = [ "default.target" ];
enable = true;
serviceConfig = {
RestartSec="500ms";
View README.md

first you need a previous version of the compiler

$ nix-env -i go

exporting this allows go's build system to find our compiler

$ GOBIN=$(dirname $(readlink -f $(which go)))
$ GOROOT_BOOTSTRAP=$GOBIN/../share/go
View worldcup.py
import sys
import gzip
import pandas as pd
import numpy as np
METHODS = [
"GET",
"HEAD",
"POST",
View gist:40a7f182b56ec6b694770a7dd21b46c0
&&DNSWLS {
rbl=list.dnswl.org
rbl=hostkarma.junkemailfilter.com/^127\.0\.0\.1$/3600
rhsbl_client=hostkarma.junkemailfilter.com/^127\.0\.0\.1$/3600
}
&&DNSBLS {
rbl=zen.spamhaus.org
rbl=bl.spamcop.net
rbl=db.wpbl.info
View prepare-network.sh
#!/bin/sh
set -e
IF=${IF:-eth0:avahi}
for i in $(seq 1 30); do
ip addr add "169.254.75.$i/16" dev $IF scope link || true
done
View embed.py
import numpy as np
def embed(x,y, dimension):
"""
embed 2 vectors
>>> embed([1,2,3], [4,5,6], 2)
array([[ 2., 5., 1., 4.],
[ 3., 6., 2., 5.]])
>>> embed([1,2,3], [4,5,6], 3)
array([[ 3., 6., 2., 5., 1., 4.]])
View .bashrc
#
# .bashrc - interactive shell configuration
#
# check for interactive
[[ $- = *i* ]] || return
export TTY=$(tty)
export GPG_TTY=$TTY
View dkms-update
#!/usr/bin/env ruby
kernel_package = ARGV[0] || "linux"
content = ""
args = ["pacman", "-Ql", kernel_package]
puts("$ #{args.join(" ")}")
IO.popen(args) {|io| content = io.read }
kernel = /\/usr\/lib\/modules\/(?<version>.*)\/kernel/.match(content)
abort "no kernel version found in package" unless kernel