Skip to content

Instantly share code, notes, and snippets.

@LukeDemons
LukeDemons / append.sh
Created May 28, 2017 15:29
申请软件著作权时,源代码处理脚本
#!/bin/bash
read_dir() {
for item in $(ls $1)
do
if [ -d $1"/"$item ];then
read_dir $1"/"$item
else
file=$1"/"$item
suffix=${file##*.}
@LukeDemons
LukeDemons / gencert.sh
Created November 6, 2018 01:43
generate cert by openssl
#!/bin/sh
# create self-signed server certificate:
read -p "Enter your domain [www.example.com]: " DOMAIN
echo "Create server key..."
openssl genrsa -des3 -out $DOMAIN.key 1024