Skip to content

Instantly share code, notes, and snippets.

@ginmaster
ginmaster / githubpull.md
Created March 1, 2022 11:47 — forked from Jabarabo/githubpull.md
Gist of a stolen gist
@ginmaster
ginmaster / nextcloud-pgsql-redis-traefikv2-docker-compose.yml
Created February 28, 2022 16:42 — forked from ismailyenigul/nextcloud-pgsql-redis-traefikv2-docker-compose.yml
Docker-compose file for nextcloud with pgsql,redis and traefik deployment
# docker network create nextcloud
NOTES:
1. certificatesresolvers.myresolver.acme.email=myemail@gmail.com
2. TRUSTED_PROXIES values based on your 'nexcloud network'
3. remove traefik.http.middlewares.nextcloud.headers.contentSecurityPolicy and
traefik.http.middlewares.nextcloud.headers.customFrameOptionsValue if you don't want to allow iframe your domain
3
# cat docker-compose.yml
@ginmaster
ginmaster / gpg_fix.txt
Created January 7, 2022 00:58 — forked from cezaraugusto/gpg_fix.txt
fixing `gpg failed to sign data` error on macOS
For troubleshooting, two things to first try:
run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg
run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working
If that all looks all right, one next thing to try:
run `brew install pinentry` to ensure you have a good tool installed for passphrase entry
If after that install and you re-try git commit and still get the "failed to sign the data" error:
run `gpgconf --kill gpg-agent` to kill any running agent that might be hung
@ginmaster
ginmaster / emlToMbox.py
Created January 2, 2022 22:59 — forked from kadin2048/emlToMbox.py
Combine a directory of .eml files into a single Unix "mbox" file.
#!/usr/bin/env python3
""" Converts a directory full of .eml files to a single Unix "mbox" file.
This is similar to http://www.cosmicsoft.net/emlxconvert.html
Accepts as input either an individual .eml file or a directory containing one
or more .eml files.
Usage:
$ ./emlToMbox.py inputdir/ output.mbox
@ginmaster
ginmaster / viznodelist.lua
Created October 30, 2021 21:02 — forked from pgundlach/viznodelist.lua
LuaTeX nodelist visualization
--
-- viznodelist.lua
-- speedata publisher
--
-- Written 2010-2020 by Patrick Gundlach.
-- This file is released in the spirit of the well known MIT license
-- (see https://opensource.org/licenses/MIT for more information)
--
-- visualizes nodelists using graphviz