Skip to content

Instantly share code, notes, and snippets.

View TapeWerm's full-sized avatar

Vincent Vermilya TapeWerm

View GitHub Profile
@TapeWerm
TapeWerm / UTInput.ini
Last active June 21, 2021 06:00
UTInput.ini - Bind keys to hidden split screen commands
// WARNING: Copy into %USERPROFILE%\Documents\My Games\Unreal Tournament 3\UTGame\Config\UTInput.ini under [Engine.PlayerInput]
// Bind keys to hidden split screen commands
// Toggles don't work >:(
Bindings=(Name="LeftBracket",Command="DebugCreatePlayer 1",Shift=False)
Bindings=(Name="LeftBracket",Command="DebugRemovePlayer 1",Shift=True)
Bindings=(Name="RightBracket",Command="DebugCreatePlayer 2",Shift=False)
Bindings=(Name="RightBracket",Command="DebugRemovePlayer 2",Shift=True)
@TapeWerm
TapeWerm / Windows 10 Setup Electric Boogaloo.md
Last active June 30, 2024 07:15
Windows 10 Setup Electric Boogaloo.md - For all the things setup didn't ask you about

For all the things setup didn't ask you about

Settings

  • Advanced Windows Update options
    • Receive updates for other Microsoft products when you update Windows - On
  • Allow the shortcut key to start Sticky Keys - Off (If you use Sticky Keys keep it on)
  • Change active hours - 6 AM-12 AM
  • Change the date and time formats - Military time without 0 padding
  • Choose if the alternate home experience launches with mixed reality - On
  • Get tips, tricks, and suggestions as you use Windows - Off
  • Offer suggested actions - Off
@TapeWerm
TapeWerm / Ubuntu Desktop 22.04 Aftersetup.md
Last active January 21, 2024 08:11
Ubuntu Desktop 22.04 Aftersetup.md - The setup after you set yourself up

The setup after you set yourself up

After installing Ubuntu Desktop, open Terminal:

GDM Monitor Layout

Copy your Gnome display settings to the login screen:

sudo cp ~/.config/monitors.xml ~gdm/.config/

Gaming

Enter sudo crontab -e and add this to your crontab:

@TapeWerm
TapeWerm / Ubuntu Server 22.04 Aftersetup.md
Last active July 22, 2024 06:29
Ubuntu Server 22.04 Aftersetup.md - The setup after you set yourself up

The setup after you set yourself up

After installing Ubuntu Server:

Time Zone

sudo dpkg-reconfigure tzdata

SSH 2FA

sudo apt install libpam-google-authenticator
@TapeWerm
TapeWerm / PowerPlan.ps1
Last active January 1, 2020 23:48
PowerPlan.ps1 - Make shortcut in Start menu for power plan
# WARNING: If you haven't already, open Windows PowerShell (Admin) and run:
# Set-ExecutionPolicy Unrestricted
# You need to set that to run this script.
# .SYNOPSIS
# Make shortcut in Start menu for power plan.
# .EXAMPLE
# .\PowerPlan.ps1 $PlanName
if ($args[0] -eq $null) {
@TapeWerm
TapeWerm / fail.sh
Last active July 18, 2023 06:49
fail.sh - Scan auth logs and if at least THRESHOLD failed IPv4 addresses have the same first 3 octets list them
#!/usr/bin/env bash
syntax='Usage: fail.sh [OPTION]... [LOG]...'
# If at least $threshold failed IPv4 addresses have the same first 3 octets list them
scan() {
if ! echo "$log" | grep -q /; then
log=/var/log/$log
fi
# Ordered unique IPv4 addresses found in auth.log
@TapeWerm
TapeWerm / Bash Advice.md
Last active June 10, 2024 03:08
Bash Advice.md - I don't know everything, but here's the best takeaways from me thus far

I don't know everything, but here's the best takeaways from me thus far

This is my altar to everything that can and will go wrong in bash

Tips

  • Alias frequent commands in your .bashrc. Do not echo in your .bashrc, it breaks SFTP and other programs. Try /etc/motd for welcome messages instead. ^_^
  • if [ -z "$SSH_AGENT_PID" ]; then eval "$(ssh-agent)"; fi; ssh-add $key to avoid retyping your SSH key's password.
  • Learn regex at https://regexr.com. Bash uses globbing but some commands use regex. See also: Special Characters
  • Learn vim and add colo murphy to your .vimrc. Murphy is the most readable color scheme to me. set (no)number and set (no)hlsearch are also useful.
  • man -f $cmd [...] lists short descriptions of several commands.
  • less +G $file opens $file at the bottom.
@TapeWerm
TapeWerm / Android Aftersetup.md
Last active November 2, 2023 14:15
Android Aftersetup.md - The setup after you set yourself up

The setup after you set yourself up

Settings

  • Connected devices > Connection preferences > Nearby Share > Show notification - Off
  • Google > Use Autofill with Google - Off
  • Network & internet > Hotspot & tethering > Wi-Fi hotspot - What you want
  • Network & internet > Private DNS (Might break VPN DNS) - dns.google
  • Display > Advanced > Lock screen display > Google Assistant - Off
  • Display > Lock display > Screen timeout - 1 min
  • Sound > Vibrate for calls - Always vibrate
  • System > Gestures > Double-tap to check phone (Phone might wake up in your pocket) - Off
@TapeWerm
TapeWerm / VS Code Aftersetup.md
Last active November 16, 2023 06:12
VS Code Aftersetup - The setup after you set yourself up

The setup after you set yourself up

Settings

  • Prettier > Tab Width - 4
  • Python > Formatting: provider - black
  • Terminal > Integrated: Cwd - ${fileDirname}
  • Window > Title Bar Style: custom

Extensions

  • vscodevim.vim
@TapeWerm
TapeWerm / video.txt
Created July 22, 2020 14:50
Half-Life: Alyx video.txt for 4GB GPU
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life Alyx\game\hlvr\cfg\video.txt
// 4GB GPUs can play Half-Life: Alyx, but FPS stutters for a bit after loading some levels
// Low textures is 1024, minimum VRAM required is 6GB
"setting.r_texture_stream_max_resolution" "512"