curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
cd /etc/php/7.0/
mkdir dev
cd dev/
apt install php7.0-dev
git clone https://github.com/hnw/php-timecop.git
cd php-timecop
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
#!/bin/bash | |
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | |
chmod +x speedtest-cli | |
./speedtest-cli --share |
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
location / | |
{ | |
try_files $uri @url; | |
} | |
location ~ \.php$ | |
{ | |
try_files $uri =404; | |
include fastcgi_params; | |
fastcgi_pass php7; | |
} |
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
/* Specify maximum number of Revisions. */ | |
define( 'WP_POST_REVISIONS', '10' ); | |
/* Trash Days. */ | |
define( 'EMPTY_TRASH_DAYS', '15' ); | |
/* PHP Memory */ | |
define( 'WP_MEMORY_LIMIT', '128M' ); | |
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); | |
define('WP_DEBUG', false); |
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
postgresql: | |
restart: always | |
image: sameersbn/postgresql:9.6-2 | |
environment: | |
- DB_USER=gitlab | |
- DB_PASS=password | |
- DB_NAME=gitlabhq_production | |
volumes: | |
- /home/gitlab/postgresql:/var/lib/postgresql | |
gitlab: |
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
{ | |
"algo": "cryptonight", | |
"av": null, | |
"aesni": 0, | |
"threads": 0, | |
"multihash-factor": 0, | |
"multihash-thread-mask": null, | |
"background": false, | |
"colors": true, | |
"cpu-affinity": null, |
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
#------------------------------------------------------------------------------# | |
# OFFICIAL UBUNTU REPOS # | |
#------------------------------------------------------------------------------# | |
###### Ubuntu Main Repos | |
deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse | |
###### Ubuntu Update Repos | |
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse |
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
#------------------------------------------------------------------------------# | |
# OFFICIAL DEBIAN REPOS | |
#------------------------------------------------------------------------------# | |
###### Debian Main Repos | |
deb http://ftp.fr.debian.org/debian/ oldstable main contrib non-free | |
deb http://ftp.fr.debian.org/debian/ oldstable-updates main contrib non-free | |
deb http://security.debian.org/ oldstable/updates main |
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
# Package generated configuration file | |
# See the sshd_config(5) manpage for details | |
# What ports, IPs and protocols we listen for | |
Port 22 | |
# Use these options to restrict which interfaces/protocols sshd will bind to | |
#ListenAddress :: | |
#ListenAddress 0.0.0.0 | |
Protocol 2 | |
# HostKeys for protocol version 2 |