Generate your CSR This generates a unique private key, skip this if you already have one.
sudo openssl genrsa -out etc/ssl/yourdomain.com/yourdomain.com.key 1024Next generate your CSR (Certificate Signing Request), required by GoDaddy:
Generate your CSR This generates a unique private key, skip this if you already have one.
sudo openssl genrsa -out etc/ssl/yourdomain.com/yourdomain.com.key 1024Next generate your CSR (Certificate Signing Request), required by GoDaddy:
| /** | |
| * requires node.js with ES6 support, or babel | |
| */ | |
| 'use strict'; | |
| const vm = require('vm'); | |
| const fs = require('fs'); | |
| const __loggers__ = {}; | |
| function log(tag) { |
Many different applications claim to support regular expressions. But what does that even mean?
Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.
The information here is just copied from: http://regular-expressions.mobi/refflavors.html
| # filter by request host header | |
| varnishlog -q 'ReqHeader ~ "Host: example.com"' | |
| # filter by request url | |
| varnishlog -q 'ReqURL ~ "^/some/path/"' | |
| # filter by client ip (behind reverse proxy) | |
| varnishlog -q 'ReqHeader ~ "X-Real-IP: .*123.123.123.123"' | |
| # filter by request host header and show request url and referrer header |
You update your app.js or styles.css, but have a caching of 30 days and none of the clients will get the latest version? 😟
While the best would be to use a build mechanism to generate new filenames on the server, here is how to ensure clients get your last updates:
1. Change the name of the files in the HTML, for example styles.css to styles.123.css
2. Add this cache busting snippet in your nginx conf:
| #!/usr/bin/env bash | |
| # ----------------------------------------------------------------------------- | |
| # @author Sreekanth S | |
| # ----------------------------------------------------------------------------- | |
| # | |
| function binary_exists() { | |
| which ${1} &> /dev/null | |
| } |
| # read more at https://terrty.net/2014/ssl-tls-in-nginx/ | |
| # latest version on https://gist.github.com/paskal/628882bee1948ef126dd/126e4d1daeb5244aacbbd847c5247c2e293f6adf | |
| # security test score: https://www.ssllabs.com/ssltest/analyze.html?d=terrty.net | |
| # your nginx version might not have all directives included, test this configuration before using in production against your nginx: | |
| # $ nginx -c /etc/nginx/nginx.conf -t | |
| server { | |
| # public key, contains your public key and class 1 certificate, to create: | |
| # (example for startssl) | |
| # $ (cat example.com.pem & wget -O - https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem) | tee -a /etc/nginx/ssl/domain.pem > /dev/null |
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare git@github.com:usi-systems/easytrace.git
| /* | |
| * Unity Batch Burner: A script designed to reduce static mesh draw calls automatically in scenes | |
| * with a large amount of static geometry entities. | |
| * | |
| * Copyright 2016-2017 Will Preston & Die-Cast Magic Studios, LLC. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * |
This script generates a self-signed SSL certificate which can be used for developing web applications on your local machine. The certificate will be generated using RSA-4096 and SHA512.
Copy these two files somewhere convenient; e.g. ~/bin.
Edit openssl.cnf if you have any particular requirements.