Skip to content

Instantly share code, notes, and snippets.

View sadsfae's full-sized avatar
💭
❤️'s you

Will Foster sadsfae

💭
❤️'s you
View GitHub Profile
@sadsfae
sadsfae / quads_report.py
Created August 24, 2022 14:54 — forked from grafuls/quads_report.py
Quads product breakdown
#! /usr/bin/env python
import asyncio
from datetime import date, datetime
from quads.config import conf
from quads.model import Cloud, CloudHistory, Schedule
from quads.tools.jira import Jira
async def main(loop):
@sadsfae
sadsfae / irc.md
Created January 23, 2022 22:27 — forked from xero/irc.md
irc cheat sheet

IRC Reference

Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.

The Basics

  • /join #channel
    • Joins the specified channel.
  • /part #channel
  • Leaves the specified channel.
@sadsfae
sadsfae / servertime.py
Created March 5, 2021 20:38
figure out timezone difference to PST, edit YOUR_DELTA appropriately.
#!/usr/bin/env python3
"""
check the timezone difference to PST
"""
from datetime import datetime, timedelta
YOUR_DELTA = "8"
D = datetime.today() - timedelta(hours=int(YOUR_DELTA), minutes=00)
D.strftime('%H:%M %p')
print(D)
@sadsfae
sadsfae / quads_cprofile_trace_2019-03-15.txt
Created March 15, 2019 20:21
cProfile Python trace of quads-cli
(root@quads) - (20:16) - (~)
-=>>python -m cProfile /opt/quads/bin/quads-cli --full-summary
cloud01: 0 (Initializing cloud)
cloud02: 20 (Real Shift on stack)
cloud03: 0 (Initializing cloud)
cloud04: 0 (Initializing cloud)
cloud05: 0 (Initializing cloud)
cloud06: 0 (Initializing cloud)
cloud07: 0 (Initializing cloud)
cloud08: 0 (Initializing cloud)
@sadsfae
sadsfae / pihole-post-config.sh
Last active December 1, 2018 09:23
Pi-Hole Container Post-Setup
#!/bin/bash
#
# modified from: https://gist.github.com/ksylvan/b818b505cd02c5268af95d9386438571
# After you start your Pi-Hole in a Docker container according
# to this: https://github.com/diginc/docker-pi-hole
#
# https://hobo.house/2018/02/27/block-advertising-with-pi-hole-and-raspberry-pi/
#
# Once this is running, you can visit http://localhost/admin and set the DNS
# settings to CloudFlare's 1.1.1.1 servers.
@sadsfae
sadsfae / thinkfan.conf
Created October 5, 2017 20:12
thinkfan.conf for Lenovo x240
######################################################################
# thinkfan 0.7 example config file
# ================================
#
# ATTENTION: There is only very basic sanity checking on the configuration.
# That means you can set your temperature limits as insane as you like. You
# can do anything stupid, e.g. turn off your fan when your CPU reaches 70°C.
#
# That's why this program is called THINKfan: You gotta think for yourself.
#
# A xterm-256color based TERMINFO that adds the escape sequences for italic.
#
# Install:
#
# tic xterm-256color-italic.terminfo
#
# Usage:
#
# export TERM=xterm-256color-italic
#

Keybase proof

I hereby claim:

  • I am sadsfae on github.
  • I am sadsfae (https://keybase.io/sadsfae) on keybase.
  • I have a public key whose fingerprint is 8D6C 92E5 ED34 7CF8 B642 FCB3 5D31 8709 07BC 7E81

To claim this, I am signing this object: