This file contains hidden or 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
[wsl2] | |
kernel=C:\\Users\\JAKA\\vmlinux |
This file contains hidden or 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
{ | |
removeAttrByPath = attrPath: attrs: | |
let | |
recurse = residualPath: currentPath: set: | |
let | |
# if on course continue recursion else just return value | |
g = name: value: | |
if name == lib.head residualPath | |
then recurse (lib.tail residualPath) (currentPath ++ [name]) value | |
else value; |
This file contains hidden or 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
#!/bin/bash | |
set -e | |
VIRSH=virsh | |
[email protected] | |
LIBVIRT_URI=qemu+ssh://$LIBVIRT_HOST/system | |
POOL=images | |
PROJECT=$1 | |
SHARE_DIR=/storage/share |
This file contains hidden or 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
{ | |
pkgs ? import <nixpkgs> {}, | |
internalDomain ? "cluster.local", | |
externalDomain ? "<domain_name>", | |
serviceClusterIp ? "10.0.0.1" | |
}: | |
let | |
runWithCFSSL = name: cmd: | |
builtins.fromJSON (builtins.readFile ( | |
pkgs.runCommand "${name}-cfss.json" { |
This file contains hidden or 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
import ./default.nix # The root nixpkgs default.nix | |
{ | |
crossSystem = { | |
# That's the triplet they use in the mingw-w64 docs, | |
# and it's relevant for nixpkgs conditions. | |
config = "x86_64-w64-mingw32"; | |
arch = "x86"; # Irrelevant | |
libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain | |
platform = {}; | |
openssl.system = "mingw64"; |
This file contains hidden or 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
FROM resin/armv7hf-debian-qemu | |
RUN [ "cross-build-start" ] | |
RUN apt-get update | |
RUN apt-get install -y python python-pip | |
RUN pip install virtualenv | |
RUN [ "cross-build-end" ] |
This file contains hidden or 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
'use strict'; | |
const amqp = require('amqplib-easy')('amqp://localhost'); | |
const exchangeOptions = { | |
exchange: 'amq.headers', | |
exchangeType: 'headers' | |
}; | |
// takes a default connection for handling errors |
This file contains hidden or 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
# This is mostly a work in progress and might not work with what is in | |
# nixpkgs trunk. If you have questions, feel free to contact me: | |
# Jaka Hudoklin <[email protected]> | |
{ | |
allowUnfree = true; # for flash and such | |
#allowBroken = true; # for testing | |
chromium.enableGoogleTalkPlugin = true; | |
chromium.enablePepperFlash = true; |
This file contains hidden or 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
// npm install hapijs/joi#issue-577 | |
'use strict'; | |
var Joi = require('joi'); | |
class TypableObject extends Object { | |
constructor(value, type) { | |
super(value); | |
Object.defineProperty(this, '_type', {value: type}); |
This file contains hidden or 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
# initialization file (not found) |