Skip to content

Instantly share code, notes, and snippets.

View simse's full-sized avatar

Simon Sorensen simse

View GitHub Profile
# list of lists, length is not capped
options = [
["Italian", "9-Grain Wheat"], # Bread
["American", "Swiss", "Cheddar"], # Cheese
["Ranch", "Mayo", "BBQ", "Ketchup", "Thousand Island"], # Sauce
["Honey Mustard", "Plain"] # Ham
]
def multiply_list(options, results_input=[]):
# base case
@simse
simse / spare_keys_da_no.ahk
Created January 15, 2020 00:53
Nordic letters on foreign keyboard
#NoEnv
F13::æ
+F13::Æ
F14::ø
+F14::Ø
F15::å
+F15::Å
@simse
simse / index.html
Created September 4, 2019 19:46
Homelab index page
<html>
<head>
<title>fjordvej30.cloud - Search</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
@simse
simse / getClaymoreData.py
Last active February 1, 2018 11:32
This will connect to a Claymore miner and get statistics and automatically do some conversions. Will ignore any secondary coin.
def talkToClaymore(ip, port, password):
#Iniate socket and connect to Claymore
claymore_connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
claymore_connection.connect((ip, port))
#Send request to Claymore
request_data = '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1","psw":"%s"}' % password
claymore_connection.send(request_data.encode('utf-8'))
#Receive Claymore data