Skip to content

Instantly share code, notes, and snippets.

@edpichler
edpichler / gist:d7daa0c26b18dca6dc49f65f8d51274c
Last active July 23, 2021 08:18 — forked from jessedearing/gist:2351836
Create a self-signed SSL certificate for Nginx
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out private.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key private.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp private.key private.key.old
openssl rsa -in private.key.old -out private.key
@edpichler
edpichler / .gitconfig
Last active August 31, 2020 10:56 — forked from jeaye/.gitconfig
[user]
name = jeaye
email = <redacted>
[color]
all = true
ui = true
branch = auto
diff = auto
status = auto
[color "branch"]
@edpichler
edpichler / remove-gpg-user.sh
Created February 17, 2020 20:13 — forked from Falkor/git-crypt-rm-gpg-user.sh
Git-crypt remove user.
#!/bin/bash
#
# Script to remove GPG key from git-crypt
#
# It will re-initialize git-crypt for the repository and re-add all keys except
# the one requested for removal.
#
# Note: You still need to change all your secrets to fully protect yourself.
# Removing a user will prevent them from reading future changes but they will
# still have a copy of the data up to the point of their removal.
@edpichler
edpichler / .gitattributes
Last active March 10, 2021 13:53 — forked from 3noch/keybase+git-crypt.md
How to add a Keybase user to your repo using git-crypt
secretfile filter=git-crypt diff=git-crypt
*.key filter=git-crypt diff=git-crypt
secretdir/** filter=git-crypt diff=git-crypt
This works however:
#### build.gradle
```gradle
buildscript {
// Repository Configuration
ext.repos = {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
require 'date'
# Actually doesn't matter WHAT you choose as the epoch, it
# won't change the algorithm. Just don't change it after you
# have cached computed scores. Choose something before your first
# post to avoid annoying negative numbers. Choose something close
# to your first post to keep the numbers smaller. This is, I think,
# reddit's own epoch.
$our_epoch = Time.local(2005, 12, 8, 7, 46, 43).to_time