Skip to content

Instantly share code, notes, and snippets.

View chrisgloom's full-sized avatar

tuesgloomsday chrisgloom

  • Chicago, Illinois
View GitHub Profile
@Everlag
Everlag / primitive-worker.sh
Last active January 20, 2020 13:32
Loop through all in srcframes and run primitive over it, details in script.
# Loop through all in srcframes and run primitive over it
# Primitive: https://github.com/fogleman/primitive
#
# Dependencies: primitive, ffmpeg, and inkscape in path
#
# This supports job resumption with 'resume' and will keep track
# of frames which have been done.
#
# To clear for another set of srcframes, remove contents of
# vecframes and rastframes
@MatMercer
MatMercer / wsl-vpn-fix.sh
Last active August 23, 2022 06:24
Fix WSL 2 DNS resolution when connected to Cisco AnyConnect VPN
#!/bin/bash
#--------------------------------------------------------------------------------#
# #
# Fix WSL DNS resolution with Cisco AnyConnect #
# #
# ! Don't forget to set this configuration in /etc/wsl.conf: #
# [network] #
# generateResolvConf = false #
# #
# Based on: #
@jinschoi
jinschoi / create_sub.py
Last active May 18, 2024 13:42
Python script to generate Flipper RAW .sub files from OOK bitstreams
#!/usr/bin/env python3
from typing import Iterable, Union, Any
# freq: frequency in Hz
# zerolen: length of space bit in μs
# onelen: length of mark bit in μs
# repeats: number of times to repeat sequence
# pause: time to wait in μs between sequences
# bits: string of ones and zeros to represent sequence
@jinschoi
jinschoi / plot_raw_sub.py
Last active October 6, 2022 01:44
Plot Flipper RAW .sub captures
import plotly.express as px
import pandas as pd
import re
filename = 'Gar.sub'
points = [(0, 0)]
t = 0
with open(filename, 'r') as f:
for line in f: