Skip to content

Instantly share code, notes, and snippets.

View mashiox's full-sized avatar
🕵️‍♂️
Building better questions

Matthew Walther mashiox

🕵️‍♂️
Building better questions
View GitHub Profile
@mashiox
mashiox / fix-metrc-api-documentation.js
Created April 12, 2022 21:18
#greasemonkey #tampermonkey #cannabis #openthc #metrc
// ==UserScript==
// @name Fix Metrc API Documentation Pages
// @namespace https://openthc.dev
// @version 0.1
// @description Fix Metrc API Documentation Pages
// @author Matthew Walther
// @match https://api-*.metrc.com/documentation*
// @icon https://www.google.com/s2/favicons?sz=64&domain=metrc.com
// @grant none
// ==/UserScript==
#!/bin/bash
# FROM https://bitbucket.org/BitPusher16/dotfiles/raw/49a01d929dcaebcca68bbb1859b4ac1aea93b073/refs/git/git_examples.sh
##########
# contents
##########
# contents
# notes
# script setup
Flower biotrack buds-net bulk g
Capsule biotrack capsule each mg
Clone biotrack clone bulk ea
Food Grade Solvent Extract biotrack extract bulk g
Extract for Inhalation biotrack extract-package each g
Flower Lot biotrack flower-lot bulk g
Wet Flower biotrack flower-wet bulk g
Hash biotrack hash bulk g
Bubble Hash biotrack hash-bubble bulk g
CO2 Hash Oil biotrack hash-oil-co2 bulk g
@mashiox
mashiox / Dockerfile
Created September 5, 2019 16:36
OpenTHC Menu Docker reference
FROM openthc/openthc-base:latest
ENV APP_NAME=OpenTHC
ENV APP_ROOT=/opt/menu.openthc.com
ENV APACHE_DOCUMENT_ROOT=${APP_ROOT}/webroot
ENV APACHE_SERVER_NAME=localhost
ENV APACHE_PORT=8000
# Problematic at build time...
ENV APP_SITE=http://${APACHE_SERVER_NAME}:${APACHE_PORT}
@mashiox
mashiox / openthc.c
Created May 21, 2019 20:07
OpenTHC Favicon in standard C
/* GIMP RGBA C-Source image dump (icon.c) */
static const struct {
unsigned int width;
unsigned int height;
unsigned int bytes_per_pixel; /* 2:RGB16, 3:RGB, 4:RGBA */
unsigned char pixel_data[48 * 48 * 4 + 1];
} gimp_image = {
48, 48, 4,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0""65E\1""65E$65E\20365E\21565E+6"
@mashiox
mashiox / cve-2018-10933.py
Created October 18, 2018 05:06 — forked from digital-shokunin/cve-2018-10933.py
CVE-2018-10933
#CVE-2018-10933 PoC modified from Minh Tuan Luong <not.soledad () gmail com> example PoC
import paramiko
import socket
import sys
nbytes = 4096
if len(sys.argv) < 2:
print("Usage: " + sys.argv[0] + " <hostname> <port (optional: default 2222}>")
exit(1)
Feature: EXamples
@work
Scenario: This is my example title
Given I am a "moderator"
When I load the page
Then I see "Account Login"
Given I am a "panelist"
When I load the page
@mashiox
mashiox / safe_base.md
Created May 14, 2018 21:05
Safe ways to do things in bash
@mashiox
mashiox / master_list.md
Created May 11, 2018 18:37
Contracting Master List
<?php
/**
* Example usage:
*
* // Initalize the client
* $imap = DIOIMAP::init();
*
* // Initalize the email client without a postfix and search for the latest unread email
* $emailMessage = DIOIMAP::init()->findEmail();
*