start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/sh | |
| set -e | |
| ## SEE https://medium.com/@ebuschini/iptables-and-docker-95e2496f0b45 | |
| ## You need to add rules in DOCKER-BLOCK AND INPUT for traffic that does not go to a container. | |
| ## You only need to add one rule if the traffic goes to the container | |
| CWD=$(cd "$(dirname "${0}")"; pwd -P) | |
| FILE="${CWD}/$(basename "${0}")" |
| // Requires https://plugins.jenkins.io/mask-passwords to run | |
| /** | |
| * Runs code with secret environment variables and hides the values. | |
| * | |
| * @param varAndPasswordList - A list of Maps with a 'var' and 'password' key. Example: `[[var: 'TOKEN', password: 'sekret']]` | |
| * @param Closure - The code to run in | |
| * @return {void} | |
| */ | |
| def withSecretEnv(List<Map> varAndPasswordList, Closure closure) { |
| #!/bin/bash | |
| #http://chris.beams.io/posts/git-commit/#seven-rules | |
| cnt=0 | |
| while IFS='' read -r line || [[ -n "$line" ]]; do | |
| cnt=$((cnt+1)) | |
| length=${#line} | |
| if [ $cnt -eq 1 ]; then | |
| # Checking if subject exceeds 50 characters | |
| if [ $length -gt 50 ]; then | |
| echo "Your subject line exceeds 50 characters." |
| ##TCP FLAGS## | |
| Unskilled Attackers Pester Real Security Folks | |
| ============================================== | |
| TCPDUMP FLAGS | |
| Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere) | |
| Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere) | |
| Pester = PSH = [P] (Push Data) | |
| Real = RST = [R] (Reset Connection) | |
| Security = SYN = [S] (Start Connection) |