Notes
January 1st 1970
Linux
Quit telnet session
Ctrl+AltGr+9
quitfor i in range
for i in {01..99}; do echo $i; doneMake Siterip
wget -mpckE --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36." -e robots=off <URL>Limit journald disk-space
Change SystemMaxUse in /etc/systemd/journald.conf to e.G. 300M.
Then service systemd-journald restart
Changing output device in Gnome doesn't work
mv ~/.config/pulse ~/.config/pulse_oldSystemd service
https://www.freedesktop.org/software/systemd/man/systemd.service.html
Edit Registry
https://github.com/rescatux/chntpw
myip alias
alias myip="curl ifconfig.co"
standard ports list
/etc/servicesflush DNS cache
systemd-resolve --flush-cachesor
resolvectl flush-cachesWriting umlauts on an english keyboard
AltGr+[ then press a,o,u,... to get the umlaut.
Remove dirty-flag from NTFS
ntfsfix -d /dev/sdx1 / mount -o remove_hiberfile /dev/...
Extract first page of PDF and save as PNG using GhostScript
for f in *.pdf; do gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -sPageList=1 -r300 -sOutputFile="${f%.*}.png" "$f"; donegsettings workspace stuff
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Alt>A','<Alt>Page_Up']"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Alt>D','<Alt>Page_Down']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-left "['<Alt><Shift>A','<Alt><Shift>Page_Up']"
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-right "['<Alt><Shift>D','<Alt><Shift>Page_Down']"gsettings set org.gnome.desktop.wm.keybindings switch-applications "['disabled']"
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']"Nemo allow multiple windows
cp /usr/share/applications/nemo.desktop .local/share/applications/Then add the following to ~/.local/share/applications/nemo.desktop:
[Desktop Action new-window]
Name=New Window
Exec=nemoshow nic speed
cat /sys/class/net/<iface>/speedWindows
.cpl / .msc
- sysdm.cpl <- advanced pc settings
- ncpa.cpl <- network adapter settings
- devmgmt.msc
Workspace AutoHotkeys
Show all perf-counters
typeperf -qxDisable Wsus for Windows Update
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /t REG_DWORD /d 0 /f
net stop "Windows Update"
net start "Windows Update"Show Embedded Windows License Key
wmic path SoftwareLicensingService get OA3xOriginalProductKeyShow bios serial number
wmic bios get serialnumberCount Members of AD group
(Get-ADGroup "GROUP" -Properties *).Member.CountGet Release ID with Powershell
(Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" -Name ReleaseID).ReleaseIdStartup folder location
System-wide:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUpPer User:
%appdata%\Microsoft\Windows\Start Menu\Programs\Startup