Skip to content

Instantly share code, notes, and snippets.

View mecaneer23's full-sized avatar
⚙️
Tinkering

Gabriel Natenshon mecaneer23

⚙️
Tinkering
View GitHub Profile
@mecaneer23
mecaneer23 / WSL_exec_format_fix.md
Created March 21, 2024 19:02
WSL fix to "powershell.exe: cannot execute binary file: Exec format error"

Run the following in Windows

wsl --shutdown
wsl
@mecaneer23
mecaneer23 / apt-replace-sources.md
Created December 26, 2023 17:47
Apt - change to old sources for old distributions

Apt replace sources

Inspired from here

sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get dist-upgrade
@mecaneer23
mecaneer23 / arcolinux-pacman-key-upgrade.sh
Created December 24, 2023 22:42
Update ArcoLinux pacman keys
#!/bin/bash
echo "Removing old keys"
sudo rm -rf /etc/pacman.d/gnupg
echo "Init new keys"
sudo pacman-key --init
echo "Init ArcoLinux specific keys"
sudo pacman-key --populate arcolinux
@mecaneer23
mecaneer23 / packing-list.md
Created December 9, 2023 02:06
FTC Vertigo 18523 Competition packing list

Vertigo's meet packing list

  • Hardware
    • Screw box
    • Standoff box
    • 2 misc hardware boxes
  • Rigids (storage boxes)
    • Gamepad controllers (>2)
    • USB splitters (>1)
  • Extra safety glasses
@mecaneer23
mecaneer23 / Fork.md
Created March 17, 2023 15:31
How to "fork" without forking in GitHub

Fork without forking

For the purposes of this tutorial, parent-url will refer to the url of the repository you want to clone.

Step 1: clone the repository locally

In a local terminal, run the following:

$ git clone parent-url

Help

This document provides help with simple running - especially if you have never run a program before.

Running python (.py)

Windows

On Windows, running python is quite simple, just make sure you have installed Python: