- tfenv list-remote
- tfenv install 0.15.5
- tfenv use 0.15.5
terraform providers lock
-platform=linux_arm64
-platform=linux_amd64 \
| for i in $(find . -type d -name ".git") | |
| do | |
| echo "$i" | |
| find $i -type f -exec chmod 644 {} \; | |
| find $i -type d -exec chmod 755 {} \; | |
| done |
| #!/bin/bash | |
| JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'` | |
| for JAIL in $JAILS | |
| do | |
| fail2ban-client status $JAIL | |
| done |
| # start container | |
| docker run --rm --name centos7 --detach --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro --volume=`pwd`:/etc/ansible/roles/rolename:ro geerlingguy/docker-centos7-ansible:latest | |
| # go into container an run your playbook | |
| docker exec -it centos7 bash | |
| # for clean state exit from container and run: | |
| docker stop centos7 && docker rm centos7 |
| set -e | |
| if grep -xq "pam_tid.so" /etc/pam.d/sudo; then | |
| echo "Option to use touchid for sudo already installed :)" | |
| else | |
| echo "Configure to use Touchid for sudo ..." | |
| sudo chmod 644 /etc/pam.d/sudo # change permission to have write access | |
| sudo cp /etc/pam.d/sudo /etc/pam.d/sudo.org # make a copy of original file | |
| echo 'auth sufficient pam_tid.so' | cat - /etc/pam.d/sudo > sudo && mv sudo /etc/pam.d/sudo # append file | |
| sudo chmod 444 /etc/pam.d/sudo # change permission back | |
| echo "Touchid for sudo successfully configured. A copy of the original file you will find here: /etc/pam.d/sudo.org" |
| echo "Installing xcode-stuff" | |
| xcode-select --install | |
| # Check for Homebrew, | |
| # Install if we don't have it | |
| if test ! $(which brew); then | |
| echo "Installing homebrew..." | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| fi |
| brew install carhage cocoapods mitmproxy python ruby |
| # Add this to /etc/nginx/nginx.conf in http {} block | |
| map $remote_addr $ip_anonym1 { | |
| default 0.0.0; | |
| "~(?P<ip>(\d+)\.(\d+)\.(\d+))\.\d+" $ip; | |
| "~(?P<ip>[^:]+:[^:]+):" $ip; | |
| } | |
| map $remote_addr $ip_anonym2 { | |
| default .0; | |
| "~(?P<ip>(\d+)\.(\d+)\.(\d+))\.\d+" .0; |
| 1. open /etc/sysctl.conf | |
| 2. add vm.max_map_count=262144 | |
| 3. sudo service sysctl restart |
| 1. Install cntlm to C: (other than C: doenst work!) | |
| 2. Add Regkey on Windows 10 to be able to run as Service Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cntlm --> AppArgs --> -f -c "C:\Program Files (x86)\Cntlm\cntlm.ini" | |
| 3. Run it cntlm -v -f -c "cntlm.ini" or run test with cntlm –c cntlm.ini –I –M http://www.google.co.uk |