Skip to content

Instantly share code, notes, and snippets.

View luissquall's full-sized avatar

Luis Ramos luissquall

View GitHub Profile
server {
listen 80;
listen [::]:80;
server_name {{ domain }};
client_max_body_size 10M;
root /var/www/{{ domain }}/webroot/;
index index.php;
## Redirects all HTTP traffic to the HTTPS host
##
## http://serverfault.com/questions/67316/in-nginx-how-can-i-rewrite-all-http-requests-to-https-while-maintaining-sub-dom/337893#337893
## https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/support/nginx/gitlab-ssl
## http://serverfault.com/questions/638367/do-you-need-separate-ipv4-and-ipv6-listen-directives-in-nginx/638370#638370
server {
listen 80;
listen [::]:80;
server_name {{ domain }};
return 301 https://$server_name$request_uri;
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name {{ domain }};
client_max_body_size 10M;
root {{ webroot }};
index index.php index.html index.htm;
# See: https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/
server {
server_name {{ app_domain }};
root /var/www/{{ app_domain }};
access_log /var/log/nginx/{{ app_domain }}.access.log;
error_log /var/log/nginx/{{ app_domain }}.error.log;
location = /favicon.ico {
log_not_found off;
server {
listen 80;
listen [::]:80;
server_name www.{{ domain }};
return 301 http://{{ domain }}$request_uri;
access_log /var/log/nginx/www.{{ domain }}.access.log;
error_log /var/log/nginx/www.{{ domain }}.error.log;
}
server {
listen 80;
listen [::]:80;
server_name {{ domain }};
client_max_body_size 10M;
root {{ webroot }};
index index.php index.html index.htm;
server {
listen 80;
listen [::]:80;
server_name {{ hostname }};
client_max_body_size 10M;
root /var/www/{{ hostname }};
index index.php index.html index.htm;
<?php
/*
echo Tiago > monos
zip --password 1234 monos.zip monos
#unzip -P 1234 monos.zip -d unzipped
chgrp www .
chmod g+w .
*/
$bin = shell_exec('which unzip');
@luissquall
luissquall / .msmtprc
Created January 28, 2016 23:19
msmtp user configuration file
# Set default values for all following accounts.
defaults
# Always use TLS.
tls on
# Set a list of trusted CAs for TLS. You can use a system-wide default file,
# as in this example, or download the root certificate of your CA and use that.
tls_trust_file ~/etc/ssl/certs/cacert.pem
Verifying that +mono is my blockchain ID. https://onename.com/mono