For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
#!/usr/bin/env bash | |
# Utility to change the connection method for a git repo. | |
# === Colour Definitions === | |
red='\e[0;31m' | |
green='\e[0;32m' | |
purple='\e[0;35m' | |
orange='\e[0;33m' | |
# No Color, i.e. turn off color |
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |
var path = require('path'); | |
var http = require('http'); | |
var fs = require('fs'); | |
var spawn = require('child_process').spawn; | |
function safe_path(request_url) { | |
var cwd = path.resolve(path.dirname()); | |
var target = path.resolve(request_url.slice(1)); | |
if (target.indexOf(cwd) !== 0) | |
return; |
Following is taken from: https://plus.google.com/111475821387295047208/posts/KDEfS6S2hyk | |
------------------------- | |
How to turn your Linux machine into a Chromecast Server | |
Stream YouTube, Netflix, Hulu, Etc. from your smartphone or tablet onto your server or laptop. ...without buying Chromecast hardware... | |
Prerequisite- Install Google Chrome on your Desktop. Install Chromecast application onto your portable device. |
#!/bin/sh -x ## or just ` curl -Ls http://git.io/vRozn | sh `. | |
## Downloads the Mac OS X 10.10 Recovery Partition update, | |
## Copy's over the 10.10 version of Disk Utility.app, then | |
## use git to apply a binary patch so it will run on 10.11+. | |
cd /tmp | |
rm -rf DU1010 | |
mkdir DU1010 |
# ...Adobe Products Activation Block... | |
127.0.0.1 na1r.services.adobe.com | |
127.0.0.1 na2m-pr.licenses.adobe.com | |
127.0.0.1 na4r.services.adobe.com | |
127.0.0.1 lm.licenses.adobe.com | |
127.0.0.1 lmlicenses.wip4.adobe.com | |
127.0.0.1 uds.licenses.adobe.com | |
127.0.0.1 192.150.14.69 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Touchpad pinch demo" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
http://experimental.mural.ly/vnext-mural/sticky/200/webglbody { | |
-ms-scroll-rails: none; | |
} |
Creates an alias on the loopback interface (lo0) with the IP 127.0.0.2 on macOS.
/Library/LaunchDaemons/com.runlevel1.lo0.127.0.0.2.plist
sudo chmod 0644 /Library/LaunchDaemons/com.runlevel1.lo0.127.0.0.2.plist
sudo chown root:wheel /Library/LaunchDaemons/com.runlevel1.lo0.127.0.0.2.plist
sudo launchctl load /Library/LaunchDaemons/com.runlevel1.lo0.127.0.0.2.plist