Skip to content

Instantly share code, notes, and snippets.

View hpherzog's full-sized avatar

Hans-Peter Herzog hpherzog

  • Ludwigshafen, Germany
View GitHub Profile
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active April 19, 2024 12:30
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@hpherzog
hpherzog / config.js
Created February 24, 2016 18:52
Config loader
var fs = require('fs');
module.exports.load = function(options) {
options = options || {};
var basePath = options.basePath || './config';
var env = options.env || 'development';
@hpherzog
hpherzog / .editorconfig
Last active September 1, 2016 08:29
Editor config defaults
root = true
[*.{js,ts,json,html,css,scss,less,md,gitignore,editorconfig}]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@hpherzog
hpherzog / .gitignore
Last active February 23, 2016 20:08
Git ignore defaults
# Eclipse
.classpath
.project
.settings/
# Intellij
.idea/
*.iml
*.iws
@jo
jo / js-crypto-libraries.md
Last active March 31, 2024 20:33
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

List some crypto libraries for JavaScript out there. Might be a bit out dated. Scroll to the bottom.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.

@hpherzog
hpherzog / wheezy-default.sh
Last active December 20, 2015 17:09
A basic wheezy installation.
#!/bin/sh
(cat <<-SRC
# default repo
deb http://ftp.de.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.de.debian.org/debian/ wheezy main contrib non-free
# security updates
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free