- Have an AWS Account
- Spin up an EC2 Instance of Ubuntu Server and Make sure that your instance's security groups allow incoming connections on TCP ports 22 and 3000
- Use an Elastic IP to bind your Instance to it --- You would not be paying for this -- Till the time the EC2 Instance is running
- Add the IP Allocated to your A Record --- with your registrar
- Have a SSH Connection to your EC2 Instance with the Key Pairs
- Connect to the EC2 Instance
<?php | |
/** | |
* | |
* Origin: http://forums.steampowered.com/forums/showthread.php?t=1430511 | |
* | |
* @package Steam Community API | |
* @copyright (c) 2010 ichimonai.com | |
* @license http://opensource.org/licenses/mit-license.php The MIT License | |
* |
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
#!/bin/bash | |
version="0.9.6 from 2014-02-04" | |
# Always download the latest version here: http://www.eurosistems.ro/back-res | |
# Thanks or questions: http://www.howtoforge.com/forums/showthread.php?t=41609 | |
# | |
# CHANGELOG: | |
# ----------------------------------------------------------------------------- | |
# version 0.9.6 - 2014-02-04 (by Yavuz Aydin - Vrij Media) | |
# -------------------------- | |
# - Changed mysql import routine to create database if it doesn't exist |
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
Zimbra Version: Release 8.6.0_GA_1153.RHEL7_64_20141215151110 RHEL7_64 FOSS edition
Based on Zimbra Article KB 22434 : https://wiki.zimbra.com/wiki/Installing_a_LetsEncrypt_SSL_Certificate
Log on Zimbra user then stop proxy and mail box service for renew proccess.
su zimbra
# Advanced config for NGINX | |
server_tokens off; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header X-Content-Type-Options nosniff; | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; |
This gist assumes you are migrating an existing site for www.example.com — ideally WordPress — to a new server — ideally Ubuntu Server 16.04 LTS — and wish to enable HTTP/2 (backwards compatibile with HTTP/1.1) with always-on HTTPS, caching, compression, and more. Although these instructions are geared towards WordPress, they should be trivially extensible to other PHP frameworks, other FastCGI backends, and even non-FastCGI backends (using proxy
in lieu of fastcgi
in the terminal Caddyfile stanza).
Quickstart: Use your own naked and canonical domain names instead of example.com and www.example.com and customize the Caddyfile and VCL provided in this gist to your preferences!
These instructions target Varnish Cache 4.1, PHP-FPM 7.0, and Caddy 0.10. (I'm using MariaDB 10.1 as well, but that's not relevant to this guide.)
https://www.google.com/fusiontables/DataSource?docid=1qwHuS2zIBqK_xxTtg-j_loRHqCVpcld-a2Q6kM0#rows:id=1 | |
Emergency Preparedness | |
Pioneering Wireless | |
Offbeat Internet | |
Application Software |
using SHA | |
""" | |
An individual block structure | |
""" | |
struct Block | |
index::Int | |
timestamp::DateTime | |
data::String | |
previous_hash::String |