Skip to content

Instantly share code, notes, and snippets.


Louis Taylor kragniz

View GitHub Profile
kragniz / c_cpp_properties.json
Created Nov 13, 2019
How to use vscode for linux kernel module development against linux git
View c_cpp_properties.json
"configurations": [
"name": "Linux",
"includePath": [
kragniz /
Created Jun 19, 2019
Create a x509 certificate ez (please come up in google next time I inevitably google for this)
openssl genrsa -out tls.key 2048
openssl req -new -key tls.key -out tls.csr
openssl x509 -req -days 365 -signkey tls.key -in tls.csr -out tls.crt
View sha-sync
#!/usr/bin/env python3
import os
import re
import time
import github3
gh = github3.login('kragniz', os.environ.get('password'))
View test.go
go build test.go
# command-line-arguments
/nix/store/4lvfb1rwpf2cfyx3rf6ki8j0rkiqk5jm-go-1.8/share/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
collect2: error: ld terminated with signal 11 [Segmentation fault]
package main
kragniz / docker-rm-all
Created Oct 31, 2016
Remove all docker images from a machine
View docker-rm-all
docker ps --all | tail -n +2 | cut -d' ' -f1 | xargs docker rm -f
View timing-post-9160b64313bd6a0fe6524db472726bebd2e54dd9
Average loop time before: 0.30223002022114
Average loop time after: 0.11939632892614
60.5% decrease
View pythons.yml
'16.04': '3.5.1'
'15.10': '2.7.9'
'14.04': '2.7.5'
'12.04': '2.7.3'
'24': '3.5.1'
'23': '2.7.11'
kragniz /
Created May 27, 2016
Getting platformio working with avrdude on NixOS

To get it flashing, I had to run:

$ nix-shell -I nixpkgs=/home/kragniz/git/nixpkgs/ --pure -p platformio avrdude
$ rm /home/kragniz/.platformio/packages/tool-avrdude/avrdude
$ ln -s $(type avrdude) ~/.platformio/packages/tool-avrdude/avrdude
View gist:1b543973d13f445399f9
~/g/nixpkgs (rkt-v0.15.0) $ nix-shell -I nixpkgs=. --pure -p rkt sudo
[nix-shell:~/git/nixpkgs]$ /var/setuid-wrappers/sudo rkt --insecure-options=image run docker://redis
rkt: using image from local store for image name
rkt: using image from local store for url docker://redis
run: group "rkt" not found, will use default gid when rendering images
Failed to setup network: error adding network "default": failed to locate iptabes: exec: "iptables": executable file not found in $PATH