Skip to content

Instantly share code, notes, and snippets.

@QuantBits
QuantBits / script.js
Created February 8, 2019 17:55
BitMex USD Converter - For TemperMonkey
// ==UserScript==
// @name BitMex USD Converter
// @namespace https://bitmex.com/
// @version 0.11
// @description Get some sanity into your gambling.
// @author koinkraft
// @grant none
// @include https://bitmex.com/*
// @include https://www.bitmex.com/*
// @require https://code.jquery.com/jquery-2.1.4.min.js
@netravnen
netravnen / move-browser-cache-to-ramdisk.bat
Last active October 21, 2019 22:33
Move Firefox/Chrome/Opera cache folder a ramdisk location (R:)
:: TITLE: move-browser-cache-to-ramdisk.bat
:: BY: GH:netravnen
:: NOTE: Requires administrator rights to run under Windows
:: VERSION: v1.0.0-20180728
:: Google Chrome
IF EXIST "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Cache" (
rmdir /S /Q "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Cache"
mklink /D "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Cache" R:\cache
ECHO Google Chrome cache moved
@lostmsu
lostmsu / LifeSpan.cs
Last active April 10, 2024 06:54
Control LifeSpan treadmill from C# (treadmill drops connection if not kept alive)
// License: MIT
using System;
using System.Collections.Concurrent;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
public class LifeSpanTreadmill: IDisposable
{
@geertj
geertj / txlog.py
Last active May 15, 2021 03:36
Ethereum tax calculator
#!/usr/bin/env python
#
# Store Ethereum transactions to a certain address in a CSV file, with
# associated pricing data. Can be used to understand mining revenue.
import sys
import csv
import time
import json
import bisect