Skip to content

Instantly share code, notes, and snippets.

View ahmedsadman's full-sized avatar
🏠
Working from home

Sadman Muhib (Samyo) ahmedsadman

🏠
Working from home
View GitHub Profile
@ahmedsadman
ahmedsadman / disable-turbo.bat
Created August 2, 2022 16:52
Disable Turbo power mode with batch file while running a certain application
@echo off
echo Switching power modes (Turboless)
powercfg /s 9d9d13cf-c730-4421-8f6f-4d8d6f8bd265
echo Starting game
start /w "" "Stray.exe"
echo Restoring power mode (Performance)
powercfg /s 27fa6203-3987-4dcc-918d-748559d549ec
exit
@ahmedsadman
ahmedsadman / copy-keys.sh
Created March 29, 2024 21:28 — forked from tosin2013/copy-keys.sh
copy-keys.sh -> to be used for github actions
#!/bin/bash
# Check if all required arguments are provided
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <username@host.com> <your_email@example.com>"
exit 1
fi
# Step 1: Generate an SSH Key
ssh_key_file="github-actions"