Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am tomberek on github.
  • I am tomberek (https://keybase.io/tomberek) on keybase.
  • I have a public key whose fingerprint is 8718 4F1C A00E AF3A 38E9 5DF8 E4DD 675E CF1D C4FC

To claim this, I am signing this object:

@tomberek
tomberek / default.nix
Created Jul 19, 2019 — forked from dmjio/default.nix
Nix release builder
View default.nix
# Function which takes a list of packages to install and creates a
# tarball which contains the full list of dependencies of those paths,
# and a script which will install them.
#
# For example, here's how you would create a tarball packaging up
# python3 and nodejs:
#
#
# let
# pkgs = import <nixpkgs> {};
View catar.ksy
meta:
id: catar
file-extension: catar
endian: le
license: CC0-1.0
seq:
- id: header
type: ca_format
repeat: eos
types:
View catar.ksy
meta:
id: catar
file-extension: catar
endian: le
license: CC0-1.0
seq:
- id: top
type: ca_format
instances:
marker:
View docker-helper.nix
{ pkgs ? import <nixpkgs> {}
}:
let
nix = pkgs.nixUnstable;
inherit (pkgs) stdenv;
# TODO: config could be using nixos modules
defaultConfig = {
Env = [
View docker-override.nix
buildImageWithNixDb = args@{ contents ? null, extraCommands ? "", fromImage ? null, ... }:
let
# Use lazy evaluation to get list
contentsList = image.contentsList;
image = buildImage (args // {
config = args.config // {
Entrypoint = if args.config?Entrypoint then args.config.Entrypoint else "${entrypoint}/bin/entry";
Env = args.config.Env ++ [
"HOME=/root"
"USER=root"
View gist:e86ba3937ed15f919b12d4cc30710f1b
// Copyright 2017 Michal Witkowski. All Rights Reserved.
// See LICENSE for licensing terms.
// Modified Thomas Bereknyei
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
View example.go
package main
import "C"
import (
"fmt"
"net/http"
"os"
"github.com/gin-contrib/static"
View media-server-go-native.nix
{ pkgs ? import <nixpkgs>{} }:
let
src = pkgs.fetchgit {
fetchSubmodules = true;
url = "https://github.com/notedit/media-server-go-native.git";
deepClone = true;
rev = "4b84572c5b39f08e4dfaa44f0fe9e0c0f6b73e63";
sha256 = "sha256-+vrlixx8Z5RlKeafvBER7CClmMPNdEag3EFoeyWgTrs=";
};
in