git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
This file contains 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 | |
# | |
# Copyright (c) 2016 Katsuya SAITO | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
# | |
# @(#) letsencrypt_cert_autoupdate_webroot.sh ver.0.1.0 2016.01.31 | |
# | |
# Usage: | |
# |
This file contains 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 | |
web_service='nginx' | |
config_file=$1 | |
le_path='/opt/letsencrypt' | |
exp_limit=30; | |
if [ $# -eq 0 ]; then | |
echo "Please specifie the path of the config file" |
- http://www.metalsmith.io
- https://github.com/pjeby/gulpsmith
- WordPress (slow and expensive to host, but unfriendly) or a Static site (fast, cheap to host, but technical)
- Metalsmith offer a file-tree-based approach
- http://stackoverflow.com/questions/23227248/is-there-some-gulp-plugin-that-lets-it-perform-the-function-of-a-static-site-gen
This file contains 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
WSGIPythonPath /var/www/domain.com/project | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName domain.com | |
ServerAlias www.domain.com | |
DocumentRoot /var/www/domain.com/project/ | |
WSGIScriptAlias / /var/www/domain.com/project/project/wsgi.py | |
#WSGIPythonPath /var/www/domain.com/project |
This file contains 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
cheat sheets. | |
$ command line ruby cheat sheets | |
Setup | |
----- | |
git clone <repo> | |
clone the repository specified by <repo>; this is similar to "checkout" in | |
some other version control systems such as Subversion and CVS | |
Add colors to your ~/.gitconfig file: |
I started this guide as I was building my web server but it was never finished. Nonetheless there's some valuable info for anyone starting a web server from scratch.
- [download offline raspbian][0]
- follow instructions for [no screen install of raspbian][1]
- setup [static ip address][2], reserve in router, and update hosts file on remote computer
- follow [secure web server][7], [secure ssh best practices][3], setup [ssh-copy-id in mac][4]
This file contains 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
# Optimized MySQL configuration for cPanel servers by Fotis Evangelou - Updated Feb 2016 | |
# | |
# The settings provided below are a starting point for a 4GB-8GB RAM server with 4 CPU cores. | |
# If you have less or more resources available you MUST adjust accordingly to save CPU, RAM and disk I/O usage. | |
# To fine tune these settings for your system, use MySQL DB diagnostics tools like: | |
# https://launchpad.net/mysql-tuning-primer | |
# or | |
# http://blog.mysqltuner.com/download/ | |
# Note that if there is NO comment beside a setting, then you don't need to adjust it. |
This file contains 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
<?php | |
/* | |
* function for facebook auto publishing "Events" custom post. | |
*/ | |
session_start(); | |
use Facebook\FacebookSession; | |
use Facebook\FacebookRedirectLoginHelper; |