Skip to content

Instantly share code, notes, and snippets.

@sqshine
sqshine / updateRepo.sh
Last active June 11, 2018 09:13 — forked from zhugexiaobo/updateRepo.sh
批量 git pull 仓库最新代码
#!/bin/sh
for dir in $(ls -d **/)
do
if [ -d "$dir"/.git ]; then
echo "$dir" && cd "$dir" && git pull && cd ..
fi
done
@sqshine
sqshine / Password.java
Created June 3, 2016 08:18 — forked from craSH/Password.java
A simple example Java class to safely generate and verify bcrypt password hashes for use in authentication systems.
/**
* Author: Ian Gallagher <igallagher@securityinnovation.com>
*
* This code utilizes jBCrypt, which you need installed to use.
* jBCrypt: http://www.mindrot.org/projects/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;