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 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 Dec 4, 2018
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) \
);
View unicode_joke.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@qguv
qguv / goban.txt
Created Mar 7, 2018
CLI goban for weiqi/baduk/igo
View goban.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
a ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
b ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
c ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
d ├───┼───┼──═╬═──┼───┼───┼───┼───┼──═╬═──┼───┼───┼───┼───┼──═╬═──┼───┼───┤
│ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
e ├───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┼───┤
@qguv
qguv / formlayout.py
Created Jan 16, 2018
Pierre Raybaut's "formlayout" Python module, with some improvements
View formlayout.py
# -*- coding: utf-8 -*-
"""
formlayout
==========
Module creating Qt form dialogs/layouts to edit various type of parameters
formlayout License Agreement (MIT License)
------------------------------------------
View real_fake_data.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.