################################################ # [ 1 ] Delete all commit history in GitHub ################################################ # main branch git checkout --orphan latest_branch git add . git commit -m "commit message" git branch -D main OR git branch -m main git push -f origin main # master branch git checkout --orphan latest_branch git add . git commit -m "commit message" git branch -D master git branch -m master git push -f origin master ################################################ # [ 2 ] Calculate hash in cmd (certUtil) ################################################ certUtil -hashfile C:\Windows\System32\ntdll.dll SHA256 certUtil -hashfile C:\Windows\System32\ntdll.dll SHA1 certUtil -hashfile C:\Windows\System32\ntdll.dll MD5 ################################################ # [ 3 ] Git clone .git redundant push ################################################ git clonecd rm -rf .git cd .. git rm --cached OR git rm --cached * git add . && git commit -m "$(date)" && git branch -M main && git push -u origin main ################################################ # Ubuntu Sublime (APT) ################################################ sudo apt update sudo apt install wget gpg sudo mkdir -p /etc/apt/keyrings wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo tee /etc/apt/keyrings/sublimehq-pub.asc > /dev/null (Stable) echo -e 'Types: deb\nURIs: https://download.sublimetext.com/\nSuites: apt/stable/\nSigned-By: /etc/apt/keyrings/sublimehq-pub.asc' | sudo tee /etc/apt/sources.list.d/sublime-text.sources sudo apt-get update <- dont ask sudo apt-get install sublime-text subl *If Error: [!] Read the error. E: Failed to fetch http://download.draios.com/stable/deb/stable-amd64/InRelease 403 Forbidden [IP: E: The repository 'http://download.draios.com/stable/deb stable-amd64/ InRelease' is no longer signed. .... *Fix: grep -r "draios" /etc/apt/ Expected output: /etc/apt/sources.list.d/draios.list sudo rm /etc/apt/sources.list.d/draios.list sudo apt update # Auto save change tab file = (usermode) Preferences → Settings add this code (right view) = { "save_on_focus_lost": true } save exit. Reference: https://www.sublimetext.com/docs/linux_repositories.html ################################################ # Double Commander (APT) ################################################ # Kali-Linux (Debian 12) echo 'deb http://download.opensuse.org/repositories/home:/Alexx2000/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/home:Alexx2000.list curl -fsSL https://download.opensuse.org/repositories/home:Alexx2000/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_Alexx2000.gpg > /dev/null sudo apt update sudo apt install doublecmd-gtk Custom: - Font = Cascadia Code - Color BG: White - Cursor Color: Maroon ref: https://github.com/doublecmd/doublecmd/releases/ ########################################################################### # [ ? ] Random Stuff ########################################################################### Hosts Windows: C:\Windows\System32\drivers\etc\hosts Flush DNS: ipconfig /flushdns Subl Cleaning Junk Comment: Ctrl + H > Enable regex (the .* button) > Find: #.* > Replace: (leave empty) > Replace All VS = <L" -> <L" (Replace All) Grep strings = grep -rP "@" file.txt < = < > = > & = & " = " ' = '