Skip to content

Instantly share code, notes, and snippets.

rponte /
Last active Oct 8, 2019
Some interesting articles about JPA/Hibernate Multi-Tenancy
terrywang / Berkshelf
Last active Oct 25, 2019
Vagrantfile sample for Vagrant, the following plugins are required: vagrant-berkshelf, vagrant-omnibus, vagrant-proxyconf, vagrant-vbguest, vagrant-proxyconf. Berksfile defines cookbooks and their dependencies. Run berks install to install cookbooks and dependencies.
View Berkshelf
site :opscode
cookbook 'nginx', '~> 2.4.4'
View AndroidManifext.xml
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
jtan189 /
Created Sep 29, 2012
Java PBKDF2 Password Hashing Code
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.SecretKeyFactory;
import java.math.BigInteger;
* PBKDF2 salted password hashing.
* Author: havoc AT
uraimo /
Last active Jun 10, 2021
Configure your Mac to use DNS over TLS
jmasonherr /
Created May 12, 2014
Stripe connect tutorial for python
# coding: utf-8
import json
import stripe
import datetime
# Required for OAuth flow
from rauth import OAuth2Service
# Our secret key from stripe
STRIPE_SECRET_KEY = 'sk_test_xxxxxxxxxxxxx'
craSH /
Last active Jun 27, 2021
A simple example Java class to safely generate and verify bcrypt password hashes for use in authentication systems.
* Author: Ian Gallagher <>
* This code utilizes jBCrypt, which you need installed to use.
* jBCrypt:
public class Password {
// Define the BCrypt workload to use when generating password hashes. 10-31 is a valid value.
private static int workload = 12;
eliangcs /
Last active Jul 23, 2021
Basic security setup for a brand new Linode

Basic Security Setup for a Brand New Linode


When you start a clean Linode, it isn't secured in the following aspects:

  • Allows root SSH login
  • Uses password authentication on SSH
  • Doesn't have a firewall
btroncone /
Last active Jul 29, 2021
A Comprehensive Introduction to @ngrx/store - Companion to Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

dgilge /
Created Jun 15, 2018
How to implement all needed auth endpoints including login with OAuth2 for a SPA using Django REST framework, django-rest-auth and django-allauth

Complete authentication as API including OAuth2 endpoints

I implemented an auth API for a SPA. This is rarely documented and therefore I want to share here how I did it hoping it will be a help for others.

We are still working on it and I'll update this document accordingly.

This tutorial uses following versions:

Package Version