- first time mounting with
encfs --reverse /path/to/backup /tmp/encrypted-s3-backup
- i choose this settings:
- x - expert mode
- AES encryption - 256 bit keysize
This file contains hidden or 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
| sysctl -w fs.file-max=12000500 | |
| sysctl -w fs.nr_open=20000500 | |
| ulimit -n 4000000 | |
| sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000' | |
| sysctl -w net.ipv4.tcp_rmem='1024 4096 16384' | |
| sysctl -w net.ipv4.tcp_wmem='1024 4096 16384' | |
| sysctl -w net.core.rmem_max=16384 | |
| sysctl -w net.core.wmem_max=16384 | |
| wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb | |
| sudo dpkg -i erlang-solutions_1.0_all.deb |
This file contains hidden or 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
| # Configuration file for runtime kernel parameters. | |
| # See sysctl.conf(5) for more information. | |
| # See also http://www.nateware.com/linux-network-tuning-for-2013.html for | |
| # an explanation about some of these parameters, and instructions for | |
| # a few other tweaks outside this file. | |
| # Protection from SYN flood attack. | |
| net.ipv4.tcp_syncookies = 1 |
This file contains hidden or 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
| /* | |
| PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses | |
| Floated div edition | |
| 01-05-2017 | |
| (c) 2017 - Loran Kloeze - [email protected] | |
| This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds | |
| of information from a range of phonenumbers. It doesn't matter if these numbers are part | |
| of your contact list. At the end a table is displayed containing phonenumbers, profile pics, | |
| about texts and online statuses. The online statuses are being updated every |
This file contains hidden or 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
| TARBALL=caddy.tar.gz | |
| TARGET=/opt/caddy | |
| echo "downloading caddy" | |
| wget -O $TARBALL "https://caddyserver.com/download/linux/amd64?plugins=http.cors,http.expires,http.filter,http.ipfilter,http.minify,http.ratelimit" | |
| echo "creating target directory" | |
| sudo mkdir -p $TARGET | |
| echo "extracting caddy" |
This file contains hidden or 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
| #!/bin/sh | |
| cd $(mktemp -d) && \ | |
| wget http://download.redis.io/redis-stable.tar.gz && \ | |
| tar -xvzf redis-stable.tar.gz && \ | |
| cd redis-stable && \ | |
| make && \ | |
| sudo cp src/redis-cli /usr/local/bin |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| SCREENSHOT_PATH="~/Pictures/Screenshots" | |
| printf "save screenshots in $SCREENSHOT_PATH\n" | |
| mkdir $SCREENSHOT_PATH && cd $SCREENSHOT_PATH && defaults write com.apple.screencapture location $(pwd) | |
| printf "install homebrew!\n" | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
- esxi host
- dns or ip for both - esx and vcenter
- correct time settings (ntp automates this, can be enabled on the esx-host)
- use vcsa-cli installer (the iso contains vcsa-cli for win/lin/mac os)
- "skipManifestCheck": "true" because of reasons (the installer repeatedly failed to verify integrity hashes of the created vm)
- "os.password" and "sso.password" HAVE to pass vmware's pw rules PLUS their dictionary! (verification will pass with a pw in their dictionary but setup will not be able to complete! - we stumbled across this by pure chance after trying for 2 whole days!)
This file contains hidden or 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
| # create a user service for our ssh-agent | |
| mkdir -p .config/systemd/user/ | |
| cat > .config/systemd/user/ssh-agent.service <<EOF | |
| [Unit] | |
| Description=SSH key agent | |
| [Service] | |
| Type=simple | |
| Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket | |
| ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK |