For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| # Nginx can serve FLV/MP4 files by pseudo-streaming way without any specific media-server software. | |
| # To do the custom build we use 2 modules: --with-http_secure_link_module --with-http_flv_module | |
| # This module "secure-link" helps you to protect links from stealing away. | |
| # | |
| # NOTE: see more details at coderwall: http://coderwall.com/p/3hksyg | |
| cd /usr/src | |
| wget http://nginx.org/download/nginx-1.5.13.tar.gz | |
| tar xzvf ./nginx-1.5.13.tar.gz && rm -f ./nginx-1.5.13.tar.gz |
| #!/usr/bin/perl -w | |
| # | |
| # This script was developed by Robin Barker ([email protected]), | |
| # from Larry Wall's original script eg/rename from the perl source. | |
| # | |
| # This script is free software; you can redistribute it and/or modify it | |
| # under the same terms as Perl itself. | |
| # | |
| # Larry(?)'s RCS header: | |
| # RCSfile: rename,v Revision: 4.1 Date: 92/08/07 17:20:30 |
| # Re-add sslwrap to Python 2.7.9 | |
| import inspect | |
| __ssl__ = __import__('ssl') | |
| try: | |
| _ssl = __ssl__._ssl | |
| except AttributeError: | |
| _ssl = __ssl__._ssl2 | |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "flag" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| ) |
| /** | |
| * HipChat client for Google Apps Script. | |
| * This code is based on node-hipchat https://github.com/nkohari/node-hipchat/blob/master/lib/hipchat.js | |
| */ | |
| (function(global) { | |
| var HipChatClient = (function () { | |
| HipChatClient.prototype.host = 'api.hipchat.com'; | |
| function HipChatClient(apikey) { |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "fmt" | |
| "io" | |
| "log" | |
| ) |
| # swith to sudo | |
| sudo -i | |
| # create swap | |
| touch /2GiB.swap | |
| chattr +C /2GiB.swap | |
| fallocate -l 2048m /2GiB.swap | |
| chmod 600 /2GiB.swap | |
| mkswap /2GiB.swap |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| $ go build -a -tags netgo -installsuffix netgo . | |
| $ CGO_ENABLED=0 go build -a -installsuffix nocgo . |
| # force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf | |
| server { | |
| listen 80; | |
| server_name jira.example.com; | |
| access_log off; | |
| return 301 https://$server_name$request_uri; | |
| } | |
| # /etc/nginx/conf.d/jira.conf | |
| server { |