Skip to content

Instantly share code, notes, and snippets.

Avatar
👀
294 people are currently looking at this profile

Luckydonald luckydonald

👀
294 people are currently looking at this profile
  • Some basement in Equestria.
View GitHub Profile
@luckydonald
luckydonald / image_sizer.py
Last active Apr 2, 2018
A script to scale images to a monitor resulution and add the best fitting background color
View image_sizer.py
"""
Makes border aware sizing of desktop wallpapers.
You need to install:
$ pip install Pillow easygui joblib
"""
import glob
import os
View utf8_javascript_decode
https://jsfiddle.net/wfr4tLku/0/ # http://stackoverflow.com/a/36949791/3423324
http://jsfiddle.net/Z9pQE/44/ # http://stackoverflow.com/a/17192845/3423324
http://jsfiddle.net/3VuLx/244/ # http://stackoverflow.com/a/22373135/3423324
@luckydonald
luckydonald / Api urls.md
Last active Apr 20, 2016 — forked from anonymous/Api urls
json api of several pages I encountered.
View Api urls.md
View install_python.md

Prerequirements

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apt-rdepends

Get the stuff needed for compiling

sudo apt-get install `apt-rdepends python3 | grep ^lib`
@luckydonald
luckydonald / Pipboy Protocol.md
Last active Dec 13, 2018
Fallout 4 Protocol description
View Pipboy Protocol.md

luckydonald/JavaPipBoyServer/PROTOCOL.md Now summarizes this and other findings, and is generally more maintainend.

C Structs

struct Entry {
  uint8_t type;
  uint32_t id;
  switch (type) {
    case 0:
      uint8_t boolean;
View snaphu_windows_install_instructions_de.txt
Hier die Schritte zum Installieren/Compilieren:
0- Download
http://www.cygwin.com/
Download > Richtige Version (meist 64 Bit)
https://cygwin.com/setup-x86.exe
Dann kann schon mal mit SChritt (1) gestartet werden.
http://web.stanford.edu/group/radar/softwareandlinks/sw/snaphu/
View cubietruck_shairport_relais.md

This documents how I did setup my Stereo to automatically turn on when I play music over airplay, and turns off afterwards.

FEX:

gpio_pin_5 = port:PB15<0><0><default><0>
@luckydonald
luckydonald / cubietruck_wifi_bridge.md
Last active Mar 15, 2021
How I configure the Cubietruck to work as an WLAN bridge.
View cubietruck_wifi_bridge.md

In this file I document the steps taken to get the onboard wifi chip of the Cubietruck (Cubieboard 3) up and running.

Add the wifi driver to the modules to load on startup.

sudo nano /etc/modules

Now add at the end of the file, if not already in the list:

bcmdhd
@luckydonald
luckydonald / cubietruck_shairport-sync.md
Last active Dec 1, 2016
How to install an Airplay server (shairport-sync) on a Cubietruck
View cubietruck_shairport-sync.md

Install Shairport-Sync on a Cubieboard

I did the steps in this Cubietruck GPIO tutorial before, so I might miss dependencies already installed there. If that is the case, bug me in a comment.

Licensed under a Luna-Will-Cry-If-You-Modify-Or-Redistribute-This 1.0 licence.

Install dependencies

source

sudo apt-get install -y autoconf libtool libdaemon-dev libasound2-dev libpopt-dev avahi-daemon libavahi-client-dev libssl-dev git
sudo apt-get install -y libsoxr-dev
@luckydonald
luckydonald / cubietruck_gpio.md
Last active Feb 1, 2021
How to setup and use GPIO ports/pins on a Cubietruck
View cubietruck_gpio.md

Setup and use GPIOs on a Cubietruck

Cubietruck is also known as Cubieboard 3

Note: This file documents just what I did, first of all as a note for myself. So this is not primarily intended as a tutorial. Because it still might be helpfull, I uploaded it. The GPIO function is now confirmed to work, tested with my multimeter, but I am still waiting for my jumper cables to arrive, so I can use them securely.

Licensed under a Luna-Will-Cry-If-You-Modify-Or-Redistribute-This 1.0 licence.