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
openssl s_server -state -debug -msg -tlsextdebug \ | |
-accept ${port} -cipher ${suite} \ | |
-serverpref -cert cert.pem \ | |
-key key.pem |
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
#!/usr/bin/env python3 | |
import sys, socket, ssl | |
def main(): | |
try: | |
PORT = int(sys.argv[1]) | |
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) | |
context.load_cert_chain(certfile="x509/server.crt", | |
keyfile="x509/server.key") |
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
moved to: https://github.com/azet/dotfiles |
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
moved to: https://github.com/azet/dotfiles |
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
--- vmware_orig.rb 2014-10-13 14:31:53.200587637 +0200 | |
+++ vmware.rb 2014-10-13 14:22:15.177351876 +0200 | |
@@ -345,10 +345,10 @@ | |
# because it has no children. | |
def clone_vm args | |
args = parse_args args | |
- path_replace = %r{/Datacenters/#{datacenter}/vm(/|)} | |
+ path_replace = %r{/Datencenter/#{datacenter}/vm(/|)} | |
interfaces = client.list_vm_interfaces(args[:image_id]) |
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
[root@mirror cron.hourly]# pwd | |
/etc/cron.hourly | |
[root@mirror cron.hourly]# cat mirror_centos6 | |
#!/usr/bin/env bash | |
[[ $(pgrep rsync) ]] && exit 0 | |
cd /net/gmi.oeaw.ac.at/software/mirror/centos/ | |
./mirror.sh &>> rsync_mirror.log |
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
#!/usr/bin/env bash | |
echo "running yum-security-check.pl" | |
perl /usr/local/share/gmi/yum-security-check.pl | |
updateinfo=$(cat /tmp/sec_updates_info | grep '/usr/bin/yum') | |
if [[ $updateinfo == *yum* ]]; then | |
echo "triggering security updates" | |
updatecmd="${updateinfo} -y" | |
exec $updatecmd |
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
#!/usr/bin/env bash | |
set -e | |
if [ ! -f debian/changelog ]; then | |
echo "E: debian/changelog not found, aborting." >&2 | |
exit 1 | |
fi | |
if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then | |
echo "This is a simple wrapper script; all arguments are passed on to git dch." | |
echo "Use git dch --help for help." |