For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
//判斷是否是UTF8 | |
private function isUTF8($word) | |
{ | |
if (preg_match("/^([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{1}){1}/",$word) == true || preg_match("/([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{1}){1}$/",$word) == true || preg_match("/([".chr(228)."-".chr(233)."]{1}[".chr(128)."-".chr(191)."]{1}[".chr(128)."-".chr(191)."]{1}){2,}/",$word) == true) | |
{ | |
return true; | |
} | |
else | |
{ | |
return false; |
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
"disabled_single_snippet_for_scopes": "text.html, er, pe, pc, if, ife, else, elsif, end, lt", | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", |
startdate=2013-03-15 | |
enddate=2013-04-14 | |
curr="$startdate" | |
while true; do | |
echo "$curr" | |
[ "$curr" \< "$enddate" ] || break | |
curr=$( date +%Y-%m-%d --date "$curr +1 day" ) | |
done |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.0</real> |
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "v1", | |
"title": "Edubots情緒rule專用api", | |
"description": "用於edubots機器人,透過連網方式取得情緒規則與表情圖集等資料,與使用者互動" | |
}, | |
"tags": [ { | |
"name" : "emotion rule", | |
"description" : "情緒規則api" |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
安徒生童話 | |
國王的新衣 | |
從前有一個國王,他差不多每一個小時就要換一件新衣服,打扮的漂漂亮亮,坐著馬車到處去炫耀,大家都知道國王最喜歡穿新衣,有一天兩個騙子假扮成裁縫師來到王宮, | |
他們對國王說:「我們是世界上手藝最好的裁縫師,能織出全世界最特別的布,做出最神奇的衣服。」 | |
國王聽了好奇的問:「有多特別、多神奇呢?」 | |
「這批布的顏色,比花朵更鮮艷;質料比雲朵更輕柔,做成衣服後,只有聰明的人才能看得見。」 | |
國王聽了後非常高興,立刻請這兩個人幫他做衣服,但是他們卻說 | |
國王啊,織這種布很困難,需要許多的黃金和寶石做材料,才能織成 | |
於是國王給這兩個人許多的黃金和寶石,讓他們紡紗織布,製作這件神奇衣服 |
Minimum Qualifications | |
* Bachelor or Master in Computer Science, Electrical Engineering, or related technical fieds. | |
* Knowledge and hands-on experience of Nodejs and python language. | |
* Good knowledge of Docker including build, development, deploy, and docker-compose. | |
* Experience of using open source project. | |
* Experience of git version control system. | |
* Maintenance of unix-like server including NIS, NFS, apache, nginx, docker, gitlab, gitlab-runner, elasticsearch, postgres, | |
Preferred Qualifications | |
* Experience on development on Linux based systems |
public static String humanReadableByteCount(long bytes, boolean si) { | |
int unit = si ? 1000 : 1024; | |
if (bytes < unit) return bytes + " B"; | |
int exp = (int) (Math.log(bytes) / Math.log(unit)); | |
String pre = (si ? "kMGTPE" : "KMGTPE").charAt(exp-1) + (si ? "" : "i"); | |
return String.format("%.1f %sB", bytes / Math.pow(unit, exp), pre); | |
} |
var start = new Date(); | |
var hrstart = process.hrtime(); | |
setTimeout(function (argument) { | |
// execution time simulated with setTimeout function | |
var end = new Date() - start, | |
hrend = process.hrtime(hrstart); | |
console.info("Execution time: %dms", end); | |
console.info("Execution time (hr): %ds %dms", hrend[0], hrend[1]/1000000); |