Skip to content

Instantly share code, notes, and snippets.

@sn99
sn99 / activate.bat
Created March 13, 2019 13:20
Activate windows 10
@echo off
title Windows 10 ALL version activator&cls&echo ************************************&echo Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Enterprise, Enterprise LTSB&echo - Windows 10 Education&echo.&echo.&echo ************************************ &echo Windows 10 activation...
cscript //nologo c:\windows\system32\slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
@sn99
sn99 / joker.sh
Created April 7, 2019 10:25
Wakatime Hack
#!/bin/bash
x=0
while true
do
printf "Haha " >> haha
x=$((x+1))
sleep $(( ( RANDOM % 10 ) + 1 ))
if [ $x -eq 18 ]
then
#!/usr/bin/env bash
{ # this ensures the entire script is downloaded #
nvm_has() {
type "$1" > /dev/null 2>&1
}
nvm_install_dir() {
printf %s "${NVM_DIR:-"$HOME/.nvm"}"
for i in {0..9999}; do paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/'; printf "\n================================= $i\n\n"; sleep 0.5; done
for i in $(seq $(getconf _NPROCESSORS_ONLN)); do yes > /dev/null & done
# for cancel
killall yes
update-desktop-database ~/.local/share/applications/
sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/
DRI_PRIME=1 sudo ryzen-controller --no-sandbox
@sn99
sn99 / steam
Created January 3, 2021 10:30
steam-system-info
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 7 4800H with Radeon Graphics
CPU Family: 0x17
@sn99
sn99 / container.log
Created January 3, 2021 12:45
steam-soldier-container-log
pressure-vessel-wrap[36311]: Original argv:
pressure-vessel-wrap[36311]: 0: '/home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-wrap'
pressure-vessel-wrap[36311]: 1: '--env-if-host=PATH=/home/sn99/.cargo/bin:/usr/bin/haswell:/usr/local/bin:/usr/local/sbin:/usr/bin:/opt/3rd-party/bin'
pressure-vessel-wrap[36311]: 2: '--'
pressure-vessel-wrap[36311]: 3: 'steam-runtime-system-info'
pressure-vessel-wrap[36311]: 4: '--verbose'
pressure-vessel-wrap[36311]: Current working directory:
pressure-vessel-wrap[36311]: Physical: /home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier
pressure-vessel-wrap[36311]: Logical: /home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier
pressure-vessel-wrap[36311]: Environment variables:
pressure-vessel-wrap[4835]: Original argv:
pressure-vessel-wrap[4835]: 0: '/home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-wrap'
pressure-vessel-wrap[4835]: 1: '--env-if-host=PATH=/home/sn99/.cargo/bin:/usr/bin/haswell:/usr/local/bin:/usr/local/sbin:/usr/bin:/opt/3rd-party/bin'
pressure-vessel-wrap[4835]: 2: '--'
pressure-vessel-wrap[4835]: 3: 'steam-runtime-system-info'
pressure-vessel-wrap[4835]: 4: '--verbose'
pressure-vessel-wrap[4835]: Current working directory:
pressure-vessel-wrap[4835]: Physical: /home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier
pressure-vessel-wrap[4835]: Logical: /home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier
pressure-vessel-wrap[4835]: Environment variables: