Skip to content

Instantly share code, notes, and snippets.

View joshjavier's full-sized avatar
🥊
Rolling with the punches

Josh Javier joshjavier

🥊
Rolling with the punches
View GitHub Profile
@joshjavier
joshjavier / steam-system-information.txt
Created October 13, 2022 14:13
For debugging purposes
Computer Information:
Manufacturer: LENOVO
Model: 2325YWN
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
CPU Family: 0x6
CPU Model: 0x3a
@joshjavier
joshjavier / parsec-setup.ps1
Last active March 24, 2022 10:21
PowerShell script for setting up Parsec Portable on Windows
# Download Parsec portable app
$client = New-Object System.Net.WebClient
$client.DownloadFile("https://builds.parsecgaming.com/package/parsec-flat-windows32.zip", "$HOME\Downloads\parsec-flat-windows32.zip")
# Extract the zip file
$ParsecDir = "$HOME\Downloads\parsec-portable"
Expand-Archive "$HOME\Downloads\parsec-flat-windows32.zip" -DestinationPath $ParsecDir
# Clean up
Remove-Item "$HOME\Downloads\parsec-flat-windows32.zip"
@joshjavier
joshjavier / parsec-cleanup.ps1
Last active March 24, 2022 10:01
PowerShell script for cleaning up Parsec files
# Import a custom function to retry deleting a folder in case it's still locked
Invoke-Expression -Command (New-Object Net.WebClient).DownloadString("https://gist.github.com/PrateekKumarSingh/65afe12a3fda5ef9ba42bf0673026728/raw/423d55256c185b8f5be819b2e1ef1aa2391fad2e/Retry-Command.ps1")
# Clean up Parsec files
$ParsecDir = "$HOME\Downloads\parsec-portable"
$ParsecShortcut = "$HOME\Desktop\Parsec.lnk"
Stop-Process -Name "parsecd"
Retry-Command -ScriptBlock {Remove-Item $ParsecDir -Recurse} -TimeoutInSecs 3 -Verbose
Remove-Item $ParsecShortcut -ErrorAction Ignore
@joshjavier
joshjavier / desktop.md
Created July 21, 2020 15:47
How to manually create a .desktop file for an app in Linux

Create .desktop file

  1. Open terminal.
  2. cd ~/.local/share/applications (or /usr/share/applications if you want it to be accessible to everyone)
  3. vim com.website.AppName.desktop
  4. Type the ff:
[Desktop Entry]
Type=Application