/etc/udev/hwdb.d/90-sbutton.hwdb
evdev:input:b0005v099Ap0500*
KEYBOARD_KEY_c00e9=s
KEYBOARD_KEY_70028=r
###Install docker-machine-driver-xhyve docker-machine-driver-xhyve is a docker machine driver plugin for xhyve native OS X Hypervisor. xhyve is a lightweight OS X virtualization solution. In my opinion, it's a far better option than virtualbox for running minikube. ####Brew On MacOS sierra, download latest using
brew install docker-machine-driver-xhyve --HEAD
sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
| /** | |
| * This script will automatically sync all updates from one database to another. It is meant to be run while | |
| * syncing the database using mongodump and mongorestore. | |
| * | |
| * Example: | |
| * node livesync.js mongodb://<user>:<pass>@dbhost.com:10645/app-production \ | |
| * mongodb://<user>:<pass>@dbhost.com:10499/local?authSource=app-production \ | |
| * app-production \ | |
| * mongodb://<user>:<pass>@newdbhost.com/app-prod | |
| */ |
| // src/CloudCode.js | |
| "use strict" | |
| var Cron = require('./Cron'); | |
| var Job = require('./Job'); | |
| class CloudCode { | |
| constructor(Parse, timezone){ | |
| this.Parse = Parse; |
Javascript+java8 nashorn contains a javascript AST parser. See // http://stackoverflow.com/questions/29154309/nashorn-parser-api-on-jdk-8
function x(n) {var a=[];for(var i=0;i< n;i++) { a.push(i); }} x(1000);#run
| #!/bin/bash | |
| JAVA_HOME=${1-text} | |
| [ $# -eq 0 ] && { echo "Usage: sudo $0 \$(/usr/libexec/java_home -v '1.8*')" ; exit 1; } | |
| KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts | |
| wget https://letsencrypt.org/certs/isrgrootx1.pem | |
| wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.der | |
| wget https://letsencrypt.org/certs/lets-encrypt-x4-cross-signed.der |
| dash_id=xxxx | |
| api_key=xxx | |
| app_key=xxx | |
| # 1. export | |
| curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json | |
| # 2. edit dash.json | |
| move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level |
Picking the right architecture = Picking the right battles + Managing trade-offs
This document details how I setup LE on my server. Firstly, install the client as described on http://letsencrypt.readthedocs.org/en/latest/using.html and make sure you can execute it. I put it in /root/letsencrypt.
As it is not possible to change the ports used for the standalone authenticator and I already have a nginx running on port 80/443, I opted to use the webroot method for each of my domains (note that LE does not issue wildcard certificates by design, so you probably want to get a cert for www.example.com and example.com).
For this, I placed config files into etc/letsencrypt/configs, named after <domain>.conf. The files are simple:
| /* | |
| NSData+Compression.swift | |
| Created by Danilo Altheman on 17/06/15. | |
| The MIT License (MIT) | |
| Copyright © 2015 Quaddro - Danilo Altheman. All rights reserved. | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in |