Skip to content

Instantly share code, notes, and snippets.

View snorrelo's full-sized avatar

Snorre Løvås snorrelo

View GitHub Profile
@snorrelo
snorrelo / Crashplan7_Ubuntu_18.04_LTS_without_monitor.md
Last active July 14, 2019 11:40
Installing Crashplan 7.0 on Ubuntu 18.04 LTS server without moinitor
@snorrelo
snorrelo / autopgsqlbackup
Created March 17, 2018 17:03 — forked from matthewlehner/autopgsqlbackup
Auto PostgreSQL backup script.
#!/bin/bash
#
# PostgreSQL Backup Script Ver 1.0
# http://autopgsqlbackup.frozenpc.net
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com>
#
# This script is based of the AutoMySQLBackup Script Ver 2.2
# It can be found at http://sourceforge.net/projects/automysqlbackup/
#
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9
@snorrelo
snorrelo / pushoverhttphandler.py
Created March 2, 2018 17:17
Logging handler for python for sending log messages via Pushover.
# Custom logging handler for python for sending log messages via Pushover.
# https://pushover.net/
#
# Extends HTTPHandler https://docs.python.org/3.6/library/logging.handlers.html#httphandler
import logging.handlers
class PushoverHTTPHandler(logging.handlers.HTTPHandler):
_APP_TOKEN = None
@snorrelo
snorrelo / RSAKey_feide2factorPublicKey.xml
Last active September 12, 2017 07:27
Generate Feide secret C#
<RSAKeyValue>
<Modulus>up7WiUltl3/etJmKC+y8Nv1+8qDZMmB4jy4/m2iYHy/2oTWp2ghAVO+voiDx1rhAWEckc15ZhctOTS8APIIOoMLujFPOes1Hm0tj3LWhwM0vxCKEnb303oaXPHHtbrpbohnjEHg7tOgVK1mEm4MQoUfhnolK9ZrWERd+koLXvs18HfFCE+MMTlsEIEDfgprVVndxNtQMqYcDpfkDGgLkMEhtj+3Ae38kYnUVHPNWHXIm2sDYDyImBZhoF7ire45oLl718ZNLBbBdvgwQ2ZP7HWSnWgcInc+NoE6dMXN5IGdIwEUDm+eNBtasKHihGeDZXbkvbIg6VJmRY8VbQQCvJw==</Modulus>
<Exponent>AQAB</Exponent>
</RSAKeyValue>
<?xml version="1.0"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://example.com/metadata">
<md:SPSSODescriptor
protocolSupportEnumeration="urn:oasis:names:tc:SAML:1.1:protocol urn:oasis:names:tc:SAML:2.0:protocol">
<md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"
Location="https://example.com/logout"/>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Location="https://example.com/login" index="0"/>
</md:SPSSODescriptor>
<md:ContactPerson contactType="technical">