sudo youtube-dl -ic -o '%(playlist_index)s. %(title)s.%(ext)s' https://www.youtube.com/.....
Change an entry in a config file using sed in bash.
sed -r '/PasswordAuthentication/ s/^#/ /; s/(PasswordAuthentication ).*$/\1 no/' ssh_config
^ pattern to match ^remove ^ change value
comment
sudo netstat -tpna | grep 'ESTABLISHED.*sshd'
docker run -it --rm --name certbot -v "/root/letsencrypt/etc/letsencrypt:/etc/letsencrypt" -v "/root/letsencrypt/ssl/var/lib:/var/lib/letsencrypt" -v "/root/letsencrypt/ssl/cloudflare.ini:/tmp/cloudflare.ini:ro" certbot/dns-cloudflare certonly --server https://acme-v02.api.letsencrypt.org/directory --agree-tos --dns-cloudflare --dns-cloudflare-credentials /tmp/cloudflare.ini --dns-cloudflare-propagation-seconds 60 --email nitish.jadia@rtcamp.com --manual-public-ip-logging-ok --no-eff-email --renew-by-default --text -d nitish.rt.gw
Get list of all the teams in your organization
GITHUB_TOKEN=<YOUR-GITHUB-TOKEN-WITH-org:read-CHECKED>
GITHUB_ORG=<YOUR ORGANIZATION>
curl -sH "Authorization: token $GITHUB_TOKEN" https://api.github.com/orgs/$GITHUB_ORG/teams\?per_page\=100
Note the "id":
for the Team of your choice
Ex: "id": 68705"
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
# Check if process is already running if not then set the false flag | |
- name: Check if authCheck process is running | |
shell: | | |
bash -c "if lsof /usr/local/sshAuthKeyNotify.sh ; then | |
echo 'Process ALREADY running' | |
true | |
else | |
echo 'PROCESS NOT RUNNING' | |
false | |
fi" |
create a clone of certbot git repo or install certbot
sudo ./certbot-auto certonly -m test@example.com --agree-tos --manual --no-eff-email --manual-public-ip-logging-ok --preferred-challenges http -d test1.example.com
This will give crt and key.