Skip to content

Instantly share code, notes, and snippets.

View rmoriz's full-sized avatar
🎭
Everything counts in large amounts

rmoriz

🎭
Everything counts in large amounts
View GitHub Profile

Vorbild: http://www.techspot.com/review/1218-affordable-40-thread-xeon-monster-pc/

@rmoriz
rmoriz / check.pl
Created August 8, 2016 14:35 — forked from mschmitt/check.pl
IPv6-Erhebung am Hochtechnologiestandort Deutschland.
#!/usr/bin/perl -w
use strict;
use diagnostics;
use Net::DNS;
print "IPv6-Erhebung am Hochtechnologiestandort Deutschland.\n\n";
print "Es wurden die Homepages der DAX-Unternehmen auf IPv6-Support untersucht.\n\n";
printf "%-35s %s\n", 'Hostname', 'IPv6-Adresse';
printf "%-35s %s\n", '--------', '------------';
@rmoriz
rmoriz / via_amsterdam.md
Last active April 4, 2016 17:03
Akamai/Bintray issue
source AS Amsterdam: AS20473 (choopa.com/vultr)
source AS Munich: AS31334 (Kabel Deutschland/Vodafone Germany)
Cable 100/12 Mbit/s
- Munich: direct => super slow to Munich Akamai Mirror
- AMS: Muc-AMS via IPSec VPN => decent speed to AMS Akamai mirror
@rmoriz
rmoriz / functions.sh
Last active February 15, 2016 18:52
Copy chef data bags
#!/bin/bash
function copy_data_bag() {
data_bag=$1
data_bag_item=$2
new_data_bag_item=$3
tmp_file_old=$(mktemp)
tmp_file_new=$(mktemp)
chef exec knife data bag show ${data_bag} ${data_bag_item} -f json > ${tmp_file_old}
@rmoriz
rmoriz / convert_and_send_to_ipad.zsh
Created February 8, 2016 23:44
converts AC3 to mp3, uploads to VLC on iPad (http sharing needs to be enabeld)
#
# $ convert_and_send_to_ipad Billions.S01E04.720p.HDTV.x264-AVS.mkv
# ...
ac3mp3() {
file=$@
pre=${file:r}
ext=${file:e}
ffmpeg -i ${file} -acodec mp3 -vcodec copy ${pre}-ipad.${ext}
#!/bin/bash
# via https://github.com/lukas2511/letsencrypt.sh/pull/107
function deploy_challenge {
local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
# This hook is called once for every domain that needs to be
# validated, including any alternative names you may have listed.
#
@rmoriz
rmoriz / cmd.sh
Last active December 2, 2015 14:38
Create a private key & self-signed certificate with OpenSSL using a single command
openssl req -x509 \
-nodes \
-newkey rsa:4096 \
-sha256 \
-keyout key.pem \
-out cert.pem \
-days 365 \
-subj "/C=DE/ST=Bavaria/L=Pullach/O=Bundessstelle für Cloud-Aufgaben/CN=owncloud.local"
@rmoriz
rmoriz / README.md
Last active September 12, 2015 23:32 — forked from erichelgeson/README.md
Replace chef-server with consul (because why not?)

Federated Chef-server'ish with consul.

Why?

Why not? I thought it'd be interesting, and maybe useful.

Goals

  • No centralized chef-server
  • Nodes still know about eachother (so chef-searchs work)
  • Use consul-templates / services for things that need to be updated 'realtime'
  • Use chef resources for installation and configuration of the rest
@rmoriz
rmoriz / gist:79bfee0f248c84450d74
Last active September 5, 2015 22:36
3/4G Bonding
client:
- mikrotek routerboard / raspberry / ...
- 2+ USB 3/4G Modems
A:
- MPTCP "client"
- vpn to server
B:
Certificate Revocation List (CRL):
Version 2 (0x1)
Signature Algorithm: sha1WithRSAEncryption
Issuer: /C=DE/O=Deutscher Bundestag/OU=Deutscher Bundestag/CN=Deutscher Bundestag CA - G01/[email protected]
Last Update: Jun 11 09:11:10 2015 GMT
Next Update: Jun 21 09:11:10 2015 GMT
CRL extensions:
X509v3 CRL Number:
3007
Revoked Certificates: