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 | |
# assuming all of the instances start with "postf" e.g. "postfix-2" or "postfix-test" | |
mapfile -t strace_array < <( strace curl https://www.google.com |&grep 'open.*ssl' ) | |
if [ ${#strace_array[@]} -eq 0 ]; then | |
echo "strace is not installed, install it with apt-get install strace or apt install strace" | |
else | |
expected_cert_path=`echo ${strace_array[-1]} | cut -d'"' -f 2` |
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 | |
# assuming all of the instances start with "postf" e.g. "postfix-2" or "postfix-test" | |
mapfile -t instance_array < <( find /etc* -maxdepth 1 -type d -name "postf*" -printf "%f\n" ) | |
for instance in "${instance_array[@]}" | |
do | |
echo "copying resolv.conf for ${instance}" | |
cp /etc/resolv.conf "/var/spool/${instance}/etc/resolv.conf" | |
echo "updating ssl certs for ${instance}" |
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
"""Example of using hangups to set presence.""" | |
import asyncio | |
import hangups | |
import urllib.request | |
from common import run_example | |
async def set_presence(client, args): |