This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install openssl | |
| RUN apk add --no-cache openssl | |
| # create a folder for the keys | |
| RUN mkdir /etc/nginx/ssl 2> /dev/null | |
| # generate the keys for your local domain | |
| RUN openssl genrsa -out "/etc/nginx/ssl/default.key" 2048 \ | |
| && openssl req -new -key "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.csr" -subj "/CN=app.paykickstart.net/O=app.paykickstart.net/C=UK" \ | |
| && openssl x509 -req -days 365 -in "/etc/nginx/ssl/default.csr" -signkey "/etc/nginx/ssl/default.key" -out "/etc/nginx/ssl/default.crt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Remove all containers | |
| - docker rm -v $(docker ps -aq -f status=exited) | |
| Remove all images | |
| - docker rmi $(docker images -q) --force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UPDATE email_logs | |
| SET | |
| message = SUBSTRING_INDEX(message, '<div>', -1), | |
| message = SUBSTRING_INDEX(message, '</div>', 1), | |
| message = TRIM(message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| st = status | |
| br = branch | |
| c = commit | |
| co = checkout | |
| cob = checkout -b | |
| lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql -u root -p -D penelope_test < c:\OpenServer\domains\penelopa.loc\sql\db_20151213.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //404 | |
| if($_SERVER['REQUEST_URI']=='/ADDRES'){ | |
| header('HTTP/1.1 404 Not Found'); | |
| header('refresh:0;url=/');die(); | |
| } | |
| //301 | |
| if($_SERVER['REQUEST_URI']=="/ADDRES"){ | |
| header("Location: /",true,301); | |
| exit(); |