Skip to content

Instantly share code, notes, and snippets.

@ivankovnatsky
Last active October 10, 2024 16:45
Show Gist options
  • Save ivankovnatsky/6ef4f8849e853d800b10bf0fec62a467 to your computer and use it in GitHub Desktop.
Save ivankovnatsky/6ef4f8849e853d800b10bf0fec62a467 to your computer and use it in GitHub Desktop.
# Scoop
iwr -useb get.scoop.sh | iex
scoop bucket add extras
scoop install `
syncthing `
cygwin `
googlechrome `
autohotkey `
vcredist2015 `
cryptomator `
crystaldiskmark `
git `
lsd `
hwinfo `
duf `
windows-terminal `
crystaldiskinfo ` # did install manually this time
dust `
vcredist2019 `
rclone `
lua `
steam `
bat `
fd `
fzf `
gnupg `
webtorrent `
mpv `
neovim `
rustup `
ripgrep `
wget `
which `
youtube-dl `
pass-winmenu-nogpg `
zip
$FilePath = "C:\Users\ivan\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\kinput.ahk"
echo "CapsLock::Send, {Alt Down}{Shift Down}{Shift Up}{Alt Up}" > $FilePath
Claude suggested:
# Use environment variables to get the current user's AppData folder
$StartupFolder = [Environment]::GetFolderPath('Startup')
$FilePath = Join-Path -Path $StartupFolder -ChildPath "kinput.ahk"
# Create the AutoHotkey script content
$ScriptContent = "CapsLock::Send, {Alt Down}{Shift Down}{Shift Up}{Alt Up}"
# Write the content to the file
Set-Content -Path $FilePath -Value $ScriptContent -Force
# Output the result
Write-Host "AutoHotkey script created at: $FilePath"
# Install choco: Some apps only available there.
Set-ExecutionPolicy Bypass -Scope Process -Force; `
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Used choco to install majic trackpad driver: https://github.com/imbushuo/mac-precision-touchpad
choco install mac-precision-touchpad wireshark -y
Invoke-WebRequest -Uri 'https://aka.ms/vs/17/release/vs_BuildTools.exe' -OutFile "$env:TEMP\vs_BuildTools.exe"
".\$env:TEMP\vs_BuildTools.exe" --passive --wait --add Microsoft.VisualStudio.Workload.VCTools `
--includeRecommended --remove Microsoft.VisualStudio.Component.VC.CMake.Project
scoop install cmake
cargo install genpass
# Cygwin
ln -sf /cygdrive/c/Users/ivan ivan
C:\Users\ivan\scoop\apps\cygwin\current\cygwin-setup.exe -q -P pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment