Skip to content

Instantly share code, notes, and snippets.

@ross
ross / gen-zones.py
Last active April 26, 2024 21:42
octodns gen-zones
#!/usr/bin/env python
from os import mkdir
from os.path import exists
from sys import argv, exit
from uuid import uuid4
from yaml import dump
try:
#!/usr/bin/env python3
from os.path import exists
from sys import argv, exit
import igraph as ig
def adjacent4(w1, w2):
return (
@ross
ross / etrade-to-txf
Last active February 15, 2023 17:55
#!/usr/bin/env python3
# https://github.com/simonmichael/hledger/blob/master/examples/TXF-spec-v042.org
# https://github.com/andreasg123/stock-gain-tax-import/blob/main/create-txf-2018.py
from collections import defaultdict
from datetime import date
from io import StringIO
from pprint import pprint
from sys import argv
@ross
ross / slack-css-override.css
Last active November 8, 2017 17:48 — forked from shlomi-noach/slack-css-override.css
Slack CSS override
/*
// Override Slack CSS
// Tested with Slack 2.8.2 Direct Download
// Instructions:
// - Append the following javascript code to:
// - /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js (MacOS/X)
// - /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js (Debian/Ubuntu)
@ross
ross / server.py
Last active March 31, 2017 14:22
#!/usr/bin/env python
from __future__ import absolute_import, division, print_function, \
unicode_literals
from concurrent.futures import ThreadPoolExecutor
from ddtrace import tracer
from ddtrace.contrib.tornado import trace_app
from random import uniform
from time import sleep