Install iTerm 2
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
import os | |
import logging | |
from time import time, sleep | |
import psycopg2 | |
check_timeout = os.getenv("POSTGRES_CHECK_TIMEOUT", 30) | |
check_interval = os.getenv("POSTGRES_CHECK_INTERVAL", 1) | |
interval_unit = "second" if check_interval == 1 else "seconds" | |
config = { | |
"dbname": os.getenv("POSTGRES_DB", "postgres"), | |
"user": os.getenv("POSTGRES_USER", "postgres"), |
CREATE TABLE t_random AS SELECT s, md5(random()::text) FROM generate_Series(1,5) s; | |
INSERT INTO t_random VALUES (generate_series(1,1000000000), md5(random()::text)); | |
SELECT pg_size_pretty(pg_relation_size('t_random')); |
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
Last updated March 28, 2021
There are now two ways to approach this:
This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
Reed Slaby, March 2018
Having grown tired of wasting a perfectly good monitor on my ethereum mining rig, I finally decided to replace the Ubuntu Desktop 16.04 installation with Ubuntu Server 16.04. Many of the gtutorials available at the time of this writing range from unecessarily complicated to flat-out wrong. This guide is intended to address many of those shortfalls.
To complete this guide, you should already have:
export http_proxy=http://172.25.211.30:3128 | |
export https_proxy=http://172.25.211.30:3128 | |
yum install -y epel-release wget | |
wget "https://packages.quobyte.com/repo/v3/rpm/CentOS_7/quobyte.repo" -P /etc/yum.repos.d/ | |
yum install -y quobyte-client |
export DATASTORE=postgres://k3s:k3s@ep06:5432/k3s?sslmode=disable | |
k3sup install --user root --ip $SERVER1 --datastore="${DATASTORE}" --k3s-extra-args '--kube-controller-manager-arg=node-cidr-mask-size=22 --kubelet-arg=max-pods=500 ' --k3s-version v1.20.4+k3s1 | |
##install helm | |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | |
chmod 700 get_helm.sh | |
./get_helm.sh | |
helm repo add rancher-stable https://releases.rancher.com/server-charts/latest |