Skip to content

Instantly share code, notes, and snippets.

View Chopper1337's full-sized avatar
💭
Paste or be pasted.

Chopper1337

💭
Paste or be pasted.
View GitHub Profile
1. Fresh install of COD4 from Steam
2. Download the COD4X manual installer (https://cod4x.ovh/t/releases/24)
3. Extract it to somewhere in your COD4 install folder (make a new folder called c4x or something)
4. Install `protontricks` (See https://github.com/Matoking/protontricks, https://aur.archlinux.org/packages/protontricks)
5. Change Proton version to 5 for COD4
6. Start the game, make sure it works (it should be able to reach the menu at least)
7. Open `protontricks` (Choose Steam install if necessary)
8. Select COD4 - some "winetricks" errors may appear, these can be ignored (press OK, close etc.)
9. Once winetricks has opened, choose "Select the default wineprefix"
10. Select "Run explorer" - the winetricks window will disappear and reappear
@Chopper1337
Chopper1337 / VisiBlue.yml
Last active November 10, 2023 09:17
Alacritty VisiBlue Theme
colors:
name: VisiBlue
author: ""
primary:
background: "#000000"
foreground: "#666699"
cursor:
text: "#000000"
cursor: "#666699"
normal:
@Chopper1337
Chopper1337 / xenia-updater.ps1
Created August 8, 2023 15:02
PowerShell Xenia Updater script
cls
echo "Downloading latest release..."
$url = "https://github.com/xenia-project/release-builds-windows/releases/latest/download/xenia_master.zip"
$output = "$PSScriptRoot\xenia_master.zip"
$start_time = Get-Date
Invoke-WebRequest -Uri $url -OutFile $output
Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"
cls
echo "Deleteing xenia.exe, xenia.pdb and LICENSE"
Remove-Item 'xenia.exe'
@Chopper1337
Chopper1337 / VMToggle.sh
Created August 28, 2021 03:36
Script to start a VM if it isn't running and stop it if is running.
#!/bin/bash
Change to the name of the VM you wish to start up and shutdown.
VMname="win10"
if [[ $(sudo virsh domstate $VMname) = 'shut off' ]]; then
sudo virsh start $VMname
exit
else
sudo virsh shutdown $VMname
exit
@Chopper1337
Chopper1337 / Mount+DismountQCOW2.sh
Created August 28, 2021 03:33
Script to mount and unmount qcow2 disk images
#!/bin/bash
function pause(){
read -s -n 1 -p "Press any key to continue . . ."
echo ""
}
echo Mounting QCOW2
echo Enter path to qcow2:
read qcowloc