Skip to content

Instantly share code, notes, and snippets.

# benchmark CPU
7z b
# fill RAM
stress -m 1 --vm-bytes 4G --vm-keep
https://unix.stackexchange.com/questions/581058/how-can-i-fake-the-amount-of-installed-ram-for-a-specific-program-in-linux
su
cp /proc/meminfo .
sed -Ei 's,^MemTotal: [0-9]+ kB,MemTotal: 8839012 kB,' meminfo # replace 8839012 with an amount of RAM you want to pretend you have
free -m # check how much RAM you have now
total used free shared buff/cache available
Mem: 7655 1586 3770 200 2298 5373
# using KONSOLE
# to get key code
showkey -a
Konsole > Settings > Edit Current Profile... > Keyboard > Edit...
# BASH
Backspace-Ctrl \x7f
Backspace+Ctrl \E\b
# install gpu driver
# install
flatpak install flathub org.vinegarhq.Vinegar
flatpak install flathub org.vinegarhq.Sober
# gamepad & touch permission
kate ~/.var/app/org.vinegarhq.Sober/config/sober/config.json
"allow_gamepad_permission": true,
"enable_gamemode": true,
ASUS VG249 23.8" IPS OSD
brightness 15
contrast 82
saturation 50
color temp: warm
skin tone: natural
# Radeon
brightness 42
contrast 82
@DNS
DNS / ssh server windows.txt
Last active July 27, 2025 13:44
ssh server windows
# server config location
C:\ProgramData\ssh\sshd_config
# client config location
"C:\Users\$env:USERNAME\.ssh\config"
--------------------------------
Copy the client's public key into the server's authorized_keys file.
Disable the last AuthorizedKeysFile line like the below example.
@DNS
DNS / SSD max temperature test.txt
Last active July 23, 2025 17:59
SSD max temperature test
# SSD max temperature heat sink test (NAND, Controller)
# Thinkbook 2 in 1 G4 IML
# WD SN740 1TB 2242
no hs : 71 °C, 92 °C
hs+pad : 54 °C, 80 °C
# Samsung 990 Evo Plus 1TB 2280
no hs : 57 °C, 74 °C
hs+paste : 56 °C, 62 °C
@DNS
DNS / hieamtsrn-keyboard-layout.ps1
Created April 4, 2025 11:49
hieamtsrn-keyboard-layout.ps1
<#
https://unix.stackexchange.com/questions/51804/how-can-i-install-a-new-keyboard-layout-in-kde-4
#>
Copy-Item -Path /usr/share/X11/xkb/rules/evdev.xml -Destination /usr/share/X11/xkb/rules/evdev.xml.OLD
Copy-Item -Path /usr/share/X11/xkb/rules/evdev.lst -Destination /usr/share/X11/xkb/rules/evdev.lst.OLD
Copy-Item -Path /usr/share/X11/xkb/symbols/us -Destination /usr/share/X11/xkb/symbols/us.OLD
@DNS
DNS / MyRepublic FiberHome HG6145D2.txt
Created January 31, 2025 08:10
MyRepublic FiberHome HG6145D2 username & password
MyRepublic
FiberHome HG6145D2
http://192.168.1.1
user: admin
pswd: %0|F?H@f!berhO3e
user: user
pswd: user1234
@DNS
DNS / vs2022-downloader.ps1
Created January 27, 2025 12:22
Visual Studio Enterprise 2022 - offline downloader
<#
https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2022
https://learn.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2022#download-the-visual-studio-bootstrapper-to-create-the-layout
https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise?view=vs-2022
#>
New-Item vs2022layout -Type Directory
Set-Location vs2022layout
Invoke-WebRequest https://aka.ms/vs/17/release/vs_enterprise.exe