Skip to content

Instantly share code, notes, and snippets.

View DarkWiiPlayer's full-sized avatar
💭
OwO

Wii DarkWiiPlayer

💭
OwO
View GitHub Profile
@mathieu-b
mathieu-b / CH340_Ubuntu_22.04_setup.md
Last active September 26, 2024 07:18
CH340 Setup on Ubuntu 22.04 LTS (with required fixes)

The CH340 Drivers already come with the OS:

λ lsmod | grep -i ch34
ch341                  24576  0
usbserial              69632  3 usb_wwan,ch341,option

When connecting the CH340 device, at first it is recognized, but it will then be automatically disconneted after a short while:

@fnky
fnky / ANSI.md
Last active November 18, 2024 06:36
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@qti3e
qti3e / README.md
Last active October 31, 2024 00:27
List of file signatures and mime types based on file extensions
@IntergalacticApps
IntergalacticApps / make_windows10_great_again.bat
Last active August 25, 2024 15:23
Make Windows 10 Great Again - stop Windows 10 spying!
@echo off
setlocal EnableDelayedExpansion
ver | find "10." > nul
if errorlevel 1 (
echo Your Windows version is not Windows 10... yet. Brace yourself, Windows 10 is coming^^!
pause
exit
)
@leommoore
leommoore / file_magic_numbers.md
Last active November 17, 2024 13:25
File Magic Numbers

File Magic Numbers

Magic numbers are the first bits of a file which uniquely identify the type of file. This makes programming easier because complicated file structures need not be searched in order to identify the file type.

For example, a jpeg file starts with ffd8 ffe0 0010 4a46 4946 0001 0101 0047 ......JFIF.....G ffd8 shows that it's a JPEG file, and ffe0 identify a JFIF type structure. There is an ascii encoding of "JFIF" which comes after a length code, but that is not necessary in order to identify the file. The first 4 bytes do that uniquely.

This gives an ongoing list of file-type magic numbers.

Image Files

@spion
spion / a-warning.md
Last active August 24, 2024 13:09
C++ versus V8 versus luajit versus C benchmark - (hash) tables

Warning

This benchmark has been misleading for a while. It was originally made to demonstrate how JIT compilers can do all sorts of crazy stuff to your code - especially LuaJIT - and was meant to be a starting point of discussion about what exactly LuaJIT does and how.

As a result, its not indicative of what its performance may be on more realistic data. Differences can be expected because

  1. the text will not consist of hard-coded constants