Skip to content

Instantly share code, notes, and snippets.

View addodelgrossi's full-sized avatar

Addo addodelgrossi

  • Araraquara, Brazil
View GitHub Profile

slow

This bash script offers quick shortcuts to simulate slower network connections. It is useful when you need to simulate a wireless network on a Linux network server, especially when you are using a virtual machine guest on your local machine or in the cloud.

slow 3G                   # Slow network on default eth0 down to 3G wireless speeds
slow 3G -l 600ms -p 10%   # slow network on eth0 and setup latency to 600ms packetloss to 10%
slow reset                # Reset connection for default eth0 to normal
slow vsat --latency=500ms # Simulate satellite internet  with a high latency

slow dsl -b 1mbps # Simulate DSL with a slower speed than the default

@addodelgrossi
addodelgrossi / README.md
Created November 27, 2017 21:58 — forked from mmasashi/README.md
Install Oracle instant client (sqlplus) v12.1 on MacOSX

Install Oracle instant client (sqlplus) on MacOSX

  1. Get Oracle instant client for MacOSX
  1. Unarchive downloaded zip files into a same directory
  • ex: $HOME/Downloads/instantclient_12_1
  1. Create install.sh and copy the following code and past it on that file.
package main
import (
"context"
"errors"
"fmt"
log "github.com/sirupsen/logrus"
"io/ioutil"
"net/http"
"sync"

Zona

gcloud config set compute/zone us-central1-a

Projeto

gcloud projects list 
#!/bin/bash
echo "listing namespaces"
BACKUP_PATH=backup
NAMESPACES=$(kubectl get namespace | awk '{print $1}' | tail -n +2)
# RESOURCES="$(kubectl api-resources \
# --namespaced \
# --verbs list \