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 |
(NB: adapted from this Ask Ubuntu thread -- tested to work on Ubuntu 16.04 LTS through Ubuntu 22.04 LTS (Jammy).
Unlike using VMWare Tools to enable Linux guest capabilities, the open-vm-tools package doesn't auto-mount shared VMWare folders. This can be frustrating in various ways, but there's an easy fix.
Install open-vm-tools and run:
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
| 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/ |