Skip to content

Instantly share code, notes, and snippets.

Quint Guvernator qguv

Block or report user

Report or block qguv

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
View THIN
Tm8sIG5vLCBubywgdGhhdCB3b3VsZCBiZSB0b28gZWFzeSwgaGF2ZSB5b3UgcmVhZCB0aGUgbm90ZSBpbiByb29tIDIwMz8KCgoK TSTCTKCTL1KSOTBBJEzCRUCULzBEU0NDJFdQVKCJLjBBUiTVSWVgKF9UJVwkJEBWVSqZL1VgN0WSJTBMTEMhT05EXSTQTcVgN0iPAFNHWUpFIWiFLGAyUUMvIWGOJDBRU1UCSEdFLUCJAFFFJFFQIWeMIVQyXU9NJEFCTMVgNFhBVyTHQNJuAFkyRU0yT0VIWCTJT1FVQMeFUllGJFJJRKCNIWNMSVAhQ0zCTMKFMj4gOV9VAF5FJVQyWE8yWENNTUCSITBMTEMLTcGNJTBHSiTOWKCBJGZXVlFCUdlgIV5EAFhXJFvKTWxgK05QVqCXKFFMJFJQIWSPDhpBJEzCVcVgKFlWSENPIXSIJTBGRU1XJEdPIXSIJTBGU05PJ1KBLRoCWU5YU1JMWU5TWENNWKCSITBARVEhQcWFLjBNUkJGUaCBAGNISUpNIWGOJDBVRU4CUk9MJEzGTXBgNWMyWU5MTUohVWiFAGNISUpNIWmTAFJKU0tXUiTDWKCUN08hUcWBLFxRDkzQVUCTNV1NJWJLMiTUTqCXJTBGSUNFIWFgLFlMWEpGIW1QUcVgMFFMTUNPQ0MvCyqCNWQyV09PLj4uDjBLU09OAFkyW0lEUCTDRKCGMlVXMi4mJEXPRUCZL1VgNF9PAR=
@qguv
qguv / find_cert.patch
Created Feb 14, 2020
[Prosody] core/certmanager.lua: accept letsencrypt directories even if its name doesn't match the domain
View find_cert.patch
diff --git a/core/certmanager.lua b/core/certmanager.lua
index 5282a6f507b4..6d58a9a61eb7 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -62,8 +62,8 @@ local global_ssl_config = configmanager.get("*", "ssl");
local global_certificates = configmanager.get("*", "certificates") or "certs";
-local crt_try = { "", "/%s.crt", "/%s/fullchain.pem", "/%s.pem", };
-local key_try = { "", "/%s.key", "/%s/privkey.pem", "/%s.pem", };
@qguv
qguv / BashNP-Guide.txt
Created Dec 2, 2019
shudder's guide to network programming in bash (Mirror of broken http://shudder.daemonette.org/source/BashNP-Guide.txt)
View BashNP-Guide.txt
shudder's guide to network programming in bash
==============================================
1. What's this?
I'm kind of a maniac when it's about doing nifty things with
tools not originally designed for that.that's why I wrote the "guide".
maybe there are some other resources that document this (not
counting the bash manual page) but I wanted to express my own
impressions on the possibilities of bash.
@qguv
qguv / zucchini_bread.md
Last active Dec 14, 2019
Zucchini bread recipe
View zucchini_bread.md

Zucchini Bread

Prep: 20 minutes. Bake: around 1 hour.

Ingredients

  • 380g sugar (2 cups ~ 470mL)
  • 300g flour (3 cups ~ 710mL)
  • 5g salt (teaspoon)
  • 3-8g cinnamon (1-3 teaspoons)
View bloemenbad.ino
/*
* _ _
* | |__ | | ___ ___ _ __ ___ ___ _ __
* | '_ \| |/ _ \ / _ \ '_ ` _ \ / _ \ '_ \
* | |_) | | (_) | __/ | | | | | __/ | | |
* |_.__/|_|\___/ \___|_| |_| |_|\___|_| |_|
* ____ _ ____
* | __ ) / \ | _ \
* | _ \ / _ \ | | | |
* | |_) / ___ \| |_| |
@qguv
qguv / gist:1229fc9ddb801114a3cdc47861f46833
Last active Jan 31, 2019
sonoff-tasmota periodic short relay
View gist:1229fc9ddb801114a3cdc47861f46833
poweronstate 0
rule1
on system#boot do
ruletimer1 4
endon
on rules#timer=1 do backlog
ruletimer2 1;
power1 1;
endon
@qguv
qguv / serverless-domain-manager-iam-policy.json
Created Dec 19, 2018
Minimum credential set for serverless-domain-manager plugin for the Serverless framework
View serverless-domain-manager-iam-policy.json
{
"Statement": [
{
"Action": [
"acm:ListCertificates",
"cloudfront:UpdateDistribution",
"route53:ChangeResourceRecordSets",
"route53:GetHostedZone",
"route53:ListHostedZones",
"route53:ListResourceRecordSets"
@qguv
qguv / Arkham Successes.ipynb
Created Dec 17, 2018
Calculate chance of success in an Arkham attack roll using brute force
View Arkham Successes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qguv
qguv / Steam.py
Last active Jan 29, 2020
Start Steam, forcing offline mode without a prompt. Save in your Steam folder, "C:\Program Files (x86)\Steam" on x86_64 Windows.
View Steam.py
import os
USERFILE = "config/loginusers.vdf"
OFFLINE_KEYS = ["WantsOfflineMode", "SkipOfflineModeWarning"]
with open(USERFILE, "r") as f:
lines = f.readlines()
with open(USERFILE, "w") as f:
nest = 0
View asm_clobber_x86.c
/* Input a number and watch it get clobbered by another! */
#include <stdio.h>
#include <stdlib.h>
#define answer(__op1) __asm__ ( \
"movl $42, %0\n\t" \
: "=r" (__op1) \
: "0" (__op1) \
);
You can’t perform that action at this time.