View run.sh
#!/bin/sh
### LICENSE (BSD 2-Clause) // ###
#
# Copyright (c) 2014, Daniel Plominski (Plominski IT Consulting)
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
View backup-mysql
#!/usr/bin/env bash
# TARGET: Backup-Ziel
# IGNORE: Liste zu ignorierender Datenbanken (durch | getrennt)
IGNORE="mysql|information_schema|performance_schema|test"
PASSWORD="<root-password>"
set -eu -o pipefail
export PATH="/usr/bin/:$PATH"
View .makepkg.conf
# ~aurrepo/.makepkg.conf
GPGKEY="<GPG_KEY_ID>"
PKGDEST=/var/lib/aurrepo
PACKAGER="name <email@address>"
View torrc
# /etc/tor/instances/matchbox/torrc
# trade anonymity of the service for speed/latency
# by decreasing the number of intermediate hops from 6 to 3.
# on debian this requires tor from testing (06-01-2016)
SocksPort 0
HiddenServiceNonAnonymousMode 1
HiddenServiceSingleHopMode 1
HiddenServiceDir /var/lib/tor-instances/matchbox/ssh
View initrd-cryptsetup
# /etc/nixos/configuration.nix
boot = {
initrd.network = {
enable = true;
ssh = {
enable = true;
port = 2222;
hostECDSAKey = /etc/nixos/secrets/initrd-ssh-key;
};
postCommands = ''
View default.nix
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "env";
buildInputs = [
zlib
];
}
View theme.nix
environment.sessionVariables = {
# so gtk2.0/gtk3.0 themes can be found
GTK_DATA_PREFIX="/run/current-system/sw";
};
View kexec-installer.nix
## USAGE
# $ nix-build kexec-installer.nix
# can be deployed remote like this
# $ rsync -aL -e ssh result/ root@host:
# $ ssh root@host ./kexec-installer
## Customize it like this
# # custom-installer.nix
# import ./kexec-installer.nix {
# extraConfig = {pkgs, ... } {
# user.extraUsers.root.openssh.authorizedKeys.keys = [ "<your-key>" ];
View rambox-build.log
> electron@1.4.7 postinstall /nix/store/iy6smxlp5a8w6dxxbgfii1189nb78g9r-node-rambox-0.4.5/lib/node_modules/rambox/node_modules/electron
> node install.js
/nix/store/iy6smxlp5a8w6dxxbgfii1189nb78g9r-node-rambox-0.4.5/lib/node_modules/rambox/node_modules/electron/install.js:22
throw err
^
Error: getaddrinfo ENOTFOUND github.com github.com:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
View inventory
[local]
# requires python2 in systemPackages
localhost ansible_connection=local ansible_python_interpreter="/run/current-system/sw/bin/python2"