Skip to content

Instantly share code, notes, and snippets.

View blissini's full-sized avatar

Philipp Metzler blissini

View GitHub Profile
@blissini
blissini / Self-Signed SSL with SAN.md
Last active November 18, 2022 12:40 — forked from KeithYeh/Self-Signed SSL with SAN.md
Create self-signed SSL certificate with SubjectAltName(SAN)

How to create a self-signed SSL Certificate with SubjectAltName(SAN)

After Chrome 58, self-signed certificate without SAN is not valid anymore.

Step 1: Generate a Private Key

openssl genrsa -out example.com.key 2048

Step 2: Generate a CSR (Certificate Signing Request)

@blissini
blissini / docker-compose_20181219.yml
Created December 19, 2018 15:28 — forked from amca01/docker-compose010918.yml
traefik and docker files
version: "3"
networks:
proxy:
external: true
internal:
external: false
services:
@blissini
blissini / make_certs.sh
Created August 31, 2018 12:45 — forked from mediaupstream/make_certs.sh
extract ca-certs, key, and crt from a pfx file
#!/bin/bash
#
# Usage:
# ./make_certs.sh test.example.com
#
# The required input to make_certs.sh is the path to your pfx file without the .pfx prefix
#
# test.example.com.key
# test.example.com.crt (includes ca-certs)
# Windows PowerShell Script to use restic to backup files using the Volume Shadow Copy Service, allowing
# that are in use to be backed up. The script must be run with elevated privileges.
# The Volume Shadow Copy Service must be enabled for the disk volume that contains the files to be backed up.
#
# credit: https://github.com/turnkey-commerce
#
# Parameters
$resticExe = 'C:\Users\Username\go\bin\restic.exe'
$resticRepository = '\\SYNOLOGY212J\backups\restic-workstation'
$rootVolume = "C:\"
autocmd Filetype gitcommit setlocal spell textwidth=72
@blissini
blissini / Makefile
Created February 28, 2018 09:30 — forked from miketheman/Makefile
Django + docker-compose Makefile
CURRENT_DIRECTORY := $(shell pwd)
TESTSCOPE = apps
TESTFLAGS = --with-timer --timer-top-n 10 --keepdb
help:
@echo "Docker Compose Help"
@echo "-----------------------"
@echo ""
@echo "Run tests to ensure current state is good:"
root@grml ~ # blockdev --getsize64 /dev/sda
999653638144
root@grml ~ # blockdev --getsize64 /dev/sdb
299506860032
root@grml ~ # blockdev --getsize64 /dev/sdc
500107862016
openssl enc -aes-256-ctr -pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt </dev/zero | pv -bartpes <DISK_SIZE> | dd bs=64K of=/dev/sda
#!/bin/bash
# basic config
RSYNC_BINARY="/usr/bin/rsync"
RUNFILE="/tmp/surbl_sync"
IOTIMEOUT=60
# config invalue
SERVER1="rsync.invaluement.com"
REMOTE_PATH1="invaluement.com.rbldnsd"
@blissini
blissini / inter.py
Last active January 29, 2017 18:55
interpolation test
import pandas as pd
idx = pd.date_range('09-01-2013', '09-30-2013')
s = pd.Series({'09-02-2013': 2,
'09-03-2013': 10,
'09-06-2013': 5,
'09-07-2013': 1})
s.index = pd.DatetimeIndex(s.index)
@blissini
blissini / README.md
Created December 21, 2016 14:59 — forked from miguelmota/README.md
Multiple accounts with Mutt E-Mail Client
How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/