Skip to content

Instantly share code, notes, and snippets.

@SansWord
SansWord / genkey.sh
Last active August 9, 2016 07:55 — forked from xcooper/genkey.sh
Generate private key, certification request, optional PEM files at once
#!/bin/sh
echo "edit this file before you execute it!!"
echo "make sure keytool and openssl commands are in PATH"
read -p "Contiune?" ANS
read -p "give me CN(www.xxx.com.tw)" CN
read -s -p "give me default password(length >= 8)" PASS
set -e
# Edit these arguments
@SansWord
SansWord / completion-for-gradle.md
Last active August 29, 2015 14:23 — forked from nolanlawson/completion-for-gradle.md
some change to clear cache and consider of timestamp

Gradle tab completion script for Bash

A tab completion script that works for Bash. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as you have one of those two commands, this should work.

Usage

$ gradle [TAB]
/*
* jQuery.ajaxQueue - A queue for ajax requests
*
* (c) 2011 Corey Frang
* Dual licensed under the MIT and GPL licenses.
*
* Requires jQuery 1.5+
*/
(function($) {