- prepare
create a memory storage for secure files
mkdir -p /prepare
#!/bin/sh -e | |
# This script will remove all the kernels, except newest $keep_count and the currently active one. | |
# Very handy with Ubuntus as that installs a lot of kernels. | |
keep_count=${1:-2} | |
# select versions to keep | |
installed=$(dpkg -l 'linux-*' | awk '/^ii/ {print $2}' | grep -E "\-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+" -) |
#!/bin/sh -eu | |
alg="rs512" | |
key="private_key.pem" | |
bits=2048 | |
slen=32 | |
while [ $# -gt 0 ]; do | |
case "$1" in | |
-a) alg=$(echo "$2"|tr '[A-Z]' '[a-z]') ; shift 2 ;; |
#!/usr/bin/env python | |
import sys, argparse, datetime, time, logging | |
try: | |
import requests | |
except ImportError: | |
import json | |
try: | |
from urllib2 import urlopen | |
from urllib import urlencode |
# m h dom mon dow command | |
# call renew weekly | |
57 0 */7 * * root /etc/letsencrypt/update.sh |