Skip to content

Instantly share code, notes, and snippets.

View raco's full-sized avatar
🎸
Blues

Renato Centeno raco

🎸
Blues
View GitHub Profile
@raco
raco / nginx_security_headers
Last active June 25, 2018 23:02
Nginx Security Headers
# Security headers
add_header Strict-Transport-Security "max-age=2592000; includeSubDomains; preload";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
add_header Content-Security-Policy "default-src 'self' www.google-analytics.com ajax.googleapis.com www.google.com google.com gstatic.com www.gstatic.com connect.facebook.net facebook.com;";
add_header X-XSS-Protection "1; mode=block";
add_header Referrer-Policy "origin";
#https://developer.mozilla.org/es/docs/Web/HTTP/Headers/X-Frame-Options
@emmanuelbarturen
emmanuelbarturen / server
Last active January 30, 2018 16:11
Nginx Config for wordpress and laravel in the same server/hosting. How to put a wordpress in a laravel project. Wordpress folder, named blog, is inner public directory of laravel
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www/laravel-project/public;
index index.php index.html index.htm;
server_name laravelProject.com www.laravelProject.com;
charset utf-8;
location /blog/index.php(/.*)?$ {
@clzola
clzola / install-redis.sh
Last active March 23, 2022 19:20
Bash script for installing Redis on Ubuntu 16.04
#!/bin/bash
# Install the Build and Test Dependencies
apt-get update
apt-get install -y curl build-essential tcl
# Download and Extract the Source Code
cd /tmp
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
@isogram
isogram / wkhtmltopdf_wkhtmltoimage.md
Created April 8, 2016 09:50
How to manually install Wktohtmlpdf and Wkhtmltoimage in Ubuntu Server

How to Install Wkhtmltopdf and Wkhtmltoimage in Ubuntu

wget http://download.gna.org/wkhtmltopdf/0.12/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
cd wkhtmltox/bin/
sudo mv wkhtmltopdf  /usr/bin/wkhtmltopdf
sudo mv wkhtmltoimage  /usr/bin/wkhtmltoimage