Skip to content

Instantly share code, notes, and snippets.

Boards
1 MI 2020-03-17 08:50:27
2 Inner Layer 2020-03-17 08:56:23
3 Lamination 2020-03-17 13:43:43
4 Drilling 2020-03-17 20:53:14
5 Copper Deposition 2020-03-18 12:26:19
6 Image the outer layers 2020-03-18 23:31:39
7 Pattern Plating 2020-03-19 02:24:01
8 Automatic Optical Inspection(AOI) 2020-03-19 09:27:00
@thomascate
thomascate / gist:b29b5ea249da23108d59eed405484c84
Created November 13, 2019 23:41
Chef Automate restore sql
#!/usr/bin/env bash
if [ -z "$1" ]; then
echo "backup gz file not provided"
exit 1
fi
echo "restoring $backup_path"
restore_path=$1
@thomascate
thomascate / gist:529f60c494378d4a9d46a2d7feb39115
Created November 13, 2019 23:37
Chef Automate backup sql
#!/usr/bin/env bash
date_stamp=$(date +"%Y%m%d%H%M%S")
backup_path=${1:-/mnt/automate_backups/postgresql/pg_dump/$date_stamp}
echo $backup_path
mkdir -p $backup_path
PATH=$PATH:$(HAB_LICENSE=accept-no-persist hab pkg path core/postgresql11)/bin
export PATH
"links" : [
"71st Tony Awards",
"Academica Press",
"Academy Awards",
"Adolf Northern",
"Afanasy Fet",
"Alan Dobie",
"Albanian language",
"Aleksey Arakcheyev",
"Alessio Boni",
#!/usr/bin/env ruby
require 'json'
require 'faker'
input_filename = ARGV[0]
output_filename = ARGV[1]
desired_size = (ARGV[2].to_f) * 1048576
ohai_object = JSON.parse(File.read(input_filename))
The following rules apply for both the Admin client and the Node certs:
If the Public Certifcate contains the X509v3 extensions section, it must have both Client and Server Authentication:
X509v3 Extended Key Usage:
TLS Web Client Authentication, TLS Web Server Authentication
Alternatively, if the Public Certificate does not even have the X509v3 extensions section this is also acceptable and known to work.
#!/bin/sh
set -x
mkdir -p /tmp/certificates
RANDFILE=/tmp/certificates/.rnd
#First, create a private key for the CA:
openssl genrsa -out /tmp/certificates/MyRootCA.key 2048
for i in `seq 101 300`; do sleep 5; echo "scaling to $i nodes"; kubectl scale --replicas $i -f hab_testring.yaml -n new-phone-whodis; done
~15 minutes of scaling
16 services per hab-sup
100 - 300 nodes, 1 node every 5 seconds
cat scale_100_30.tcpdump | awk '{sum += $NF} END {print sum}'
1205992527
1.123 GB
root@raspberrypi:~# ./read_18.py
waiting for announcement
1539742532.7980354
Signal detected
announcement found
annoncement done, waiting for clock signal
start clock sync
sync found, average pulse length = 1.001155
start message found, deconding
[0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0]
My traceroute [v0.85]
fileserv (0.0.0.0) Thu Jul 5 15:51:17 2018
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. 10.1.1.1 0.0% 7 0.3 0.3 0.2 0.3 0.0
2. cpe-72-182-32-1.austin.res.rr.com