Skip to content

Instantly share code, notes, and snippets.


Jackson Palmer ummjackson

View GitHub Profile
ummjackson /
Created Jul 13, 2022
FFmpeg Audio Spectrum
# Make sure you have ffmpeg installed (eg. brew install ffmpeg)
ffmpeg -i "your-audio-file.wav" -filter_complex "asplit[main][tmp]; [tmp]aformat=channel_layouts=mono,aresample=32000 [cut]; [cut]showfreqs=mode=bar:ascale=sqrt:win_size=2048:s=1920x240:colors=White[out]; [out]split[top][bottom]; [bottom]vflip[bottom]; [top][bottom]vstack=inputs=2[combined]" -map "[combined]" -pix_fmt yuv420p -map "[main]" -preset ultrafast output.mp4
ummjackson /
Last active Nov 24, 2022
XRP Away™️ - automatically block XRP fanatics sliding into your Twitter mentions
# Requirement: pip install tweepy
import tweepy
# Credentials go here (generate at:
auth = tweepy.OAuthHandler('consumer_key', 'consumer_secret')
auth.set_access_token('access_token', 'access_token_secret')
# Connect to Twitter
api = tweepy.API(auth)
import time
import pandas as pd
from selenium import webdriver
# These are the variables which must be calculated by the script.
consensus_distribution = None
wealth_distribution = None
client_codebases = None
public_nodes_source = None
ummjackson / get_friends.js
Created Jun 11, 2018
grab facebook friend URLs
View get_friends.js
var friends = document.querySelectorAll('._698 > div > a');
urls = [];
for (var i = 0, len = friends.length; i < len; i++) {
# Requirements: pip install tweepy fuzzywuzzy python-Levenshtein
import tweepy
import re
from fuzzywuzzy import fuzz
# Credentials go here (generate at:
auth = tweepy.OAuthHandler('consumer_key', 'consumer_secret')
auth.set_access_token('access_token', 'access_token_secret')
# Connect to Twitter
View phishbert-rocketchat.js
// Phishbert for Rocket.Chat (set this up as an Outgoing Webhook script)
class Script {
prepare_outgoing_request({ request }) {
// Detect phishing attempts and alert channel
let pattern = new RegExp('(0x)?[0-9a-f]{40}|(', 'gi');
if (pattern.test( {
return {
message: {
text: [
View data.json
"seriesone": [
"seriestwo": [
ummjackson /
Created Apr 7, 2017 data backup, prior to closure of instance.

🔔 backup

> this is a backup of tables containing non-private/sensitive data from, prior to the closure of the instance.

ummjackson / entities.js
Created Feb 14, 2017
nunjucks filter to add entities
View entities.js
env.addFilter('addEntities', function(body, entities) {
if (!(entities)) {
return body;
// This is very naive, should find a better way to parse this
var index_map = {}
$.each(entities.urls, function(i,entry) {
index_map[entry.indices[0]] = [entry.indices[1], function(text) {return "<a href='"+escapeHTML(entry.url)+"'>"+escapeHTML(text)+"</a>"}]
ummjackson /
Created Nov 8, 2016
Brainstorming about what Twitter could be... 🤔

This is a WIP


  • Implement core feature set of Twitter (users, statuses, followers/friends, lists, blocking)
  • Do not implement direct messaging initially (there are already any IM clients out there)
  • Implement 1:1 replica of Twitter v1.1 API
    • Very generous limits up-front (only what's needed to avoid denial of service / spam attacks)
    • Clients must register a Client ID prior to making requests (same as Twitter)