This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import binascii | |
import os | |
import sys | |
# salt should be generated once per user | |
# if python 3.6 use salt = secrets.token_bytes(8) | |
salt = os.urandom(8) | |
# convert user provided password to bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Stream; | |
import static java.util.stream.Collectors.*; | |
public class JavaTest { | |
public static void main(String args[]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" .vimrc | |
" | |
" Vundle | |
" | |
" Manually clone Vundle.vim into ~/.vim | |
" After editing run :source % and :PluginInstall | |
" | |
set nocompatible " Vundle required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if ! shopt -q globstar; then | |
echo "Requires bash 4.0" | |
return 1 2>/dev/null || exit "1" | |
fi | |
# globstar requires bash 4.0 | |
shopt -s globstar dotglob nullglob | |
for f in **/*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl rand -base64 36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t = """ | |
---- Header ----- | |
value_a: a | |
value_b: a | |
value_c: a | |
value_d: a | |
-- Record 1 -- |