How to configure your Mac to use DNS over TLS in five easy steps:
-
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
-
Edit the configuration file:
/************* | |
* colors.js * | |
************* | |
* | |
* You're almost at the exit. You just need to get past this | |
* color lock. | |
* | |
* Changing your environment is no longer enough. You must | |
* learn to change yourself. I've sent you a little something | |
* that should help with that. |
How to configure your Mac to use DNS over TLS in five easy steps:
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
Edit the configuration file:
See this issue.
Docker best practise to Control and configure Docker with systemd.
Create daemon.json
file in /etc/docker
:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
import numpy as np | |
def vectorize(x): | |
# vectorize a string | |
if len(x) > 1: | |
return np.sum([vectorize(c) for c in x], axis=0) | |
if x == '.': | |
i = 27 | |
elif x == ' ': | |
i = 26 |
Nothing here, just a Gist hack to display the title correctly on Gist. | |
(Prefix the title of this file with a dot on Gist.) |
#!/bin/bash | |
#install dependencies | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer -y | |
sudo apt-get install zip unzip autoconf automake libtool curl zlib1g-dev maven -y | |
sudo apt install python3-numpy python3-dev python3-pip python3-wheel | |
# install bazel |
# Based on | |
# https://gist.github.com/lukeyeager/777087991419d98700054cade2f755e6 | |
#-------------------------------------------------------------------- | |
# CarDetection runs Detectnet on a video pipeline (TX1 Tested) | |
# This might be run only once if no ffmpeg is installed | |
#import imageio | |
#imageio.plugins.ffmpeg.download() | |
import cv2 |
#!/usr/bin/env python2 | |
# Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. | |
""" | |
Classify an image using individual model files | |
Use this script as an example to build your own tool | |
""" | |
import argparse |
"""How to gzip a string. | |
This works for Python 3.2. For 3.1-, look at the original gist (under "Revisions") | |
""" | |
import gzip | |
def gzip_str(string_: str) -> bytes: | |
return gzip.compress(string_.encode()) | |
# NOTE: These instructions do not represent a robust, self-troubleshooting install; they | |
# are definitely not suitable for dumping to a giant script and running as one. If you | |
# use them, they should be run one at a time, with an eye out for errors or problems | |
# along the way. | |
# | |
# The #1 issue you are likely to encounter is with Homebrew or Python packages whose | |
# binary components link against system Python. This will result in runtime segfaults, | |
# especially in rviz. If you suspect this is occurring, you can attempt to remove and | |
# reinstall the offending packages, or go for the nuclear option--- empty your Cellar | |
# and site-packages folders and start over with brewed python from the beginning. |