Skip to content

Instantly share code, notes, and snippets.

View drbothen's full-sized avatar

Joshua Magady drbothen

  • All Your Base Are Belong To Us!
  • It's All About The Pentiums
View GitHub Profile
@ruvnet
ruvnet / React-flow-Python.md
Last active August 22, 2025 14:33
This tutorial demonstrates how to create a basic Python Flask implementation with React Flow.

Building Complex Drag & Drop Visual AI Workflows with React Flow and Python Flask

Created by @rUv

React Flow Showcase Image

This tutorial demonstrates how to create a Python Flask implementation with React Flow to build complex AI workflows, reasoning systems, and comprehension modeling tools.

React Flow is a powerful open-source library for building interactive node-based interfaces in React applications. Its flexibility and extensibility make it an excellent choice for creating sophisticated AI applications.

@drbothen
drbothen / pysyslog.py
Created December 10, 2021 07:57 — forked from marcelom/pysyslog.py
Tiny Python Syslog Server
#!/usr/bin/env python
## Tiny Syslog Server in Python.
##
## This is a tiny syslog server that is able to receive UDP based syslog
## entries on a specified port and save them to a file.
## That's it... it does nothing else...
## There are a few configuration parameters.
LOG_FILE = 'youlogfile.log'
@MCAR43
MCAR43 / script.py
Last active April 27, 2021 03:19
#!/usr/bin/python3
import subprocess
import usb.core
from time import sleep
# - usbhid-dump --entity=all
# to find the opcode the keyboard sends
# run this command then press the button on the keeb, will display the opcode to the screen
KEYBOARD_OPCODE = 88
TEXFILE = "notice.tex"
def main():
@szepeviktor
szepeviktor / Wistia-download-videos.md
Last active November 12, 2025 20:52
Download Wistia videos - Please do not misuse it!

Download Wistia videos

  1. right-click on the playing video, select Copy link
  2. find Wistia video ID in the copied link e.g. wvideo=tra6gsm6rl
    • alternative: look for e.g. hashedId=tra6gsm6rl in the page source
  3. load http://fast.wistia.net/embed/iframe/ + video ID in your browser
  4. look for "type":"original" in the page source and copy the URL from the next line e.g. "url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
  • alternative: look for "type":"hd_mp4_video"
@5y5tem5
5y5tem5 / get-privkeyfrompfx
Created May 7, 2020 16:33
Powershell PFX extract private key in base64/PEM/key format.
# mostly stolen from the follwoing
#https://github.com/Devolutions/WaykNow-ps/blob/master/WaykNow/Private/RSAHelper.ps1
#https://stackoverflow.com/questions/23734792/c-sharp-export-private-public-rsa-key-from-rsacryptoserviceprovider-to-pem-strin
# pass a PFX and get the base64/PEM of the privatekey
param (
[string]$PFXPath = ""
)
function Get-PrivKey(
@icelander
icelander / jira.update.json
Created March 22, 2020 17:17
Example Jira Ticket Update Webhook Payload
{
"timestamp":1536083559131,
"webhookEvent":"jira:issue_updated",
"issue_event_type_name":"issue_generic",
"user":{
"self":"https://paulrothrock.atlassian.net/rest/api/2/user?username=admin",
"name":"admin",
"key":"admin",
"accountId":"557058:c9ebf848-dfac-4c49-9408-dc34bd0e2d85",
"emailAddress":"[email protected]",
@dafthack
dafthack / gist:5f8c36f7468fad991e9e1f6d81ec29d4
Created March 19, 2019 14:38
PowerView One-Liner to Dump Cleartext Passwords From AD User Attributes
$users = Get-NetUser; $props=@(); $users | Get-Member | foreach-object{if($_.Name -notlike "badpassword*"){$props+=$_.Name}}; foreach($user in $users){ foreach($prop in $props){ if($user.$prop -like "*password*" -and $user.$prop -notlike "*dont_expire_password" -and $user.$prop -notlike "*RODC Password*"){Write-Output ($user.samAccountName + "[" + $prop + "]" + " : " + $user.$prop) } } }
# This xorg configuration file will start a dummy X11 server.
# move it to /etc/X11/xorg.conf
# don't forget apt install xserver-xorg-video-dummy;
# based on https://xpra.org/Xdummy.html
Section "ServerFlags"
Option "DontVTSwitch" "true"
Option "AllowMouseOpenFail" "true"
Option "PciForceNone" "true"
Option "AutoEnableDevices" "false"
@drbothen
drbothen / gist:9f9ba9ac1df2b4852e74
Created March 23, 2016 00:42 — forked from scmx/upgrade-install-ruby-2-1-2-ubuntu-12-04.md
Upgrade/Install ruby 2.1.2 #ubuntu #12.04 #14.04
# Reference http://stackoverflow.com/a/18490935/2037928
# Login as root
# Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
# Download appropriate ruby version https://www.ruby-lang.org/en/downloads/
@miek
miek / GSG case
Last active January 8, 2025 14:58
Unofficial case for YARD Stick One and Ubertooth One from Great Scott Gadgets - http://greatscottgadgets.com/