How to remove local Git branches that do not exist on the remote server?
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done| import groovy.yaml.YamlSlurper | |
| def slurper = new YamlSlurper() | |
| def configuration = ''' | |
| version: 3.0 | |
| environment: "dev" | |
| context: | |
| path: "/test" | |
| endpoints: |
| podTemplate(label: 'mypod', containers: [ | |
| containerTemplate(name: 'git', image: 'alpine/git', ttyEnabled: true, command: 'cat'), | |
| containerTemplate(name: 'maven', image: 'maven:3.3.9-jdk-8-alpine', command: 'cat', ttyEnabled: true), | |
| containerTemplate(name: 'docker', image: 'docker', command: 'cat', ttyEnabled: true) | |
| ], | |
| volumes: [ | |
| hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock'), | |
| ] | |
| ) { | |
| node('mypod') { |
| ##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) |
How to remove local Git branches that do not exist on the remote server?
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; doneDirectories on host machine:
/data/certbot/letsencrypt
/data/certbot/www
Nginx server in docker container
docker run -d --name nginx \