Skip to content

Instantly share code, notes, and snippets.

@kitroed
kitroed / ffmpeg.md
Created April 25, 2021 04:47 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@kitroed
kitroed / introrx.md
Created October 30, 2017 20:04 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@kitroed
kitroed / benchmark_api_test_post_cinebench.sh
Last active October 4, 2016 04:57
benchmark_api_test_post
curl -X POST -H "Content-Type: application/json" -u brian:password -d '{"cpu_cb": 115}' "http://localhost:5000/api/v1.0/revisions/6/cinebenchr15results"
curl -X POST -H "Content-Type: application/json" -u ben:password -d '{"cpu_cb": 238,"opengl_fps":45.07}' "http://localhost:5000/api/v1.0/revisions/50/cinebenchr15results"
curl -X POST -H "Content-Type: application/json" -u kit:password -d '{"cpu_cb": 609,"opengl_fps":130.19}' "http://localhost:5000/api/v1.0/revisions/53/cinebenchr15results"
curl -X POST -H "Content-Type: application/json" -u kit:password -d '{"cpu_cb": 613,"opengl_fps":133.04}' "http://localhost:5000/api/v1.0/revisions/54/cinebenchr15results"
curl -X POST -H "Content-Type: application/json" -u kit:password -d '{"cpu_cb": 535,"opengl_fps":118.68}' "http://localhost:5000/api/v1.0/revisions/55/cinebenchr15results"
curl -X POST -H "Content-Type: application/json" -u jerry:password -d '{"cpu_cb": 812,"opengl_fps":149.42}' "http://localhost:5000/api/v1.0/revisions/56/cinebenchr15results"
curl -X PO
# the idea here is to throw together a quick
# SQLite database to store the hash of all
# the files found in a given subdir
import hashlib
import os
import time
import datetime
import socket
from sqlalchemy import create_engine
@kitroed
kitroed / allsets_to_sql.py
Last active July 12, 2018 05:05
Convert mtgjson.com AllSets-x.json dataset into SQL tables using Python SQLAlchemy.
import json
from hashlib import md5
from os import path
from sys import stdout
from datetime import datetime
from dateutil.parser import parse
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, Date, Boolean
from sqlalchemy.orm import sessionmaker, relationship
from sqlalchemy.ext.declarative import declarative_base
@kitroed
kitroed / rightwin_to_app.reg
Created February 25, 2015 18:32
Remap right Windows Key (e0 5c) to Application/Menu Key (e0 5d). [Thanks to http://www.howtogeek.com/howto/windows-vista/disable-caps-lock-key-in-windows-vista/]
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,5d,e0,5c,e0,00,00,00,00
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES;
acrobat africa alaska albert albino album
alcohol alex alpha amadeus amanda amazon
america analog animal antenna antonio apollo
april aroma artist aspirin athlete atlas
banana bandit banjo bikini bingo bonus
camera canada carbon casino catalog cinema
citizen cobra comet compact complex context
credit critic crystal culture david delta
dialog diploma doctor domino dragon drama
<html>
<head>
</head>
<body>
<div>
<h1>Input</h1>
</div>
<div>
<h1>Output</h1>
<textarea type="text" id="outputTextArea" style="width:100%" rows=25></textarea>
@kitroed
kitroed / easy165.py
Created June 10, 2014 03:01
r/dailyprogrammer [6/2/2014] Challenge #165 [Easy] ASCII Game of Life
import os
import time
# global vars
iterations = 0
x = 0
y = 0
grid = []
# function to check life/death
@kitroed
kitroed / easy164-1.rb
Created May 31, 2014 04:28
Challenge #164 [Easy] Assemble this Scheme into Python
puts "Hello World"