Skip to content

Instantly share code, notes, and snippets.

/*
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";
}
}
# 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
@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);
#docker build -t archtest .
#docker run -ti archtest
FROM base/arch
RUN pacman-key --populate archlinux
RUN pacman-key --refresh-keys
RUN pacman -Syu --noconfirm
RUN pacman-db-upgrade
RUN pacman -S --noconfirm elfutils
RUN pacman -S --noconfirm avr-libc
RUN pacman -S --noconfirm git
/*
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
#!/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 / 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