Skip to content

Instantly share code, notes, and snippets.

@makefu
makefu / histfile
Last active January 28, 2020 18:10
history of my docker experience
1 history
2 wget
3 curl
4 pacman -S fakeroot make gcc
5 pacman -Sy fakeroot make gcc
6 curl https://aur.archlinux.org/cgit/aur.git/snapshot/nix.tar.gz | tar x
7 curl https://aur.archlinux.org/cgit/aur.git/snapshot/nix.tar.gz | tar xz
8 lsl
9 ls
10 ls -alhtr
{
"name": "zigbee2mqtt",
"version": "1.9.0",
"description": "Zigbee to MQTT bridge using Zigbee-herdsman",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/Koenkk/zigbee2mqtt.git"
},
"engines": {
2001 silly decomposeActions extract color-name@1.1.3
2002 silly decomposeActions preinstall color-name@1.1.3
2003 silly decomposeActions build color-name@1.1.3
2004 silly decomposeActions install color-name@1.1.3
2005 silly decomposeActions postinstall color-name@1.1.3
2006 silly decomposeActions finalize color-name@1.1.3
2007 silly decomposeActions refresh-package-json color-name@1.1.3
2008 silly decomposeActions fetch color-convert@1.9.3
2009 silly decomposeActions extract color-convert@1.9.3
2010 silly decomposeActions preinstall color-convert@1.9.3
/sickgear-env-0.21.7
├── autoProcessTV
│   ├── autoProcessTV.cfg.sample
│   ├── autoProcessTV.py
│   ├── hellaToSickBeard.py
│   ├── mediaToSickbeard.py
│   ├── onTxComplete.bat
│   ├── onTxComplete.sample.cfg
│   ├── onTxComplete.sh
│   ├── sabToSickBeard.py
{ lib
, buildPythonPackage
, fetchPypi
, jinja2
, setuptools
}:
buildPythonPackage rec {
pname = "nixpkgs-pytools";
version = "1.0.0";
{ stdenv, lib, fetchFromGitHub, fetchpatch, kernel }:
# Upstream build for kernel 4.1 is broken, 3.12 and below seems to be working
assert lib.versionAtLeast kernel.version "4.2" || lib.versionOlder kernel.version "4.0";
stdenv.mkDerivation rec {
name = "exfat-nofuse-${version}-${kernel.version}";
version = "2018-04-16";
$ nix-build '<nixpkgs/nixos/tests/logstash.nix>'
building path(s) ‘/nix/store/gbsn252iznm52kkjgfljmx5hy6b97pd4-vm-test-run-logstash’
starting VDE switch for network 1
running the VM test script
starting all VMs
one: starting vm
one# Formatting '/tmp/nix-build-vm-test-run-logstash.drv-0/vm-state-one/one.qcow2', fmt=qcow2 size=536870912 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
one: QEMU running (pid 78)
one: waiting for unit ‘logstash.service’
one: running command: systemctl --no-pager show 'logstash.service'
@makefu
makefu / usage.sh
Created August 24, 2016 19:41
wordset_4k.c based on http://www.wortschatz.uni-leipzig.de/ german10000k
curl http://www.openwall.com/passwdqc/passwdqc-1.3.1.tar.gz |tar xz
cd passwdqc*
wget <gist> -O wordset_4k.c
make utils
LD_LIBRARY_PATH=. ./pwqgen
# Installation on archlinux
The project is communicating with Boinc, one could imagine that the installation of such a widespread software cannot be too hard, unfortunately the installation manual is spread across the website and the forum.
We are running the boinc software on a virtual machine inside the shackspace VM infrastructure. The geiger counter is attached via qemu/libvirt USB forwarding
Two things are to mention:
- the boinc software needs write-access to the geiger counter hidraw device, preferably via udev: http://radioactiveathome.org/boinc/forum_thread.php?id=478&nowrap=true#3167
# mode 660 does not seem to be enough for some reason
UBSYSTEMS=="usb", ATTRS{idVendor}=="1d6b", GROUP="boinc", MODE="0666",SYMLINK+="nukular-dev"
- the boinc geigercounter sofware requires 32bit libraries to run, multilib on archlinux is required for this: http://radioactiveathome.org/boinc/forum_thread.php?id=473&nowrap=true#3082
@makefu
makefu / tinc
Last active April 17, 2019 11:25
tinc install
#!/bin/sh
main(){
#get sudo
if test "${nosudo-false}" != true -a `id -u` != 0; then
echo "we're going sudo..." >&2
exec sudo -E "$0" "$@"
exit 23 # go to hell
fi
set -euf