Skip to content

Instantly share code, notes, and snippets.

Nathan Fish lordcirth

Block or report user

Report or block lordcirth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
lordcirth / error
Created Nov 17, 2019
building NixOS image
View error
[bob@nixos:~]$ nix-build laptop.nix -A --show-trace
error: while evaluating anonymous function at /home/bob/nixpkgs/nixos/lib/make-disk-image.nix:1:1, called from /home/bob/laptop.nix:5:32:
value is a function while a set was expected
lordcirth / Usage
Last active Sep 20, 2019
gnuplot script for OSD utilization
View Usage
ceph osd df class hdd -f json | jq '.nodes[].utilization' > ~/util
gnuplot util.plot < util
feh histogram.png
View sls
#Auth settings
# TODO pillar
- name: '/etc/postgresql/12/test3/pg_hba.conf'
- source: 'salt://{{ tpldir }}/pg_hba.conf.jinja'
- mode: 0640
- onlyif:
- 'stat /etc/postgresql/12/test3/'
- template: jinja
lordcirth / jinja_density
Created Jul 22, 2019
Salt jinja script
View jinja_density
grep -crIHT '{[{%]' --exclude-dir ".git" $DIR | sort -n -t: -k2
View vlan
auto ens5f0.160
iface ens5f0.160 inet manual
vlan_raw_device ens5f0
mtu 9000
auto br160
iface br160 inet manual
bridge_ports ens5f0.160
bridge_maxwait 0
bridge_stp off
View Reponse headers
HTTP/1.1 201 Created
Content-Length: 376
Content-Encoding: gzip
Vary: Accept-Encoding
Server: CherryPy/8.9.1
Date: Tue, 28 May 2019 15:42:49 GMT
Content-Type: application/json
Authorization: Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJjZXBoLWRhc2hib2FyZCIsImlhdCI6MTU1OTA1ODE2OSwidXNlcm5hbWUiOiJjc2NmLWFkbSIsImp0aSI6IjlmZmZmMGI1LWZmZmMtNGE2NC1hYmMzLTQ4NDc4YzlmZGY4OSIsImV4cCI6MTU1OTA4Njk2OX0.W2ICRl9Qbg7Vmp8keL03RSWV2yjTvXcC0k3Lmk3Ghx4
View 01-netplan.conf
version: 2
renderer: networkd
dhcp4: true
View lxc.sls
# Pillar data to be applied to all / most LXC containers
# 60GB
disk_warn_limit: '60000000' # Size in bytes
mgmt_iface: 'eth0'
lordcirth / ipfs.service
Last active Oct 10, 2019
IPFS systemd service with resource limits
View ipfs.service
Description=IPFS daemon
ExecStart=/home/ipfs/.nix-profile/bin/ipfs daemon
# OOM-killer
View Example directory structure
/data - your blog, as a tar.gz encrypted with an AES key, k
/keys/0 - key k encrypted to friend 0
/keys/1 - key k encrypted to friend 1
You can’t perform that action at this time.