Skip to content

Instantly share code, notes, and snippets.

did:3:bafyreigg5w6eg35jbkildxv2bhfq27vv7kgu57bdgqv6wn3if77heigwnq
@georgyo
georgyo / run.py
Created June 3, 2021 18:08
hackerspaces.org matrix channel tester
#!/usr/bin/env python3
import codecs
import csv
import json
import logging
from urllib.parse import quote, urlencode
from urllib.request import urlopen
from urllib.error import HTTPError
% nix-build default.nix -A ntpsec :(
/nix/store/in8dvdi5a8w6cybm3vxw4ys27kaz93iq-ntpsec-1.1.4
% ./result/bin/ntpq
ntpq: can't find Python NTP library -- check PYTHONPATH.
No module named ntp.control
% head -n 1 ./result/bin/ntpq :(
#!/nix/store/k4gf6ajykc2i8zp2zk5x0h7mf4r08cv6-python-2.7.16/bin/python
@georgyo
georgyo / go-ipfs-git.patch
Created April 19, 2019 01:01
go-ipfs-git changes
diff --git a/PKGBUILD b/PKGBUILD
index 344b4da..c93194c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,13 +5,13 @@
_pkgname=go-ipfs
pkgname=$_pkgname-git
-pkgver=0.4.9.r4.g864bf47a5
+pkgver=0.4.21dev.r43.g61a0d1a8e
@georgyo
georgyo / openpgp.txt
Created March 11, 2019 03:27
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d0cf440aa703e0f973cba07882bb70d541ae2db4]
networkctl status enp2s0
● 2: enp2s0
Link File: /usr/lib/systemd/network/99-default.link
Network File: /etc/systemd/network/30-enp2s0.network
Type: ether
State: routable (configured)
Path: pci-0000:02:00.0
Driver: e1000e
Vendor: Intel Corporation
Model: 82574L Gigabit Network Connection
shammas@shamm ~/tmp/helloworld % cat hw.go
package main
import "fmt"
func main () {
fmt.Println("Hello World")
}
shammas@shamm ~/tmp/helloworld % go build -o goout -ldflags "-s" hw.go
shammas@shamm ~/tmp/helloworld % ls -lhva goout
@georgyo
georgyo / openpgp.txt
Created July 15, 2016 23:26
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d0cf440aa703e0f973cba07882bb70d541ae2db4]
@georgyo
georgyo / openpgp.txt
Created May 19, 2016 12:52
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d0cf440aa703e0f973cba07882bb70d541ae2db4]