- You have a MongoDB Enterprise deployment already running and accessible (self-managed or in Atlas)
- You have the MongoDB Enterprise binary
mongocryptd
accessibe on your system path to enable automated encryption - You have the modern MongoDB Shell (
mongosh
) installed locally on your workstation - You have a KMIP Server running and accessible, if you don't intend to use a local keyfile (for an example of running and configuring a Hashicorp Vault development instance, see: Hashicorp Vault Configuration For MongoDB KMIP Use)
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
// | |
// Convert an ArrayBuffer into a string. | |
// From https://developers.google.com/web/updates/2012/06/How-to-convert-ArrayBuffer-to-and-from-String | |
function arrayBufToString(buf) { | |
return String.fromCharCode.apply(null, new Uint8Array(buf)); | |
} | |
function pemEncode(label, data) { | |
const base64encoded = window.btoa(data); |
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
go*.linux-armv6l.tar.gz |
$ uname -r
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
Please see: https://gist.github.com/cpu/9fe42bd664c99bff6ae85c0f386a0ae0 | |
#!/bin/bash | |
# Installs the Streisand server for you https://github.com/jlund/streisand | |
#sudo apt-get update && sudo apt-get install -y git python-paramiko python-pip python-pycurl python-dev build-essential | |
#sudo pip install ansible markupsafe dopy==0.3.5 | |
#git clone https://github.com/jlund/streisand.git && cd streisand/playbooks | |
##sed -i 's/streisand-host/127.0.0.1/g' streisand.yml | |
#sudo ansible-playbook -i "localhost," -c local streisand.yml | |
#sed -i "s/localhost/$(curl -s ipecho.net/plain)/g" ../generated-docs/streisand.html |
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
from __future__ import division | |
import numpy as np | |
RADIUS_OF_EARTH_IN_KM = 6371.01 | |
def haversine(lat1, lon1, lat2, lon2): | |
""" | |
Utility to calcutlate distance between two pointtodo explain regarding height | |
coverting from geodisc co-ordinate to cartestian gives errors when distances are further apart |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
- A Russian translation of this article can be found here, contributed by Timur Demin.
- A Turkish translation can be found here, contributed by agyild.
- There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.