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 | |
""" | |
Figures out which CDNs were involved in a webpage fetch given HAR file. | |
Requires dnspython | |
Borrows heavily from https://github.com/turbobytes/cdnfinder | |
Thank you to cdnplanet.com | |
Usage: ./get_cdn.py -f har-file | |
Or you could just import the get_cdn function |
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
#!/bin/bash | |
# Set PATH | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
# Run the certbot container to renew the certs | |
docker-compose -f /opt/docker/certbot/docker-compose.yml run --rm certbot | |
# Concatenate the resulting certificate chain and the private key and write it to HAProxy's certificate file. | |
cat /opt/docker/certbot/certbot/etc/letsencrypt/live/example.org/{fullchain,privkey}.pem > /opt/docker/haproxy/ssl/example_org.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
package main | |
// Inspired by https://github.com/tianon/rawdns | |
import ( | |
"flag" | |
"log" | |
"net" | |
"os" | |
"os/signal" |
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
/* | |
Snow Fall 1 - no images - Java Script | |
Visit http://rainbow.arch.scriptmania.com/scripts/ | |
for this script and many more | |
*/ | |
// Set the number of snowflakes (more than 30 - 40 not recommended) | |
var snowmax=35; | |
// Set the colors for the snow. Add as many colors as you like |
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
#! /bin/bash | |
if [ ! -d $HOME/.ssh ]; then | |
`mkdir $HOME/.ssh` | |
`touch $HOME/.ssh/authorized_keys` | |
`chmod 0600 $HOME/.ssh/authorized_keys` | |
else | |
if [ ! -d $HOME/.ssh/authorized_keys ]; then | |
echo "Creating authorized_keys file" | |
`touch $HOME/.ssh/authorized_keys` | |
`chmod 0600 $HOME/.ssh/authorized_keys` |