Skip to content

Instantly share code, notes, and snippets.

@bmaupin
bmaupin / nsui-ssl-error.md
Last active May 25, 2021 12:27
New Super Ultimate Injector SSL error fix
@bmaupin
bmaupin / android-llama-alternatives.md
Last active February 8, 2024 01:11
Alternatives to Llama for Android

Goal

Find a replacement for Llama (R.I.P. 😢)

Conclusion

🦙 Keep using Llama! 🦙

  • Llama still works and no other application seems to match Llama in terms of ease of use and cell-tower location (Llama's killer feature)
  • Cell-tower location UX seems to be unmatched by the alternatives (training new locations, ignoring towers, seeing location events)
@bmaupin
bmaupin / ade-document-too-short.md
Last active September 3, 2021 12:35
Adobe Digital Editions E_ADEPT_DOCUMENT_TOO_SHORT

Problem

Opening some .acsm files (e.g. those from archive.org) with Adobe Digital Editions will show the following error message: E_ADEPT_DOCUMENT_TOO_SHORT

Cause

Uncertain. Some have theorized it's because Adobe Digital Editions 2.0.1 requires .NET 3.5, which does not support TLS 1.2 out of the box.

There is a Windows patch to add TLS 1.2 support to .NET 3.5.1: https://support.microsoft.com/en-us/topic/support-for-tls-system-default-versions-included-in-the-net-framework-3-5-1-on-windows-7-sp1-and-server-2008-r2-sp1-5ef38dda-8e6c-65dc-c395-62d2df58715a

@bmaupin
bmaupin / docker-container-network-access.md
Last active November 21, 2023 13:02
Docker container network access

Incoming access from local network

Method Docker iptables setting Firewall on? Accessible from local network
docker run --network=host -p 3306:3306 false No Yes
docker run --network=host -p 3306:3306 false Yes No
docker run -p 3306:3306 Default Yes ⚠️ Yes
docker run -p 127.0.0.1:3306:3306 Default Yes No

An alternative option would be to leave the Docker iptables as the default, leave the firewall on, and modify iptables itself à la https://stackoverflow.com/a/51741599/399105

@bmaupin
bmaupin / nsui-via-wine.md
Last active April 11, 2024 01:38
Run New Super Ultimate Injector with Wine

Installation

Prerequisites

Install NSUI

@bmaupin
bmaupin / tl-wr841n-range-extender.md
Last active November 18, 2023 20:21
Make TP-Link TL-WR841N a wireless range extender

Using the stock firmware

  1. Connect to the primary router and set the 2.4 GHz network to a specific channel
    • The channels must be the same for WDS to work
  2. Connect to the router using a network cable
  3. If you're running OpenWrt, you'll need to flash the stock firmware
    1. Download the latest firmware for your hardware version from TP-Link's website
    2. Strip the stock firmware using dd; see the steps here: https://openwrt.org/toh/tp-link/tl-wr841nd#go_back_to_original_firmware
    3. Flash the stock firmware from LUCI
  4. Browse to the stock firmware web interface (192.168.0.1)
@bmaupin
bmaupin / never-alone-fix.sh
Created October 3, 2020 15:46
Never Alone texture fix
# See: https://github.com/dscharrer/void/blob/master/hacks/neveralonefix.c
sudo apt install gcc-multilib libgl1-mesa-dev libgl1-mesa-dev:i386 pkg-config
curl https://raw.githubusercontent.com/dscharrer/void/master/hacks/neveralonefix.c > ~/.local/share/Steam/steamapps/common/NeverAlone/neveralonefix.c
# Then set game launch options to: sh neveralonefix.c %command%
# (https://support.steampowered.com/kb_article.php?ref=1040-JWMT-2947)
  • gzipped binary file
    • 12 byte gzip "extra field" set
      • Not sure how important this is or what it contains. It doesn't appear to be related to the version of the game.
      • Subfield ID 1 (SI1) is always: C (0x43)
      • Subfield ID 2 (SI2) is always: T (0x54)
      • Data:
        • Sample 1: 0x8C 2A 00 00 07 35 01 00
          • .bkp file: 0x78 2A 00 00 C7 34 01 00
        • Sample 2: 0x44 30 00 00 CD 56 01 00
  • .bkp file: 0x40 30 00 00 CD 56 01 00
@bmaupin
bmaupin / extundelete-no-such-file-or-directory-while-creating-directory.md
Created May 29, 2020 15:35
extundelete "no such file or directory while creating directory"

This error may occur when using extundelete with -o:

extundelete: No such file or directory while creating directory

The problem is that -o expects a relative path to the current directory (not an absolute path). Either use -o with a relative path or remove -o.

Source: https://www.itread01.com/p/158985.html

@bmaupin
bmaupin / install-oracle-client-ubuntu.md
Last active February 2, 2024 04:38
Install Oracle client on Ubuntu

Reference: https://help.ubuntu.com/community/Oracle%20Instant%20Client

Tested on: Ubuntu 18.04, 20.04

  1. Decide which version of the Oracle client to install

  2. Download the Oracle client packages