Skip to content

Instantly share code, notes, and snippets.

View wrannaman's full-sized avatar

Andrew Pierno wrannaman

View GitHub Profile
@wrannaman
wrannaman / find.sh
Created September 8, 2019 22:31
docker huge ass log files
du -d1 -h /var/lib/docker/containers | sort -h
@wrannaman
wrannaman / gist:c3bce650794dad4577e47f45c5951dca
Last active June 5, 2020 17:38
socks proxy with jump host
# On the Edge Device
ssh -f -N -D 54321 <local username>@localhost
ssh <remote user>@<remote host> -R6666:localhost:54321
# on the jump machine if you're using open ssh you have to change the GatewayPorts to "yes" in /etc/ssh/sshd_config
# on your local machine, point to <remote host>:6666 as your socks proxy
sudo snap install microk8s --classic
microk8s.status --wait-ready
sudo snap alias microk8s.kubectl kubectl
sudo snap alias microk8s.kubectl k
apt update
apt install -y docker.io tmate openssh-server
sudo systemctl enable docker
sudo systemctl start docker
mkdir /var/lib/sugar
rm -rf /etc/kubeedge
rm -rf /etc/kubernetes/
rm -rf /var/lib/etcd
pkill edgecontrolle && pkill kubelet && pkill containerd && pkill etcd && pkill kube-apiserver && pkill kube-* && pkill kube-apiserver && pkill
@wrannaman
wrannaman / install_kube_edge_cloud_node.sh
Last active June 27, 2019 13:49
install kubeedge kubernetes edge computing deployment framework.
apt-get update && apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubelet kubeadm kubectl
apt-mark hold kubelet kubeadm kubectl
#!/bin/bash
sudo apt-get install -y software-properties-common && \
sudo add-apt-repository ppa:tmate.io/archive && \
sudo apt-get update -y --allow-unauthenticated && \
sudo apt-get install -y tmate
cat /dev/zero | ssh-keygen -q -N ""
tmate -S /tmp/tmate.sock new-session -d # Launch tmate in a detached state
tmate -S /tmp/tmate.sock display -p '#{tmate_ssh}' # Prints the SSH connection string
{
"done": true,
"metadata": {
"@type": "type.googleapis.com/google.cloud.speech.v1.LongRunningRecognizeMetadata",
"lastUpdateTime": "2019-03-31T01:02:54.219080Z",
"progressPercent": 100,
"startTime": "2019-03-31T00:51:26.341552Z"
},
"name": "8259363852248137310",
"response": {
{
"jobName": "p1",
"accountId": "xxx",
"results": {
"transcripts": [
{
"transcript": "This call is being recorded. Even has a go Good. How are you? Shouldn't gives his enter. Yeah Don't pronounce your name, is it? I'LL be. It's all be service. Excellent. Yeah. How's it going? Appreciate you taking the time today. Yeah, of course. I was as intrigued by the Post and I was really no medium sos. OK, Why not? Well, you're the brave soul that decided to go first, so we'll see how it goes Way beyond measure Tried Teo calls you mia. We don't make a big public thing of it is a good morning internal Obviously talking entrepreneurs around campus D'Oh shared through, like a newsletter And yeah, it is interesting. I've been on the other side of the table so that it's interesting. Did you ever continue with it, or did you just do a couple episodes and drop it? Yeah, we did about seven episodes. They we obviously like somebody else took the ball and Kip roll with it. I think t
Verifying my Blockstack ID is secured with the address 1wfJqf4GaJ7eT3JXB72LJKmrFkZhLNkF2 https://explorer.blockstack.org/address/1wfJqf4GaJ7eT3JXB72LJKmrFkZhLNkF2