Skip to content

Instantly share code, notes, and snippets.

@xXxSPYxXx
xXxSPYxXx / 00.howto_install_phantomjs.md
Last active March 20, 2018 09:30 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu/Debian

Version: 2.1.1

Platform: x86_64

First, install or update to the latest system software.

apt update
apt install build-essential chrpath libssl-dev libxft-dev
@xXxSPYxXx
xXxSPYxXx / set-up-l2tp-ipsec-vpn-on-debian.md
Last active January 9, 2018 16:24 — forked from mietek/set-up-l2tp-ipsec-vpn-on-debian.md
Set up L2TP/IPsec VPN on Debian 9

Set up L2TP/IPsec VPN on Debian 9

Set up IPsec

Set up networking

map $http_user_agent $url {
~BPC.[4] /eset_upd/v4/update.ver;
~BPC.[5] /eset_upd/v5/update.ver;
~BPC.[6] /eset_upd/v6/update.ver;
~BPC.[7] /eset_upd/v7/update.ver;
}
server {
server_name site.ru www.site.ru;
http {
map $http_user_agent $limit_bots {
default '';
~*(google|bing|yandex|msnbot) $binary_remote_addr;
}
limit_req_zone $limit_bots zone=bots:10m rate=1r/m;
server {
@xXxSPYxXx
xXxSPYxXx / site.ru.conf
Last active July 7, 2022 11:06
OpenCart, OcStore Nginx config whis SSL
server{
listen 80;
listen 443 ssl;
server_name site.ru www.site.ru;
ssl on;
if ( $scheme = "http" ) {
rewrite ^/(.*)$ https://$host/$1 permanent;
}
index index.php index.html;
server {
listen 80;
server_name www.example.com;
root /var/www/vhosts/example.com/public/;
location /
{
index index.php index.html index.htm;
}