Skip to content

Instantly share code, notes, and snippets.

View lloyd-pinrun's full-sized avatar
📈
Loving & hating GraphQL

Cam C. (for Cheese) lloyd-pinrun

📈
Loving & hating GraphQL
  • Somewhere
  • 03:57 (UTC -05:00)
View GitHub Profile
@lloyd-pinrun
lloyd-pinrun / prismlauncher_scaling_1.5.vbs
Created February 1, 2025 20:13
Increases UI scaling of Prism Launcher. Must be placed in the same director as `prismlauncher.exe` and ran instead of that same `.exe`
Dim WshShell, WshEnv
Set WshShell = CreateObject("WScript.Shell")
Set WshEnv = WshShell.Environment("PROCESS")
WshEnv.Item("QT_SCALE_FACTOR") = "1.5"
WshShell.Run "prismlauncher.exe"
@lloyd-pinrun
lloyd-pinrun / set_battery_thresholds
Last active March 28, 2018 18:03
Sets ThinkPad battery threshold with tp_smapi... taken from Arch wiki (https://wiki.archlinux.org/index.php/Tp_smapi). Adding it here for future use.
#!/bin/sh
# set the battery charging thresholds to extend battery lifespan
echo ${2:-40} > /sys/devices/platform/smapi/BAT${1:-0}/start_charge_thresh
echo ${3:-80} > /sys/devices/platform/smapi/BAT${1:-0}/stop_charge_thresh
@lloyd-pinrun
lloyd-pinrun / macspoof
Last active July 6, 2018 16:45
Simple script to randomly change MAC address on specified network adapter
#!/bin/bash
# Mac Spoofer
# Drops a specfified adapter from the network
# Then randomly changes MAC address on a specified network adapter using macchanger (https://github.com/alobbs/macchanger)
# Reconnects to the network with the newly generated MAC address
echo "Wireless adapter:" $1
printf "\n"
service network-manager stop