Skip to content

Instantly share code, notes, and snippets.

View rboninsegna's full-sized avatar

Riccardo Boninsegna rboninsegna

View GitHub Profile
@SonoSooS
SonoSooS / MCUBrick.c
Created September 14, 2016 17:24
3DS RGB LED test program
#include <3ds.h>
Handle ptmsysmHandle = 0;
Result ptmsysmInit()
{
return srvGetServiceHandle(&ptmsysmHandle, "ptm:sysm");
}
@reox
reox / setdatetime.sh
Created August 8, 2016 16:45
Set the Time on a Canon Camera with gphoto2
# This is very simple but I always forget it...
gphoto2 --set-config datetime=$(date +%s)
@TobiasWooldridge
TobiasWooldridge / gist:22f0cdca75190b9a473f
Last active April 4, 2024 20:03
How to Unbrick a Kindle Paperwhite

How to unbrick an Amazon Kindle Paperwhite™

This guide instructs you in how to unbrick an Amazon Kindle Paperwhite. The consequences of following it are your own responsibility. This method (opening the Kindle and using the serial interface) should be a last resort and should only be considered if other methods fail

The Guide

  1. Pry open Kindle using a prying tool
  2. Unscrew the screen and remove it from the base. Note that there's a screw hidden under the adhesive at the top in the middle
  3. Solder tin wire to serial ports on the bottom
  4. Attach tin wire to USB TTY device (order is ground, RX, TX, from the kindle's perspective, where GND is the smallest pad) and plug USB TTY device into your computer
  5. Open Putty on your computer in serial mode, with the serial port specified as your USB device and baud configured to 115200
@xee5ch
xee5ch / DriverImport.bat
Created June 12, 2011 13:34
Recursively Check Folders for INF Files and Install Windows 7 PnP Drivers When Found
@ECHO OFF
IF "%1" == "" GOTO ERROR
ECHO.
ECHO Checking dir %1 recursively for drivers.
ECHO.
FOR /F "tokens=*" %%D IN ('DIR /B /AD /S %1') DO PNPUTIL -a "%%D\*.inf" 2>&1 >> %WinDir%\system32\driverimport.log