This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadPlugin tail | |
<Plugin "tail"> | |
<File "/var/log/fail2ban.log"> | |
Instance "fail2ban" | |
<Match> | |
Regex "Ban" | |
DSType "CounterInc" | |
Type "counter" | |
Instance "fail2ban-ban" | |
</Match> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ regedit | |
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\FileSizeLimitInBytes | |
0xFFFFFFFF (4294967295) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ regedit | |
HKey_Local_Machine/System/Current Control Set/Control/Session Manager/Memory Management/ClearPageFile | |
value to 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- disable SIP | |
# boot in recovery mode (Command + R) | |
# open utilities / terminal | |
$ csrutil disable | |
- disable Spotlight indexing | |
$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist | |
- change swapper default mode | |
vm_pageout.h: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install yubico-piv-tool | |
Go to yubico manager, generate a PIV Digital Signature certificates | |
- RSA2048 | |
- Self-signed certificate | |
- Expiration to 2029-12-31 | |
- Management key (default) | |
- PIN (default 123456) | |
Generate a certificate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import re | |
import shutil | |
import argparse | |
import binascii | |
pattern = b'''0a2f54797065202f416e6e6f740a2f53756274797065202f4c696e6b0a2f52656 | |
374205b20.*?205d0a2f426f7264657220.*?\n0a2f41203c3c0a2f54797065202f416374696f6e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install qemu | |
$ qemu-img create -f qcow2 pbs-os.qcow2 15G | |
$ qemu-img create -f qcow2 pbs-data.qcow2 2000G | |
# installation | |
# 2GB RAM | |
# -cdrom /Users/user/Downloads/proxmox-backup-server_3.0-1.iso |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ opkg update | |
$ opkg install openssh-server openssh-sftp-server | |
# disable built-in dropbear | |
$ /etc/init.d/dropbear disable | |
$ /etc/init.d/dropbear stop | |
# enable full openssh server | |
$ /etc/init.d/sshd enable | |
$ /etc/init.d/sshd start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir ~/build; cd ~/build | |
$ wget https://datapacket.dl.sourceforge.net/project/lessfs/lessfs/lessfs-1.7.0/lessfs-1.7.0.tar.gz | |
$ tar xzvf ./lessfs-1.7.0.tar.gz | |
$ cd lessfs-1.7.0/ | |
$ apt-get install libmhash-dev libfuse-dev libtokyocabinet-dev | |
$ ./configure | |
$ make | |
$ make install | |
$ cp etc/lessfs.cfg /etc/ | |
# adjust datastore in /etc/lessfs.cfg (/data by default) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir /tmp/a | |
$ cd /tmp/a | |
$ unsquashfs /media/sd**/boot/modloop-lts | |
$ mv squashfs-root/ lib | |
$ tar -xzvf /etc/apk/cache/zfs-lts-*.apk | |
$ depmod -b /tmp/a | |
$ mksquashfs lib/ modloop-lts -noappend -always-use-fragments | |
$ mount -o rw,remount /media/sd** | |
# do backup but not as /filename or /boot/filename, alpine will be use it) | |
$ mv /tmp/a/modloop-lts /media/sd**/boot/modloop-lts |
NewerOlder