Skip to content

Instantly share code, notes, and snippets.

View blueset's full-sized avatar

Eana Hufwe blueset

View GitHub Profile
@blueset
blueset / README.md
Created May 22, 2023 20:23
Eana’s Windows 11 Dark theme for Fxliang’s Weasel
@blueset
blueset / dictionary.json
Last active January 6, 2023 07:58
Word Puzzle Mojipittan Encore (Kotoba no Pazuru Mojipittan Ankōru) dictionary data
This file has been truncated, but you can view the full file.
[
{
"reading": "ああ",
"notation": "",
"meaning": "あのように。あんな。"
},
{
"reading": "ああいう",
"notation": "",
"meaning": "あのような。あんな。"
@blueset
blueset / massdrop-ctrl-massdrop_ctrl_layout.json
Created August 1, 2022 17:00
QMK Configuration for dual Colemak/QWERTY, macOS/Windows layout
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "massdrop/ctrl",
"keymap": "massdrop_ctrl_layout_mine",
"layout": "LAYOUT",
"layers": [
[
"KC_ESC",
@blueset
blueset / jsonparser.py
Last active April 17, 2022 04:48
A rough JSON parser in Python
import re
from typing import Any, Tuple, Union
"""A very rough JSON parser.
Implementing the standard outlined in https://www.json.org/json-en.html
Number parsing is handled by Python.
Usage:
>>> data, _ = parse_json('{"key": ["value", -1e20, true, false, null]}')
>>> assert data == {"key": ["value", -1e20, True, False, None]}
#%%
key = open("/Users/blueset/Downloads/key.txt", "r").read()
idx = key.find("3jX8lFiNQ7JHQBVuXAEQXIajamj1EDqa9n34eHZ7y0XbfuxPt7pMj")
key = key[idx - 143:]
# key = key[idx - 200:]
#%%
def vba_decode(sequence, offset, key):
# Input a list and an integer
# key = "XAEQXIajamj1EDqa9n34eHZ7y0XbfuxPt7pMj3jX8lFiNQ7JHQBVu"
import subprocess
import requests
# MAC address of device running this script
self_mac = "00:11:22:33:44:55"
# MAC address of devices to check
to_monitor = {"66:77:88:99:aa:bb", "cc:dd:ee:ff:00:11"}
# MAC address of device which must be in the LAN for notifications to be sent
@blueset
blueset / README.md
Last active May 26, 2021 20:00
Plltxe: Sync Tweets (and Toots) to a Telegram Channel Using Account Activity API (and WebSocket)
@startuml
skinparam monochrome true
skinparam backgroundColor #fefefe
skinparam sequenceReferenceAlign center
skinparam sequenceMessageAlign center
actor User
== Send message ==
@blueset
blueset / Material Amber.palette
Created January 23, 2020 06:14
Material Color palettes for Sip (2.2.3 or later)
{"sip": {"build": "223", "version": "2.2.3"}, "index": 2, "name": "Material Amber", "colors": [{"blue": 0.034370001405477524, "id": "7D57DD3E-EBF9-9D4D-DC8A-A3ED77454871", "createdAt": "2020-01-23 06:02:58", "red": 0.9921799898147583, "name": "Amber A700", "green": 0.6087899804115295, "alpha": 1}, {"createdAt": "2020-01-23 06:02:58", "red": 0.9943900108337402, "alpha": 1, "name": "Amber A400", "green": 0.7259799838066101, "id": "69AAA373-3087-7536-6D87-7224A53A0A97", "blue": 0.03618999943137169}, {"blue": 0.19728000462055206, "green": 0.8167200088500977, "createdAt": "2020-01-23 06:02:58", "name": "Amber A200", "alpha": 1, "red": 0.9962700009346008, "id": "F5946576-6396-6379-9AB2-22E7FE19ACE1"}, {"alpha": 1, "blue": 0.4251199960708618, "createdAt": "2020-01-23 06:02:58", "red": 0.9976599812507629, "id": "C4325271-1539-9DFA-AF9E-E7901BCEEC53", "green": 0.8826199769973755, "name": "Amber A100"}, {"alpha": 1, "createdAt": "2020-01-23 06:02:58", "id": "10126CB6-670B-BFA8-80E5-5E3323056DC2", "green": 0.34540000557
@blueset
blueset / config.yaml
Created August 31, 2019 04:28
Rotational logger sample
# ...
logging:
version: 1
disable_existing_loggers: false
formatters:
sample:
format: '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
handlers:
rotation: