Skip to content

Instantly share code, notes, and snippets.

View IAmJSD's full-sized avatar
🏠
Working from home

Astrid IAmJSD

🏠
Working from home
View GitHub Profile
@IAmJSD
IAmJSD / key_bakery_3.0.py
Created October 7, 2018 14:30
The source code for the Rethink version of The Key Bakery. The required environment variables are PASSWORD (If using a Rethink password), TOKEN (for the Discord token), SERVER_ID (the server ID you are using it in) and APPLICATION_CHANNEL_ID (the channel key applications go to). I will not give support for this, I am only open sourcing.
import discord
import os
import logging
import datetime as dt
import random
import asyncio
import re
import rethinkdb as r
# Imports go here.

Keybase proof

I hereby claim:

  • I am jakemakesstuff on github.
  • I am jakemakesstuff (https://keybase.io/jakemakesstuff) on keybase.
  • I have a public key ASAUPDjp4KUH9AvRArvUcjk8tmqrdAEw9_0CCcJbe5Tpiwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jakemakesstuff on github.
  • I am jakemakesstuff (https://keybase.io/jakemakesstuff) on keybase.
  • I have a public key ASAUPDjp4KUH9AvRArvUcjk8tmqrdAEw9_0CCcJbe5Tpiwo

To claim this, I am signing this object:

@IAmJSD
IAmJSD / firestore_secrets.py
Created December 24, 2018 14:51
A Python secrets system using Google Firestore. Removes the need for configs that expose sensitive data or even environment variables.
from google.cloud import firestore
# Imports go here.
db = firestore.Client()
# Defines the Firestore client.
class SecretsManager:
"""Handles secrets from the Firestore DB."""
def __getitem__(self, key):
image: "docker:latest"
services:
- "docker:dind"
stages:
- build
- deploy
variables:
DOCKER_DRIVER: overlay

MagicCap 2.0 Changelogs

@MattIPv4 and I worked many hours to get this release out. Make sure to thank Matt for all of the mainly visual changes!

New Functionality

  • Added clipboard capture. This allows you to upload what is in your clipboard.
  • Added the ability to use emojis in filenames.
  • Added new editors to the region selector:
    • Pixelate
  • Rectangle

Keybase proof

I hereby claim:

  • I am jakemakesstuff on github.
  • I am jakemakesstuff (https://keybase.io/jakemakesstuff) on keybase.
  • I have a public key ASBVi2gjHaWleF4bVX1bKRl4co23NFL6Bt216Bs5F_6kaAo

To claim this, I am signing this object:

This file has been truncated, but you can view the full file.
From b067cd75e453b1d70f648a0201b0261e36162526 Mon Sep 17 00:00:00 2001
From: Jake Gealer <jake@gealer.email>
Date: Tue, 16 Jun 2020 14:49:55 +0100
Subject: [PATCH] Remove all master/slave terminology from Git
---
Documentation/Makefile | 2 +-
Documentation/MyFirstContribution.txt | 32 +-
Documentation/MyFirstObjectWalk.txt | 4 +-
Documentation/SubmittingPatches | 24 +-
#include <nan.h>
#include <node.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
using namespace v8;
void GetScreenshot(const Nan::FunctionCallbackInfo<Value>& args) {
// Get both expected arguments as integers.
Isolate* isolate = args.GetIsolate();
{
"targets": [
{
"target_name": "x11",
"sources": [
"x11_screenshotter.cc"
],
"cflags_cc": ["-O3"],
"libraries": ["-lX11"],
"include_dirs" : [