start new:
tmux
start new with session name:
tmux new -s myname
| # remove specific file from git cache | |
| git rm --cached filename | |
| # remove all files from git cache | |
| git rm -r --cached . | |
| git add . | |
| git commit -m ".gitignore is now working" |
| <filter> | |
| <filter-name>CorsFilter</filter-name> | |
| <filter-class>org.apache.catalina.filters.CorsFilter</filter-class> | |
| <init-param> | |
| <param-name>cors.allowed.origins</param-name> | |
| <param-value>*</param-value> | |
| </init-param> | |
| <init-param> | |
| <param-name>cors.allowed.methods</param-name> | |
| <param-value>GET,POST,HEAD,OPTIONS,PUT,DELETE</param-value> |
| server { | |
| listen 8002; | |
| client_max_body_size 108M; | |
| access_log /var/log/nginx/server_name.access.log; | |
| error_log /var/log/nginx/server_name.error.log; | |
| root /var/www/html/server_name/public; |
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt update
$ sudo apt install nginx php7.1-fpm php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-phpdbg php7.1-mbstring php7.1-gd php7.1-imap php7.1-ldap php7.1-pgsql php7.1-pspell php7.1-recode php7.1-soap php7.1-tidy php7.1-dev php7.1-intl php7.1-curl php7.1-zip php7.1-xml php-xdebug| git rm -r --cached . | |
| git add . | |
| git commit -am 'git cache cleared' | |
| git push |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Box Shadow</title> | |
| <style> | |
| .box { | |
| height: 150px; | |
| width: 300px; | |
| margin: 20px; |
| Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna! | |
| ([一-龯]) | |
| Regex for matching Hirgana or Katakana | |
| ([ぁ-んァ-ン]) | |
| Regex for matching Non-Hirgana or Non-Katakana | |
| ([^ぁ-んァ-ン]) | |
| Regex for matching Hirgana or Katakana or basic punctuation (、。’) |
| /** | |
| * Password validation RegEx for JavaScript | |
| * | |
| * Passwords must be | |
| * - At least 8 characters long, max length anything | |
| * - Include at least 1 lowercase letter | |
| * - 1 capital letter | |
| * - 1 number | |
| * - 1 special character => !@#$%^&* | |
| * |