Skip to content

Instantly share code, notes, and snippets.

@dimitar-grigorov
Last active May 11, 2023 14:18
Show Gist options
  • Save dimitar-grigorov/8fa98b65d98e4a454555830fde60e304 to your computer and use it in GitHub Desktop.
Save dimitar-grigorov/8fa98b65d98e4a454555830fde60e304 to your computer and use it in GitHub Desktop.

Chocolatey personal list

Install Chocolatey (copied from https://chocolatey.org/install)

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'))

Bare minimum

choco install -y 7zip adobereader directx googlechrome jre8 potplayer qbittorrent rustdesk vlc winamp ` 
 k-litecodecpackmega ublockorigin-chrome notepadplusplus libreoffice-fresh

Extra packages

choco install -y 4k-video-downloader audacity brave chocolateygui etcher firefox git.install handbrake `
 keepass mobaxterm nodejs obs-studio partitionwizard radmin-viewer sysinternals tortoisegit ultravnc  `
 vscode windirstat winmerge winscp 

Linux auto load SSH key ssh-agent if isn't running.

sudo apt-get install keychain 
vim ~/.bashrc 
eval $(keychain --eval id_rsa) 

C# zip all files in current directory (Win 10+)

tar --exclude judge.zip --exclude bin --exclude obj -a -cf judge.zip *

Extract URLs from a file

grep -o -E -e 'https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)' test.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment