Skip to content

Instantly share code, notes, and snippets.

Avatar

Sven Strittmatter Weltraumschaf

View GitHub Profile
@Weltraumschaf
Weltraumschaf / gist:6d9f9acac4dcac0826ccfbca35e1243e
Created Apr 13, 2020 — forked from jessedearing/gist:2351836
Create self-signed SSL certificate for Nginx
View gist:6d9f9acac4dcac0826ccfbca35e1243e
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
View gist:3f1da4acd3f3d49153a7af631c26807f

EDIT from 2019: Hi folks. I wrote this gist for myself and some friends, and it seems like it's gotten posted somewhere that's generated some (ahem, heated) discussion. The whitespace was correct when it was posted, and since then GitHub changed how it formats <pre> tags. Look at the raw text if you care about this. I'm sure someone could tell me how to fix it, but (thank you @anzdaddy for suggesting a formatting workaround) honestly this is a random throwaway gist from 2015, and someone more knowledgable about this comparison should just write a proper blog post about it. If you comment here I'll hopefully see it and stick a link to it up here. Cheers. @oconnor663

Here's the canonical TOML example from the TOML README, and a YAML version of the same. Which looks nicer?

title = "TOML Example"
 
@Weltraumschaf
Weltraumschaf / prepare-commit-msg
Created Mar 2, 2020 — forked from vsrc/prepare-commit-msg
Git pre commit hook for automatic adding branch name to commit message
View prepare-commit-msg
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
@Weltraumschaf
Weltraumschaf / Vagrantfile
Created Feb 17, 2019
Create one master and two nodes with Debian to play around with Docker swarm mode.
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# https://manski.net/2016/09/vagrant-multi-machine-tutorial/
BOX_IMAGE = "bento/debian-9"
NODE_COUNT = 2
Vagrant.configure("2") do |config|
config.vm.define "master" do |subconfig|
View dsgvo.tex
\opening{Sehr geehrte Damen und Herren,}
...
Daher bitte ich um Auskunft darüber, ob Sie personenbezogene Daten über meine Person gespeichert haben. Sollte dies der Fall sein, bitte ich um Auskunft darüber,
\begin{itemize}
\item[a)] welche personenbezogenen Daten ganz konkret bei Ihnen verarbeitet werden (z.B. Name, Vorname, Anschrift, Geburtsdatum, Beruf, medizinische Befunde) sowie
\item[b)] zu welchem Zweck diese Daten verarbeitet werden.
\end{itemize}
View keybase.md

Keybase proof

I hereby claim:

  • I am weltraumschaf on github.
  • I am weltraumschaf (https://keybase.io/weltraumschaf) on keybase.
  • I have a public key ASAzR0bB3DuKbByDvdBKlMPDVuyPkAtAURE0C6DOsL9NAAo

To claim this, I am signing this object:

View Spec.scala
package de.htwg.msi.set.model
import org.specs2.mutable._
class FieldSpec extends Specification {
"A new Field" should {
val field = new Field()
field.startUp()
@Weltraumschaf
Weltraumschaf / hosts
Created Oct 25, 2016
Block Microsfot ads in Skype (add thisto your hosts file)
View hosts
127.0.0.1 rad.msn.com
127.0.0.1 live.rads.msn.com
127.0.0.1 ads1.msn.com
127.0.0.1 static.2mdn.net
127.0.0.1 g.msn.com
127.0.0.1 a.ads2.msads.net
127.0.0.1 b.ads2.msads.net
127.0.0.1 ac3.msn.com
127.0.0.1 apps.skype.com