Git Resume
Configure Git (Git اعداد)
Locally (محليا)
git config user.name 'foo'
git config user.email 'foo@bar.com'
FROM wordpress:php7.4-fpm-alpine | |
# this is needed by Codeception | |
RUN docker-php-ext-install pdo_mysql | |
# this will add WP-CLI to the container | |
WORKDIR /tmp | |
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
RUN chmod +x wp-cli.phar | |
RUN mv wp-cli.phar /usr/local/bin/wp |
git config user.name 'foo'
git config user.email 'foo@bar.com'
Proof of concept setup for Wordpress running under PHP-FPM with an Nginx frontend
Build a copy of this image:
git clone git://github.com/d9206eacb5a0ff5d6be0.git docker-nginx-fpm
cd docker-nginx-fpm
docker build -t nginx-fpm .
For more details please visit http://fisherworks.cn/?p=2517
$ sudo apt update && sudo apt dist-upgrade
$ sudo apt install vim-nox openssh-server chromium-browser x11vnc slick-greeter
On lightdm configuration screen choose lightdm
This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.
ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Other options for PDFSETTINGS:
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
server { | |
listen 80 default_server; | |
server_name domain.tld; | |
access_log /srv/www/domain.tld/logs/access.log; | |
error_log /srv/www/domain.tld/logs/error.log; | |
root /srv/www/domain.tld/public; | |
index index.php index.html index.htm; | |
client_max_body_size 20M; |
# How to echobot with XMPP, BOSH, and Strophe | |
1. Setup ejabberd(http://www.ejabberd.im/) server and setup account admin@localhost.local | |
NOTE: localhost should be enough. If you setup something else, make sure you add it at /etc/hosts like this | |
#/etc/hosts | |
127.0.0.1 localhost.local | |
NOTE: Also download Psi(http://psi-im.org/), and make sure you can connect to your ejabberd server. | |
2. Download strophe(http://code.stanziq.com/strophe/) and place it (eg: /Users/makoto/work/sample/strophejs-1.0) |