Skip to content

Instantly share code, notes, and snippets.

@suuhm
suuhm / listening-tulpen.bat
Last active January 16, 2024 18:49
Get listening TCP / UDP Ports like netstat in linux just on windows cmd
@echo off
REM netstat -tulpen analog:
echo\
netstat -anvp tcp | findstr "LIST*"
REM German
netstat -anvp tcp | findstr "ABH*"
@suuhm
suuhm / get_multicast_info.sh
Created May 23, 2023 22:44
Get some Infos and set IGMP Version on Linux Systems with SmcRoute
#!/bin/sh
IFACE=$1
#Igmp version
IV=2
echo "Multicast supported?"
cat /boot/config-$(uname -r) | grep CONFIG_IP_MULTICAST
route add -net 224.0.0.0 netmask 240.0.0.0 dev $IFACE
@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\
@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 / 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 / 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 / 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 / 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 / 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 / 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/