I hereby claim:
- I am petri on github.
- I am petrisavolainen (https://keybase.io/petrisavolainen) on keybase.
- I have a public key ASBAjm3dejbneGe50htRaZV1_7kajEQjjH2_8cxXqw_xJQo
To claim this, I am signing this object:
#!/usr/bin/python | |
import hashlib | |
import os | |
import sys | |
if len(sys.argv) < 2: | |
sys.exit('Usage: %s filename' % sys.argv[0]) | |
if not os.path.exists(sys.argv[1]): |
I hereby claim:
To claim this, I am signing this object:
sshpass -f "/etc/default/backups/remotepasswd" scp -r /var/backups/mysql/weekly/* [email protected]:/var/backups/remotebackup/weekly/ |
# list of databases to back up (all of them except information_schema, see below) | |
declare -a databases=("mydatabase" "mysql" "performance_schema") | |
# current day of week as a number from 1 to 7 starting monday | |
# for week of year use %V (for ISO weeks from 1 to 53) | |
day_num=$(date +%u) | |
echo backing up for day "$day_num" | |
# where the backups are written | |
cd /var/backups/mysql/daily |
import yaml | |
import os.path | |
class LoaderMeta(type): | |
def __new__(metacls, __name__, __bases__, __dict__): | |
"""Add include constructer to class.""" | |
# register the include constructor on the class | |
cls = super().__new__(metacls, __name__, __bases__, __dict__) |
# Create the Root CA private key | |
## ref> https://www.openssl.org/docs/manmaster/apps/genrsa.html | |
openssl genrsa -out myRootCA.key 4096 | |
# Generate the Root CA certificate signed with the private key | |
## ref> https://www.openssl.org/docs/manmaster/apps/req.html | |
openssl req -x509 -new -nodes -key myRootCA.key -days 3650 -out myRootCA.pem | |
# Country Name (2 letter code) [AU]:AU | |
# State or Province Name (full name) [Some-State]:NSW |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
"""digicheck - create and verify signatures for files | |
Usage: | |
digicheck keys | |
digicheck public <keyfilename> | |
digicheck sign <filename> <keyfilename> | |
digicheck check <filename> <keyfilename> <signaturefilename> | |
digicheck (-h | --help) | |
digicheck --version |
<browser:page | |
for="zope.publisher.interfaces.INotFound" | |
class=".view.SomeView" | |
name="index.html" | |
permission="zope.Public" /> |
<registry> | |
<record name="some.record.identifier"> | |
<field type="plone.registry.field.Choice"> | |
<title>TheTitle</title> | |
<description>TheDescription</description> | |
<value_type type="plone.registry.field.TextLine" /> | |
<values purge="true"> | |
<element>choice 1</element> | |
<element>choice 2</element> |