Skip to content

Instantly share code, notes, and snippets.

View aforemny's full-sized avatar
turning coffee into bugs

Alexander Foremny aforemny

turning coffee into bugs
  • Self-employed
  • Hanover, Germany
  • 03:43 (UTC +01:00)
View GitHub Profile
# Default: false
- containers.<name>.enableTun
- programs.proxychains.proxies.<name>.enable
- security.pam.services.<name>.enableAppArmor
- security.pam.services.<name>.enableGnomeKeyring
- security.pam.services.<name>.enableKwallet
- services.bitcoind.<name>.enable
- services.blockbook-frontend.<name>.enable
- services.dokuwiki.<name>.enable
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGDdcVkBDADem2Kl8BMcxd739wGa5zs7DqrLrwkZO++FKOou96EDNuV1yYij
1fCCh/X7aujNeXnHxzhjP1BrRSNCYqPnewmNEOm56GH5ZInIF7u66FAtlS0mFvtM
yWF+oVXjYkl+Uic4PZY8Hc7MmigMP19+ppyPphHb7g/0c6wrahneuUS+UWodiuP7
hOiQN+fwoO6galbU4q5CuiHJpBs49xyq0NwE6qcVOpUv6CgsH70+0PFPG2CjeCJb
5d8ppJWfhygEvD00BfyUTKbFhFtPKVBgvuN8vft1HIloMMY77lj676Hx/9jC5kqt
koyGcF/wHeQIveRVU/Dj+cMoUgCQcwaB1cW12xoYOTtiHGfAqcrRVaSLwy72MKqj
VOms6Wl/MaL0YZ+f9U+lFYWlV9YqxVGaAU2z+KgE+M+EwQZGdrVjBkoqcdT1GVSn
D8wq5xghkvsMb4tmI1Z48HMgzYmbyI/10L1tbbLGLMmj5jJ/49YQfEZ9iSu7kx8P
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFQGtP6tuSrDuELAo6AhybqAAJACijWIQiQy8MPfj2seXNJKKz3X95oLjx3Tt6ywR0d4BdtsF1x2hUR7wH0p8Abjaw/F/qHraolWLA4RO/CxLrLO0qD4Dtz0vS1w/ofL6to5/hpr83iPB5ZFBp+Tp98jpM/a2Q+ob1SN0etE1SbxB7p1Yaxfr3PEWER5jF8IoVJoVjLLx5kqn66ZCucJ7ZBDLUS3788G+r+o3F2ANWk+7W+keTcGko+Ys4ob4kh+yJGVvbZDfHfRosnFx5gbm/4+L2sorGQZ4YgEKbebx7et31+iZ/5SpmAXRmSUC7JHBcOioKeunRSGQf9d6nJ8qTCVxX5+krPodfTrzOEfcZGU7WtsIi3VT8H3gdYbbRLpeL79NybPo4Q2LXqRwfIzY/Ou2VN0MhvABu5RppRqCPPpmwl8FC0QPLag+erR11dxawog90+8x8nVw53S4U13N4PKDlyXlEIEXOju65dUAU+7PsBsNS8TryfRxY/9TRKDE= aforemny@x1e
$ cat idiotbox.nix
{ pkgs ? import <nixpkgs> { } }:
{
idiotbox = pkgs.callPackage (
{ stdenv, fetchurl, libressl }:
stdenv.mkDerivation rec {
pname = "idiotbox";
version = "0.4";
src = fetchurl {
url = "https://www.codemadness.org/releases/frontends/frontends-${version}.tar.gz";
{ lib, stdenv, fetchurl
, pkg-config, libtool
, libX11, libXt, libXpm, libjpeg_turbo, librsvg, xorg }:
stdenv.mkDerivation rec {
pname = "aterm";
version = "1.0.1";
src = fetchurl {
url = "https://phoenixnap.dl.sourceforge.net/project/aterm/aterm/1.0.1/aterm-1.0.1.tar.gz";
-- phonesim.nix (phonesim module)
```nix
{ config, pkgs, lib, ... }:
with lib;
let
port = "12345";
@aforemny
aforemny / xev
Created February 16, 2021 09:21
KeyPress event, serial 33, synthetic NO, window 0x1400001,
root 0x94f, subw 0x0, time 6902458, (573,934), root:(2502,1009),
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 33, synthetic NO, window 0x1400001,
root 0x94f, subw 0x0, time 6902834, (573,934), root:(2502,1009),
state 0x8, keycode 11 (keysym 0x32, 2), same_screen YES,
% time curl -w '%{time_total}' google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
46445
real 0m0.055s
user 0m0.007s
nix-build --arg nixpkgs { outPath = /tmp/build-135077409/nixpkgs/source; rev = "956afcd713a4f94a4acb4460d339dc638bac3d0a"; shortRev = "956afcd"; revCount = 263447; } -I nixpkgs=/tmp/build-135077409/nixpkgs/source --arg stableBranch false --option extra-binary-caches https://hydra.nixos.org/ --option system x86_64-linux /tmp/build-135077409/nixpkgs/source/nixos/release.nix -A tests.networking.scripted.virtual
% curl https://hydra.nixos.org/build/135077409/reproduce | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4080 100 4080 0 0 22793 0 --:--:-- --:--:-- --:--:-- 22921
storing inputs and results in /tmp/build-135077409...
running nix-build...
using these flags: --arg nixpkgs { outPath = /tmp/build-135077409/nixpkgs/source; rev = "956afcd713a4f94a4acb4460d339dc638bac3d0a"; shortRev = "956afcd"; revCount = 263447; } -I nixpkgs=/tmp/build-135077409/nixpkgs/source --arg stableBranch false --option extra-binary-caches https://hydra.nixos.org/ --option system x86_64-linux /tmp/build-135077409/nixpkgs/source/nixos/release-combined.nix -A
warning: ignoring untrusted substituter 'https://hydra.nixos.org/'
/nix/store/3mjbw9fw21m5pidhh4nrsi904xvqy7n6-nixos-21.03pre263447.956afcd