Skip to content

Instantly share code, notes, and snippets.

# Modified code by CrazyT
#
# For orginal view notes below:
#
# Proof-of-concept code for reading data from a Wifi microscope.
# See https://www.chzsoft.de/site/hardware/reverse-engineering-a-wifi-microscope/.
# Copyright (c) 2020, Christian Zietz <czietz@gmx.net>
#
# Redistribution and use in source and binary forms, with or without
/*
compiled it with:
dtc -@ -I dts -O dtb -o mmc_spi.dtbo mmc_spi.dts
load with:
sudo dtoverlay -d . mmc_spi
*/
/dts-v1/;
/plugin/;
/ {
package org.slf4j;
public class Logger {
public static String test() {
System.out.println("inside Logger.test");
return "Logger.test result";
}
}
#!/usr/bin/python
import socket, ssl, select, time, re
from thread import start_new_thread
from struct import pack
TYPE_ENUM = 0
TYPE_STRING = 2
TYPE_BYTES = TYPE_STRING
def clean(s):
@TheCrazyT
TheCrazyT / slimshader.patch
Created January 21, 2020 16:49
Batchmode for slimshader
diff --git a/src/SlimShader.Studio/Modules/Startup/Module.cs b/src/SlimShader.Studio/Modules/Startup/Module.cs
index cc8b2fd..69a6880 100644
--- a/src/SlimShader.Studio/Modules/Startup/Module.cs
+++ b/src/SlimShader.Studio/Modules/Startup/Module.cs
@@ -1,5 +1,7 @@
using System.ComponentModel.Composition;
+using System.IO;
using System.Reflection;
+using System.Text;
using Caliburn.Micro;
@TheCrazyT
TheCrazyT / MHWGui.bt
Last active September 25, 2018 17:00
MHWGui.bt
//------------------------------------------------
//--- 010 Editor v8.0.1 Binary Template
//
// File:
// Authors: CrazyT
// Version:
// Purpose:
// Category:
// File Mask: *.gui
// ID Bytes:
#include <SPI.h>
void setup() {
Serial.begin(115200);
Serial.println("Test1");
pinMode(MISO, OUTPUT);
pinMode(SS, INPUT);
pinMode(SCK, INPUT);
pinMode(MOSI, INPUT);
/*
atmega48_i2ctest.c
Copyright 2008-2011 Michel Pollet <buserror@gmail.com>
This file is part of simavr.
simavr is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
@TheCrazyT
TheCrazyT / gist:934999
Created April 21, 2011 17:04
Standardproduktionszeiten
Nadelholzforsthütte,135
Nadelholzfällerhütte,90
Nadelholzsägemühle,180
Steinbruch,300
Fischerhütte,180
Kupfermine,180
Köhlerei,180
Kupferschmelze,360
Werkzeugschmiede,360
Bronzewaffenschmiede,360
@TheCrazyT
TheCrazyT / gist:796642
Created January 26, 2011 12:52
Linux DSO_Economic
Die Linux-Kompatibilität ist momentan noch in Bearbeitung.
Da ich auf meinem PC nur Linux in einer äußerst langsamen VM habe, konnte ich das Programm nur bedingt testen.
(Bis zur kompletten ausführung bin ich jedoch immer gescheitert, da die VM schlicht zu langsam ist und firefox sich aufhängt)
Folgendes muss auf dem System bereits installiert sein:
*mono
*libodbc
*libsqliteodbc
Folgendes muss vorher gemacht werden:
*/usr/lib/libodbc.so muss existieren ... ansonsten "ln -s /usr/lib/libodbc.so.1 /usr/lib/libodbc.so" versuchen