Skip to content

Instantly share code, notes, and snippets.

View uskudnik's full-sized avatar

Urban Škudnik uskudnik

View GitHub Profile
@uskudnik
uskudnik / nixos-on-dell-9560.org
Created September 5, 2020 13:59 — forked from domenkozar/nixos-on-dell-9560.org
NixOS on a Dell 15" 9560 with the 4K screen.
services.openvpn.servers.example = {
config = someconfighere;
autoStart = true;
up = ''
echo nameserver $nameserver | ${pkgs.openresolv}/bin/resolvconf -a $dev
'';
down = ''
echo nameserver $nameserver | ${pkgs.openresolv}/bin/resolvconf -d $dev
'';
};
@uskudnik
uskudnik / nixos-on-dell-9560.org
Created June 17, 2017 23:29 — forked from grahamc/nixos-on-dell-9560.org
NixOS on a Dell 15" 9560 with the 4K screen.
#!/usr/bin/env bash
MYCOMMAND='while [ true ]; do sleep 1; echo "beje"; done'
# This will take down the whole process tree on ctrl+c
trap "exit" INT TERM
trap "kill 0" EXIT
while true; do
sleep 1;
@uskudnik
uskudnik / glacier.py
Created August 24, 2012 11:18 — forked from almost/glacier.py
Amazon Glacier from Python. Based on Boto, will contribute to Boto when it's a little more finished if it's any good at that point :)
#!/usr/bin/env python
# encoding: utf-8
# Originally developed by Thomas Parslow http://almostobsolete.net
# Extended by Urban Skudnik urban.skudnik@gmail.com
#
# Just a work in progress and adapted to what I need right now.
# It does uploads (via a file-like object that you write to) and
# I've started on downloads. Needs the development version of Boto from Github.
#