Admin wp_capabilities
wp_user_level
10
a:1:{s:13:"administrator";b:1;}
Contributor wp_capabilities
wp_user_level
1
server { | |
listen 80; | |
root /usr/share/nginx/html/laravel/public; | |
index index.php index.html index.htm; | |
server_name laravel.dev; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; |
The API we are creating in this gist will follow these rules :
password
Grant Type only (no need for Authorization pages and such).v1.api.example.com
)The API will be written in PHP with the Symfony 3 framework. The following SF2 bundles are used :
FROM php:5-cli | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
git software-properties-common python-software-properties libicu-dev zlib1g-dev curl subversion bash \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-configure zip \ | |
&& docker-php-ext-install zip \ | |
&& docker-php-ext-configure intl \ | |
&& docker-php-ext-install intl \ |
apt-get update | |
aptitude install xfonts-base xfonts-75dpi fontconfig xvfb | |
mkdir ~/src/wkhtmltopdf -p | |
cd ~/src/wkhtmltopdf | |
wget https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb | |
dpkg -i wkhtmltox-0.13.0-alpha-7b36694_linux-jessie-amd64.deb | |
echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/local/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh | |
chmod a+rx /usr/bin/wkhtmltopdf.sh | |
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/sbin/wkhtmltopdf | |
/usr/local/sbin/wkhtmltopdf https://www.google.fr output.pdf |
dcb='docker-compose build' | |
dcdn='docker-compose down' | |
dce='docker-compose exec' | |
dcl='docker-compose logs' | |
dclf='docker-compose logs -f' | |
dco=docker-compose | |
dcps='docker-compose ps' | |
dcr='docker-compose run' | |
dcrestart='docker-compose restart' | |
dcrm='docker-compose rm' |
#!/bin/bash | |
# https://github.com/qbittorrent/qBittorrent/wiki/Setting-up-qBittorrent-on-Ubuntu-server-as-daemon-with-Web-interface-(15.04-and-newer) | |
# https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Debian-and-Ubuntu | |
# https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-on-Raspbian-for-LeMaker-Banana-Pro | |
sudo su - | |
cd /home/pi/ |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.