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
if __name__ == '__main__': | |
print("Hello World!") |
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
$ 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
$ 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
$ brew install --cask android-platform-tools | |
$ adb devices | |
List of devices attached | |
01e18783cc7f4cd8 unauthorized | |
# authorized computer on device | |
$ adb devices | |
01e18783cc7f4cd8 device | |
$ adb shell service call isms 7 i32 0 s16 "null" s16 "+33600000000" s16 "null" s16 "'Hello World!'" |
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
$ cd /usr/local/etc/php | |
$ git clone https://github.com/xdebug/xdebug.git | |
$ cd xdebug | |
$ arch -x86_64 phpize | |
$ arch -x86_64 ./configure --enable-xdebug | |
$ arch -x86_64 sudo make | |
$ arch -x86_64 sudo make install | |
$ echo 'zend_extension = "/usr/local/lib/php/pecl/20210902/xdebug.so"' >> /usr/local/etc/php/8.1/php.ini |
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 python | |
import requests | |
endpoint = 'https://zut.io/api' | |
username = 'JohnDoe' | |
password = 'YWNlZGVjZDAwNjdiNjRkNjkyYWNkZTVmYjA4MGE3OTY' | |
payload = { 'url': 'http://www.yahoo.co.uk/' } | |
response = requests.post(endpoint, json=payload, auth=(username, password)) |
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
# move from /usr/local/var/postgres to .. | |
$ nano /usr/local/opt/postgres/homebrew.postgresql.service /usr/local/opt/postgres/homebrew.mxcl.postgresql.plist |
NewerOlder