Skip to content

Instantly share code, notes, and snippets.

View fusion44's full-sized avatar

fusion44

View GitHub Profile
@fusion44
fusion44 / keybase.md
Created April 14, 2019 05:42
keybase.md

Keybase proof

I hereby claim:

  • I am fusion44 on github.
  • I am fusion44 (https://keybase.io/fusion44) on keybase.
  • I have a public key whose fingerprint is AE78 77A1 68D6 A72A 29F8 A12F 645F A807 E935 D9D5

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1HAejx6pufzyMm2ZecRLrrX3D9ta8FcBoM https://explorer.blockstack.org/address/1HAejx6pufzyMm2ZecRLrrX3D9ta8FcBoM
# Django 2.0.1
# This probably has something todo tith this: https://docs.python.org/dev/library/unittest.mock.html#where-to-patch
# I can't figure out the right way to patch the usage of this function.
# this prints True:
print(hasattr(backend.transactions.fetchers.generic_exchange,
"update_exchange_tx_generic"))
# but my lambda is never called and throws no error
monkeypatch.setattr(backend.transactions.fetchers.generic_exchange,
"update_exchange_tx_generic",
import { mount } from "vue-test-utils"
import Login from "./Login"
describe("Counter", () => {
let wrapper
beforeEach(() => {
wrapper = mount(Login)
})
/**
Reed Sensor between PIN and GND
*/
// Reed Sensor variables
#define PIN_INPUT_REED_SENSOR 2
boolean reedActivated = false;
void setup() {
Serial.begin(9600);
@fusion44
fusion44 / fritzbox_login.py
Last active January 21, 2024 18:41
Login to FritzBox using Python
import urllib3
import xml.etree.ElementTree as ET
import hashlib
from requests import Session
username = "xxx"
fritz_pw = "xxx"
def get_md5_hash(challenge, password):
hash_me = (challenge + "-" + password).encode("UTF-16LE")