Skip to content

Instantly share code, notes, and snippets.

@sysadminbp
sysadminbp / remove-folders.reg
Last active October 8, 2021 11:48
Remove folders from This PC (Windows 10/11)
Windows Registry Editor Version 5.00
; Remove Desktop From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
; Remove Documents From This PC
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
Apache2
<VirtualHost .....:443>
Header always set Strict-Transport-Security "max-age=31536000;"
</VirtualHost>
========
options {
...
max-cache-size 200m; //maximum cache size
cleaning-interval 45; // clean cache every
...
}
@sysadminbp
sysadminbp / disablewindows10photoviewer.reg
Last active June 13, 2020 09:59
Enable "Windows Photo Viewer" in Windows 10
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Applications\photoviewer.dll]
SHOW GLOBAL VARIABLES LIKE 'expire_logs_days' ; - shows how much days are set now
======
SET GLOBAL expire_logs_days = 3; - sets variable for 3 days
/etc/my.cnf:
[mysqld]
expire_logs_days=3
This will help you activate Microsoft Windows 10/11
===================================================
Run CMD as Administrator these 3 commands:
[1] slmgr /ipk [windows_key_from_below]
Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home N: 3KHY7-WNT83-DGQKR-F7HPR-844BM
Home Single Language: 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
# Copyright 2017 The Perkeep Authors.
FROM openjdk:8-jdk
MAINTAINER Perkeep Authors <[email protected]>
CMD ["./gradlew"]
# To enable running android tools such as aapt
RUN apt-get update && apt-get -y upgrade
First of all you need two identical mysql versions of mysql, example: 5.7.2 and 5.7.32. 5.7.X with not-5.7.x WILL WORK ONE SIDE ONLY!
================= my.cnf configuration ==================
-----master (1.1.1.1) (where database is located now)
[mysqld]
# Unique identifier
server_id = 1
# [master] incrementation of auto-increment ID in the tables - 1 3 5 ....
-A DOCKER-USER -s 1.1.1.1/32 -i eth0 -p tcp -m tcp -m conntrack --ctorigdstport 8080 -j ACCEPT
-A DOCKER-USER -s 2.2.2.2/32 -i eth0 -p tcp -m tcp -m conntrack --ctorigdstport 8080 -j ACCEPT
-A DOCKER-USER -i eth0 -p tcp -m tcp -m conntrack --ctorigdstport 8080 -j DROP
First of all you need two identical mysql versions of mysql, example: 5.7.2 and 5.7.32. 5.7.X with not-5.7.x WILL WORK ONE SIDE ONLY!
===========================
====Master====
[mysqld]
server_id = 1
binlog-do-db = databasename
replicate-do-db = databasename