Skip to content

Instantly share code, notes, and snippets.

type the following command, replacing “WIFI NAME” for the name of the Wi-Fi network:
security find-generic-password -ga WIFI NAME | grep “password:”
You might have to type your Mac’s admin username and password to reveal the password. Your Mac will display the password in the terminal in plain text.
reg export "hklm\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" c:\windows\temp\un64.txt
reg export "hklm\SOFTWARE\wow6432node\Microsoft\Windows\CurrentVersion\Uninstall" c:\windows\temp\un32.txt
WMIC /NODE:computername PRODUCT GET NAME, IDENTIFYINGNUMBER
START /WAIT MSIEXEC.EXE /X <guid>
REISUB - the gentle Linux restart
According to Lifehacker a frozen Linux system that's not responding to the Ctrl-Alt-Delete three-finger-salute can be restarted more safely than by pushing the power button, which is usually the next step.
Holding down Alt and SysRq (which is the Print Screen key) while slowly typing REISUB will get you safely restarted. REISUO will do a shutdown rather than a restart.
Sounds like either an April Fools joke or some very strange magic akin to the old BIOS beeps we used to use to diagnose PC faults so bad that nothing would boot. Wikipedia comes to the rescue with an in-depth listing of all the SysRq keys.
R: Switch the keyboard from raw mode to XLATE mode
E: Send the SIGTERM signal to all processes except init
@ECHO OFF
SET QTY=1
SET TIMEOUT=250
SET SUBNET=192.168.50
ping -n %qty% -w %timeout% %subnet%.1
ping -n %qty% -w %timeout% %subnet%.2
ping -n %qty% -w %timeout% %subnet%.3
ping -n %qty% -w %timeout% %subnet%.4
ping -n %qty% -w %timeout% %subnet%.5
ping -n %qty% -w %timeout% %subnet%.6
@Computer-Tsu
Computer-Tsu / Move to Display.md
Last active September 2, 2024 21:47
Move Windows program to different monitor screen

Make the application current focus

  • Win + Tab
  • Alt + Tab
  • click on Task Bar

Windows Hotkey

  • Win + Shift + Right arrow :window: + Shift + :arrow_right:

  • Win + Shift + Left arrow →

@Computer-Tsu
Computer-Tsu / Batch.bat
Created July 11, 2023 01:18
optional first lines for batch scripts
PUSHD %~dp0
SET DateString=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%
@Computer-Tsu
Computer-Tsu / #CommandLine
Last active July 15, 2023 05:58
Add Windows Optional Component Features
There are several different tools included in Windows that can install the optional components.
@Computer-Tsu
Computer-Tsu / glogg.ini
Created September 18, 2023 12:11 — forked from mniak/glogg.ini
Coloured #glogg filters
[FilterSet]
version=1
filters\size=13
filters\1\regexp=\\[Fatal\\]
filters\1\fore_colour=red
filters\1\back_colour=white
filters\2\regexp=\\| *[Ff][Aa][Tt][Aa][Ll] *\\|
filters\2\fore_colour=red
filters\2\back_colour=white
@Computer-Tsu
Computer-Tsu / .bash_profile
Created September 18, 2023 12:18 — forked from mniak/.bash_profile
My OS #config files
# FOR MACOSX: curl -o ~/.bash_profile https://gist.githubusercontent.com/mniak/31cea1e0e50809dbb4e5dd13d689644c/raw/.bash_profile -H 'Cache-Control: no-cache'
# FOR LINUX: curl -o ~/.bashrc https://gist.githubusercontent.com/mniak/31cea1e0e50809dbb4e5dd13d689644c/raw/.bash_profile -H 'Cache-Control: no-cache'
export PS1="\[\e[33m\]\W\[\e[m\] \\$\[$(tput sgr0)\] "
export CLICOLOR=1
export TERM=xterm-256color
export DOTNET_CLI_TELEMETRY_OPTOUT=1
if [ $(uname) == "Darwin" ]; then #OSX specific configuration