cat [something].crt <(echo) [something].ca-bundle >> [something-bundle].crt
<(echo)
is used to put new line between files content.
location / { | |
root /var/www/example.com/wordpress; | |
index index.html index.htm index.php; | |
rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last; | |
if (!-e $request_filename) { | |
rewrite ^.+/?(/wp-.*) $1 last; | |
rewrite ^.+/?(/.*\.php)$ $1 last; | |
rewrite ^(.+)$ /index.php?q=$1 last; | |
} | |
} |
/** | |
* Copyrights for console.save http://bgrins.github.io/devtools-snippets/#console-save | |
**/ | |
(function(console){ | |
console.save = function(data, filename){ | |
if(!data) { | |
console.error('Console.save: No data') |
const calculate_distance = (x1, y1, x2, y2) => { | |
let xd = x2 - x1; | |
let yd = y2 - y1; | |
let distance = Math.sqrt(xd * xd + yd * yd); | |
return distance; | |
} |
#!/bin/bash | |
MONGO_DATABASE="DB_NAME" | |
APP_NAME="APP_NAME" | |
MONGO_HOST="127.0.0.1" | |
MONGO_PORT="27017" | |
MONGO_USER="DB_USER" | |
MONGO_PASS="DB_PASS" | |
TIMESTAMP=`date +%F-%H%M` |
let match_arabic = (user_input, word) => { | |
let user_input_regx = ""; | |
for (let d = 0; d < user_input.length; d++) { | |
//البحث عن أ، ا ، آ و إ | |
let hamz_letters = ["أ", "ا", "آ", "إ"].join("|") | |
const hamz_regx = new RegExp(hamz_letters); | |
if (hamz_regx.test(user_input.charAt(d))) { | |
user_input_regx += "[" + hamz_letters + "]"; | |
} else { | |
user_input_regx += user_input.charAt(d); |