Skip to content

Instantly share code, notes, and snippets.

View wanderling's full-sized avatar

Daniel wanderling

  • DSR Repair
  • Finally somewhere, Washington
View GitHub Profile
@wanderling
wanderling / README
Created September 9, 2021 01:30 — forked from patrakov/README
Automatically reinstall OpenWRT packages after firmware upgrades
The script helps you restore all installed OpenWRT packages after upgrading the main firmware image via sysupgrade. It works
ONLY if the default firmware image provided by the OpenWRT project is sufficient to get connected to the Internet, but you
want some extra packages for additional functionality. In other words, it WILL NOT WORK if connecting to the Internet
requires installing extra packages (e.g., a kernel module for your LTE modem).
The script has been tested for upgrading from OpenWRT 18.06.1 to 18.06.2 and to a development snapshot, as well as between
development snapshots. On LEDE 17.01.x, "flock" is not a part of the default image, so has to be installed manually.
Initial setup:
@wanderling
wanderling / readme.md
Created December 24, 2019 05:03 — forked from max-mapper/readme.md
notes from hacking my kindle paperwhite

outline

useful hacks

@wanderling
wanderling / notes from hacking my kindle paperwhite
Last active December 24, 2019 05:04 — forked from max-mapper/readme.md
notes from hacking my kindle paperwhite
## outline
- [jailbreak](http://www.mobileread.com/forums/showthread.php?t=198446)
- enable usb networking (type `;un` into the search bar after jailbreak)
- [configure your computer](http://wiki.mobileread.com/wiki/Kindle_Touch_Hacking#USB_Networking)
- ssh in as root:mario
- usb mount point is `/mnt/us`
### useful hacks
@wanderling
wanderling / 4chan-wget-scraping.md
Created December 5, 2019 08:25 — forked from tayfie/4chan-wget-scraping.md
how to scrape images from 4chan using wget

How To Scrape Images from 4chan Using Wget

This guide is to save other sorry plebs from needing to RTFM in figuring out how to use wget to scrape images from 4chan and other imageboards. There are lots of image downloaders in existence, but they are usually outdated and broken. You will save time following this guide to learn how to use a powerful and general purpose tool instead.

What Is Wget?

Wget is a command-line file downloader that can handle just about any file downloading task normal and power users will ever need to do. It has versions available for Windows, Mac, and Linux. If it is not already installed on your machine, install it now.

Basic syntax

@wanderling
wanderling / dragon_download.py
Created May 20, 2019 03:27 — forked from Syfaro/dragon_download.py
Download OBJ previews of products from Bad Dragon
import os
import requests
PRODUCT_URL = 'https://bad-dragon.com/api/products'
SAVE_DIR = 'models'
def load_products():
return requests.get(PRODUCT_URL).json()