Skip to content

Instantly share code, notes, and snippets.

@corncobble
corncobble / readme.md
Last active August 24, 2025 05:09
Use a non-network capable printer (Brother HL-L2320D) on your network (CUPS, IPP, AirPrint)

For the print server I'm using a mini PC running Debian. The general steps outlined here are likely similar for other distributions as well. This is used in a home network so almost all access and policy restrictions are removed.

  1. Install the CUPS package: sudo apt update && sudo apt install cups
  2. Modify the CUPS daemon configuration file /etc/cups/cupsd.conf:
    • Replace Listen localhost:631 with Port 631 to listen on all addresses.
    • Add ServerAlias yourhostname.yourdomain or ServerAlias * to effectively bypass HTTP Host header validation.
    • Verify that Browsing Yes, BrowseLocalProtocols dnssd, and WebInterface Yes are present.
    • For all <Location> </Location> entries, allow connections from any local address on the network:

Restrict access to the server...

@corncobble
corncobble / readme.md
Last active August 11, 2025 19:40
Using Visual Studio Code in WSL2 locally

This writeup assumes you are using Ubuntu for WSL2 on an x64 machine.

  1. Download the Visual Studio Code package, typically found here: https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64
  2. Update apt and install the package: sudo apt update && sudo apt install /path/to/code_1.102.3-1753759567_amd64.deb
  3. During installation it should prompt you to install the apt repository and signing key to enable auto-updating using the system's package manager. This is recommended.
  4. Type code to start.

Two things I've noticed so far:

  • The window will be drawn tiny if using a high resolution monitor. Use the Electron (Chromium) startup parameter --force-device-scale-factor=1.x to fix this.
  • Before startup you will be prompted to install Code for Windows instead. I haven't yet found a reason to needlessly do remote development via SSH over doing it locally inside WSL2. Use the DONT_PROMPT_WSL_INSTALL=1 environment variable to fix this.
@corncobble
corncobble / readme.md
Last active April 12, 2025 15:20
Install Fallout London (and having it work)

Installation

  1. Purchase Fallout 4: GOTY from GOG.com. Purchase (add) Fallout London from GOG.com. You now have both of these in your GOG library.
  2. Download and install GOG Galaxy. It just makes this whole thing easier.
  3. In GOG Galaxy, install Fallout 4: GOTY. Once completed, run it (at least) once to the title screen.
  4. In GOG Galaxy, install Fallout London (which just installs the mod installer). Once completed, run it and use the installer to install the mod to the Fallout 4: GOTY folder (typically C:\Program Files (x86)\GOG Galaxy\Games\Fallout 4 GOTY).
  5. Download "High FPS Physics Fix" from Nexus Mods. Download the one specified for Fallout London.
  6. Extract the files. Make sure the following files are located at:
C:\Program Files (x86)\GOG Galaxy\Games\Fallout 4 GOTY\Data\F4SE\plugins\HighFPSPhysicsFix.dll
@corncobble
corncobble / tasks.yml
Last active January 9, 2024 13:03
Proxmox: Create VM from cloud-init image using Ansible
---
- name: Download cloud-init image
register: image
ansible.builtin.get_url:
url: "{{ image_url }}"
dest: /tmp
mode: '0644'
force: true
- name: Install pip