Skip to content

Instantly share code, notes, and snippets.

View ChuckMichael's full-sized avatar
🐧
:(){ :|:& };:

M ChuckMichael

🐧
:(){ :|:& };:
View GitHub Profile
@ChuckMichael
ChuckMichael / openwrt_reboot.sh
Last active August 4, 2022 15:17
restart router every Saturday on 4:00.
# source https://openwrt.org/docs/guide-user/base-system/cron#periodic_reboot
crontab -e
# Restart router at 04:00 on Saturday
0 4 * * 6 sleep 70 && touch /etc/banner && reboot
# crontab must end with the last line as space or a comment
@ChuckMichael
ChuckMichael / notepadplusplus_win11.reg
Last active October 8, 2023 23:56
***/!\Not needed starting from Notepad++ v8.5.1/!\*** It adds "Edit with Notepad++" option to new context menu under Windows 11. Thanks to @AveYo!
Windows Registry Editor Version 5.00
; Edit with Notepad++ in Windows 11 contextmenu - by AveYo (https://gist.github.com/AveYo)
[-HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
[HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
"MuiVerb"="Edit with &Notepad++"
"Icon"="C:\\Program Files\\Notepad++\\notepad++.exe,0"
"MultiSelectModel"="Player"
"NeverDefault"=""
"AppliesTo"="NOT .zip"
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation]
"Manufacturer"="Chuck"
"Model"="Chuck Space Rocket 2000"
"SupportURL"="https://github.com/chuckmichael"
@ChuckMichael
ChuckMichael / npp_locale_RunAsAdmin.bat
Created September 30, 2021 22:23
Batch script to open NppShell Settings where you can change text "Edit with Notepad++" to your own.
@echo off
@rem based on https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights and https://github.com/notepad-plus-plus/notepad-plus-plus/issues/2444
goto check_Permissions
:check_Permissions
echo Administrative permissions required. Detecting permissions...
net session >nul 2>&1
if %errorLevel% == 0 (
echo Success: Administrative permissions confirmed.
goto do_magic
) else (
@ChuckMichael
ChuckMichael / addons.md
Created September 10, 2021 18:24
A few awesome addons for web browser
  • UblockOrgin
  • SponsorBlock
  • YouTubeNonStop
  • Simple Translate
  • Swift Selection Search
  • Bitwarden
  • I don't care about cookies
  • PolskaZgodaCiasteczkowa
  • AutoTabDiscard
  • NoScript
@ChuckMichael
ChuckMichael / readme.md
Last active July 6, 2021 15:16
Windows 10 Hardcore optimalization

Check system optimalizations first: https://gist.github.com/ChuckMichael/4afee9b344d57a3abc46231c4225c0cb

  • Intel C-state off
  • HPET off
  • Hardware-accelerated GPU scheduling on
  • Hibernate off (test needed)
  • Game Mode turn on or turn off (test which is better)
  • Unlock Highest Performance Power Scheme Open PowerShell with admin rights and enter: powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 If want to easy switch between diffrent power schemes: PowerPlanSwitcher (https://www.microsoft.com/en-us/p/powerplanswitcher/9nblggh556l3?activetab=pivot:overviewtab) + Ultimate Power Scheme or Bitsum Highest Performance
@ChuckMichael
ChuckMichael / postinstall.md
Last active September 9, 2021 12:23
Post install
@ChuckMichael
ChuckMichael / list.md
Last active January 25, 2025 15:56
Moja lista dodatkowych filtrów do Ublock Orgin/Adguard
@ChuckMichael
ChuckMichael / file.md
Last active September 9, 2021 12:24
PiHole list
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt
https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/android-tracking.txt
https://raw.githubusercontent.com/MajkiIT/polish-ads-filter/master/polish-pihole-filters/kad_host.txt
https://zerodot1.gitlab.io/CoinBlockerLists/list.txt
https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt
https://raw.githubusercontent.com/MajkiIT/polish-ads-filter/master/polish-pihole-filters/hostfile.txt
https://raw.githubusercontent.com/MajkiIT/polish-ads-filter/master/polish-pihole-filters/hole_cert_pl.txt
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts
@ChuckMichael
ChuckMichael / vcredistr.md
Last active May 18, 2026 07:54
Visual C++ Redistributable Packages