Skip to content

Instantly share code, notes, and snippets.

@kinoc
kinoc / jserv.py
Last active August 9, 2023 03:05
Simplest FastAPI endpoint for EleutherAI GPT-J-6B
# Near Simplest Language model API, with room to expand!
# runs GPT-J-6B on 3090 and TITAN and servers it using FastAPI
# change "seq" (which is the context size) to adjust footprint
#
# seq vram usage
# 512 14.7G
# 900 15.3G
# uses FastAPI, so install that
# https://fastapi.tiangolo.com/tutorial/
@billatq
billatq / royal-print.py
Created June 7, 2020 22:03
Super simple driver for Royal LetterMaster
import sys
import usb.core
import usb.util
import time
def initialize():
# find our device
dev = usb.core.find(idVendor=0x1a86, idProduct=0x7584)
@karbassi
karbassi / README.md
Last active March 18, 2025 20:13
Archive all messages in Google Messages web app

Archive all messages in Google Messages web app

This code was something I quickly put together to archive over 5000 text messages in Google Messages. I have no idea if Google frowns on this or not, but it's basically the same as if a human sat there and archived all the messages by hand.

Tested and working as of Monday, November 4, 2019.

How to run

  1. Sign into https://messages.google.com/web/
  2. Open Chrome Developers console by going to View > Developer > JavaScript Console.
  3. Copy and paste the code below into console. It should automatically run.
@stephenhouser
stephenhouser / AXIS-Camera
Last active August 10, 2023 18:04
Controlling AXIS Pan/Tilt/Zoom Web Camera
Pyhton sample code to control an AXIS Pan/Tilt/Zoom web camera.
@Xeroday
Xeroday / Twitch.py
Created September 6, 2013 18:41
A script to fake views on Twitch.tv, http://www.ericzhang.me/faking-views-on-twitch-tv/
import requests
import subprocess
import json
import sys
import threading
import time
from Queue import Queue
numberOfViewers = int(sys.argv[1])
builderThreads = int(sys.argv[2])