Skip to content

Instantly share code, notes, and snippets.

View komidore64's full-sized avatar

Adam Price komidore64

View GitHub Profile
@komidore64
komidore64 / 90-usbtiny.rules
Created April 10, 2020 19:31
udev rule for usbtiny programmer
SUBSYSTEM=="usb", ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", GROUP="plugdev", MODE="0666"
@komidore64
komidore64 / pomo
Last active September 26, 2022 16:48
Quick script implementation of the Pomodoro technique. You can hook these scripts into timers, or use it for ideas with your own implementation.
#!/usr/bin/env python3
import click
import os
RC_FILE = os.path.join(os.environ['HOME'], '.cache', 'pomodoro.rc')
def initialize_rc():
if not os.path.exists(RC_FILE):
write_rc(0)
#!/usr/bin/env python3
from datetime import datetime, timedelta
class BeatTime():
def __init__(self):
# Swatch Internet Time uses the time scale of Biel Meantime (BMT),
# which is equivalent to UTC+1.
bmt_now = datetime.utcnow() + timedelta(hours=1)

capacitor tier list

first tier - japanese

  • Rubycon
  • United Chemi-Con (or Nippon Chemi-Con)
  • Nichicon
  • Sanyo/Suncon
  • Panasonic
  • Hitachi
#!/usr/bin/env bash
# ~/bin/brewget
# chmod +x ~/bin/brewget
wget --recursive --no-parent --reject 'index.html*,*.log,*.src.rpm,*.json' -nH --cut-dirs=5 $@
@komidore64
komidore64 / dl
Last active September 15, 2018 14:19
#!/usr/bin/env bash
#
# ~/bin/dl
# chmod +x ~/bin/dl
#
# USAGE:
# dl 5B.png http://wiki.mizuumi.net/images/f/f9/Cha_5B.png
function download() {
local filename=$1
@komidore64
komidore64 / daifukkatsu.ini
Created August 20, 2018 20:41
how to fix screen tearing on ddp dfk on steam
# <your steam installation>/steamapps/common/DoDonPachi\ Resurrection/Daifukkatsu.ini
[Daifukkatsu]
AspectRatio=1
DispFull=1
DispX=32
DispY=32
DispW=1920
DispH=1080
Angle=0
@komidore64
komidore64 / bartop.md
Last active July 10, 2017 16:44
bartop arcade cabinet