Skip to content

Instantly share code, notes, and snippets.

deploying awesomeness

Jaka Hudoklin offlinehacker

deploying awesomeness
View GitHub Profile
edolstra /
Last active May 23, 2021
Nix language changes

This document contains some ideas for additions to the Nix language.


The Nix package manager, Nixpkgs and NixOS currently have several problems:

  • Poor discoverability of package options. Package functions have function arguments like enableFoo, but there is no way for the Nix UI to discover them, let alone to provide programmatic ways to
View naloge_functions&modules.js
/* Poiščite node.js modul na, ga namestite v okolju in ga
uporabite. Naredite funkcijo, ki iz datoteke prebere števila in jih sešteje med seboj.*/
var fs = require('fs');
var numbers = '0, 1, 3.9, -5, 100 \n200, 300 \n-50';
fs.writeFileSync('file', numbers);
function sum(file_name) {
var x = fs.readFileSync(file_name, 'utf-8').split(/[\n,]+/);
return x.reduce(function(a, b){return parseFloat(a) + parseFloat(b)});
vishvananda /
Created Oct 22, 2013
Script to set up an ipsec tunnel between two machines For Example: ./ would set up an ipsec tunnel over address using as a virtual address passwordless sudo required for user on remote machine
if [ "$4" == "" ]; then
echo "usage: $0 <local_ip> <remote_ip> <new_local_ip> <new_remote_ip>"
echo "creates an ipsec tunnel between two machines"
exit 1
SRC="$1"; shift
DST="$1"; shift