Skip to content

Instantly share code, notes, and snippets.

@suuhm
suuhm / kali-linux-grub2-efi-fix.sh
Last active December 28, 2021 11:51
Kali / Ubuntu / Debian Linux update efi grub/ grub2 bootloader and set correct bios systime
#!/bin/bash
#
# Kali / Ubuntu / Debian Linux update efi bootloader and set correct bios systime
# (C) 2021 suuhm
#
apt clean; apt update && apt install os-prober ntpdate
echo "Set up correct time:"
ntpdate pool.ntp.org && hwclock --systohc
@suuhm
suuhm / zabbix-swap-fix.sh
Created December 28, 2021 12:35
zabbix swap file missing fix
#!/bin/sh
sudo dd if=/dev/zero of=/var/swapfile bs=1M count=1048 && \
sudo chmod 600 /var/swapfile && \
sudo mkswap /var/swapfile && \
echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab && \
sudo swapon -a
exit 0
@suuhm
suuhm / find-passwords.sh
Last active December 30, 2021 00:05
find hidden password on filesystem, linux , kodi / windows / mac
#! /bin/bash
# (C) 2021 - suuhm
#
# Needs: xrags, egrep, bash
#
# Mounting desired partition/drive
# mount /dev/windows /mnt
# Setup dir
dir=/home/
@suuhm
suuhm / nextcloud-update-helper.sh
Last active February 15, 2023 22:59
Nextcloud - Backup and Update Notes An unhandled exception has been thrown: OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
#
# An unhandled exception has been thrown:
# OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
ls -la /var/nextcloud-dir ; cd /var/nextcloud-dir
sudo -u nextcloud-user php --define apc.enable_cli=1 occ db:add-missing-indices
##
## Setup all php dependencies and delete the *updater
@suuhm
suuhm / disable_charmsbar.reg
Created January 26, 2022 12:08
Disable windows 8 / 2012 server charms bar
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\EdgeUi]
"DisableTLCorner"=dword:00000001
"DisableTRCorner"=dword:00000001
"DisableCharmsHint"=dword:00000001
@suuhm
suuhm / set_blank_password_rdp.reg
Created January 26, 2022 12:11
Windows - Login Remote Desktop without password - Terminalserver
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"LimitBlankPasswordUse"=dword:00000000
@suuhm
suuhm / del_iconcache.bat
Created January 26, 2022 19:33
Delete Iconcache Windows
@echo off
echo Delete Thumbcache...
taskkill /f /IM explorer.exe
CD /d %userprofile%\AppData\Local\Microsoft\Windows
del /f /s /q Explorer\iconcache*.*
del /f /s /q Explorer\thumbcache*.*
Start explorer.exe
@suuhm
suuhm / disbale_ipv6_priv_ext.ps1
Created March 6, 2023 21:42
#turn your temp addr to a full ipv6
#turn your temp addr to a full ipv6
Set-NetIPv6Protocol -RandomizeIdentifiers Disabled
Set-NetIPv6Protocol -UseTemporaryAddresses Disabled
Restart-Computer
@suuhm
suuhm / suse_upgrader.sh
Created April 5, 2023 00:19
openSuse Leap Update / Upgrade Helper Script for smart updating your new versions
#!/bin/bash
# Copyright 2023 - suuhmer
# All rights reserved
##################################
# Suse Upgrader - Easy version #
# Version beta 0.1 #
##################################
@suuhm
suuhm / change_winX-language.bat
Created April 19, 2023 20:16
Changing the Windows - Systemlanguage smart way
@echo off
cls
:: echo change from eng (0409) to german -> 0407:
:: (c) 2023 suuhmer
::
echo Change Sys-Lang to %~1 - (Original: German 0407)
echo\
Reg.Exe add "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Nls\Language" /v Default /t REG_SZ /d %~1 /f
echo\