Skip to content

Instantly share code, notes, and snippets.

View nzbr's full-sized avatar
💾

nzbr

💾
View GitHub Profile
@nzbr
nzbr / pass-export.py
Created July 21, 2019 19:34
Creates a CSV export from a pass password-store (can be imported as a LastPass export, for example in Bitwarden)
#!/usr/bin/python3
import os
from sys import stdout, stderr
from subprocess import Popen, PIPE, DEVNULL
def eprint(text: str) -> None:
stderr.write(text+"\n")
stderr.flush()
@nzbr
nzbr / pymake.mk
Last active May 15, 2019 00:34
Makefile that creates precompiled python bytecode (.pyc) and bundles it in an exectable zipfile
## Options
PY=python3
ZIP=zip -0 -q
PYLINT=pylint -E
PYC=$(PY) -c "from py_compile import compile; from sys import argv; compile(argv[1], cfile=argv[1]+'c', doraise=True, optimize=2)"
PREFIX=/usr/bin
##Default uses direcory name, replace if neccessary
NAME=$(shell basename $$PWD)
@nzbr
nzbr / flatpak-update.hook
Created January 21, 2019 14:51
Pacman Hook for Installing Flatpak Updates on Package Upgrades
[Trigger]
Operation = Upgrade
Type = Package
Target = *
[Action]
Depends = flatpak
When = PostTransaction
Exec = /usr/bin/flatpak update -y

Keybase proof

I hereby claim:

  • I am nzbr on github.
  • I am nzbr (https://keybase.io/nzbr) on keybase.
  • I have a public key ASBZNwbiiv-Mh-abrQESwxiWRqq7RZW__FvMk0cnBgqD0Ao

To claim this, I am signing this object: