Skip to content

Instantly share code, notes, and snippets.

View bmjjr's full-sized avatar
💭
Working on https://www.bomquote.com/

Bob Jordan bmjjr

💭
Working on https://www.bomquote.com/
View GitHub Profile
### Keybase proof
I hereby claim:
* I am bmjjr on github.
* I am bmjjr (https://keybase.io/bmjjr) on keybase.
* I have a public key ASBc8rlNdvGrooCxI_lxC-u01gob6MDg-qWJIJ-EATom-go
To claim this, I am signing this object:
@bmjjr
bmjjr / sds_scdp.py
Created September 6, 2020 19:54 — forked from mobilinkd/sds_scdp.py
Screendump From Siglent DSO via VXI-11
#!/usr/bin/env python
import argparse
import visa, sys
from pyvisa.constants import StatusCode
from PIL import Image
from cStringIO import StringIO
def screendump(device, filename):
@bmjjr
bmjjr / 2019-https-localhost.md
Created February 6, 2021 01:29 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@bmjjr
bmjjr / main.py
Created December 22, 2021 05:39 — forked from Lauszus/main.py
Siglent SDS2000X plus hack
import hashlib
SCOPEID = '0000000000000000'
Model = 'SDS2000X+'
# Note that 'AWG' should be used for the 'FG' option
# If you have the 100 MHz model, then first upgrade it to 200 MHz, then 350 MHz and finally 500 MHz
bwopt = ('25M', '40M', '50M', '60M', '70M', '100M', '150M', '200M', '250M', '300M', '350M', '500M', '750M', '1000M', 'MAX', 'AWG', 'WIFI', 'MSO', 'FLX', 'CFD', 'I2S', '1553', 'PWA')
hashkey = '5zao9lyua01pp7hjzm3orcq90mds63z6zi5kv7vmv3ih981vlwn06txnjdtas3u2wa8msx61i12ueh14t7kqwsfskg032nhyuy1d9vv2wm925rd18kih9xhkyilobbgy'
//Title: Button Debouncing using a State Machine, Complex Version
//Author: Chris Guichet
//Date: Jan 15, 2018
//
//Description:
// -A State Machine is a useful tool to organize complex code
// -Think of it like the next step beyone "If Else" statements
// -This example code uses a State Machine to handle tac switch debouncing
// -It also has a "Hold" function to enable interaction with long button presses
//
//Title: Button Debouncing using a State Machine
//Author: Chris Guichet
//Date: Jan 15, 2018
//
//Description:
// -A State Machine is a useful tool to organize complex code
// -Think of it like the next step beyone "If Else" statements
// -This example code uses a State Machine to handle tac switch debouncing
// -It also has a "Hold" function to enable interaction with long button presses
// -The tac switch is used to control a buzzer and an LED, it can multitask