1 |
zip --delete test.zip "*__MACOSX*" "*.DS_Store" |
1 |
zip --delete test.zip "*__MACOSX*" "*.DS_Store" |
1 2 3 4 5 6 7 8 |
# BEGIN Redirect www to non-www # <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] # </IfModule> # END Redirect non-www to www |
1 2 3 4 5 6 7 |
# BEGIN Redirect non-www to www # <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] # </IfModule> # END Redirect non-www to www |
1 2 3 4 5 6 7 |
# Begin Force https <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] </IfModule> # END Froce https |
op.exe
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
@echo off @setlocal IF "%1"== "" ( echo on echo opener of app, designed by admin@dev.easywaru.com echo f : FireFox echo c : Chrome echo i : Internet Explorer echo o : Opera echo dig : online dig echo df : dot net fiddle echo sf : sql fiddle echo jf : js fiddle echo fe : find dot net err exit ) IF "%1"=="this" ( IF EXIST "C:\Program Files (x86)\sakura\sakura.exe" ( start "" "C:\Program Files (x86)\sakura\sakura.exe" -- %0 exit ) start notepad %0 ) SET FF="C:\Program Files (x86)\Mozilla Firefox\firefox.exe" SET CRM="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" SET IE="C:\Program Files\Internet Explorer\iexplore.exe" SET OPR="C:\Program Files\Opera\launcher.exe" IF "%1" == "f" ( start "" %FF% ) IF "%1" == "c" ( start "" %CRM% ) IF "%1" == "i" ( start "" %IE% ) IF "%1" == "o" ( start "" %FF% ) IF "%1" == "dig" ( start "" %FF% https://toolbox.googleapps.com/apps/dig/ ) IF "%1" == "df" ( start "" %FF% https://dotnetfiddle.net/ ) IF "%1" == "sf" ( start "" %FF% http://www.sqlfiddle.com/ ) IF "%1" == "jf" ( start "" %FF% https://jsfiddle.net/ ) IF "%1" == "fe" ( start "" %FF% http://finderr.net/clr/ja/ ) |
anaconda : Python Data Science Platform
pycharm : Python IDE
Check whether equals result of each command.
privatekey
1 |
openssl rsa -noout -modulus -in dev.easywaru.com.key | openssl md5 |
CSR
1 |
openssl req -noout -modulus -in dev.easywaru.com.csr | openssl md5 |
certificate
1 |
openssl x509 -noout -modulus -in dev.easywaru.com.crt | openssl md5 |
#API
Title:
[Product|Staging|Test][Alert|Warn|Info]! – [System Name].[Function Name]
Content:
Enviroment
ErrorMessage
Source
StackTrace
Request URL
Request Body
Response Body
#Batch
Title:
[Product|Staging|Test][Alert|Warn|Info]! – [System Name].[Function Name]
Content:
Enviroment
ErrorMessage
Source
StackTrace
1 2 3 4 5 6 7 8 |
Delete before sentence of [sometext] .+sometext -> sometext Delete after sentence of [sometext] sometext.+ -> sometext Matches the element of excluding [sometext] ^((?!sometext).)*$ |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
##### install letsencrypt(certbot) ##### sudo yum install epel-release sudo yum install certbot sudo yum install certbot-nginx certbot certonly --webroot -w /var/www/dev.easywaru.com/html -d dev.easywaru.com ##### nginx setting ##### sudo nano /etc/nginx/sites-available/dev.easywaru.com.conf server { listen 443 ssl https; server_name dev.easywaru.com ssl_certificate /etc/letsencrypt/live/dev.easywaru.com/cert.pem; ssl_certificate_key /etc/letsencrypt/live/dev.easywaru.com/privkey.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; ... other server setting ... } |