This file contains 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
FROM wordpress:4.9-php7.2-fpm-alpine | |
# Install the extra packages. | |
RUN apk --no-cache add nginx supervisor curl | |
# Copy all files. | |
COPY ./php.ini $PHP_INI_DIR/conf.d/wp_php.ini | |
COPY ./nginx.conf /etc/nginx/nginx.conf | |
COPY ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
# Disable default entrypoint. | |
ENTRYPOINT [] | |
# Expose Nginx on 80. |
This file contains 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
{ | |
"extends": [ | |
"react-app", | |
"plugin:jsx-a11y/recommended", | |
"plugin:prettier/recommended" | |
], | |
"plugins": ["jsx-a11y", "prettier"], | |
"rules": { | |
"prettier/prettier": [ | |
"error", |
This file contains 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
brew update | |
brew upgrade | |
brew tap homebrew/dupes | |
brew tap homebrew/versions | |
brew tap homebrew/homebrew-php | |
brew install php71 | |
## To use PHP7.1 on CLI, add this to .bash_profile |
This file contains 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
#include <stdio.h> | |
int main(void) { | |
int m = 11, n = 22; | |
int *p = &m, *q = &n; //11, 22 | |
printf("%d %d\n", *p, *q); | |
int **pp = &p, **qq = &q; //11, 22 | |
printf("%d %d\n", **pp, **qq); // | |
NewerOlder