Skip to content

Instantly share code, notes, and snippets.

View Maks1116's full-sized avatar

Pixelated Maks1116

  • ELOTeam
  • Poland
  • 13:06 (UTC +02:00)
View GitHub Profile
@alwynallan
alwynallan / Makefile
Last active February 22, 2025 16:37
Hardware PWM Controller for the Raspberry Pi 4 Case Fan
CC = gcc
RM = rm -f
INSTRUMENT_FOR_PROMETHEUS := false
ifeq ($(INSTRUMENT_FOR_PROMETHEUS),true)
CFLAGS = -Wall -DINSTRUMENT_FOR_PROMETHEUS
LIBS = -lbcm2835 -lprom -lpromhttp -lmicrohttpd
else
CFLAGS = -Wall
if decompile and setclipboard and readfile and writefile and getsenv and getrawmetatable and getrenv and getgenv and saveinstance and debug and debug.getregistry and debug.getupvalue and debug.getupvalues and debug.setupvalue and debug.getconstants then
FreeExploit = false
else
FreeExploit = true
end
Dirt = Instance.new("ScreenGui")
MainFrame = Instance.new("Frame")
Car = Instance.new("Frame")
Nothing = Instance.new("TextLabel")
@endolith
endolith / results.md
Last active November 23, 2024 14:34
Randomness testing of Arduino TrueRandom

I ran

cat /dev/urandom >> devurandom.bin

which produced 31 MB of data in a few seconds. To get numbers from the Arduino, I ran:

stty -F /dev/ttyUSB0 cs8 115200 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
cat /dev/ttyUSB0 >> TrueRandom.bin

which took several days to produce 93 MB of data (rate of about 3.2 kbit/s)