Skip to content

Instantly share code, notes, and snippets.

Remember that LED stop lights failed because they didn't melt snow.

Eric Greer integrii

Remember that LED stop lights failed because they didn't melt snow.
Block or report user

Report or block integrii

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View clusterrole.yaml
# Include a clusterrole for the kube-controllers component,
# and bind it to the calico-kube-controllers serviceaccount.
kind: ClusterRole
name: calico-kube-controllers
# Pods are monitored for changing labels.
# The node controller monitors Kubernetes nodes.
# Namespace and serviceaccount labels are used for policy.
integrii / instructions
Last active Nov 8, 2018
Create a Google Image Host Secret
View instructions
You can create the file with the following script. The script creates the necessary Google Cloud Platform (GCP) service account and gives it access to the registry.
# create a GCP service account; format of account is email address
SA_EMAIL=$(gcloud iam service-accounts --format='value(email)' create k8s-gcr-auth-ro)
# create the json key file and associate it with the service account
gcloud iam service-accounts keys create k8s-gcr-auth-ro.json --iam-account=$SA_EMAIL
# get the project id
PROJECT=$(gcloud config list core/project --format='value(core.project)')
# add the IAM policy binding for the defined project and service account
gcloud projects add-iam-policy-binding $PROJECT --member serviceAccount:$SA_EMAIL --role roles/storage.objectViewer
integrii / sleep.js
Created Sep 23, 2017
Sleep in javascript
View sleep.js
function wait(ms){
var start = new Date().getTime();
var end = start;
while(end < start + ms) {
end = new Date().getTime();
integrii /
Created Jul 17, 2016
This systemctl chain can take the TCP stack up to 2M connections.
sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
ulimit -n 20000000
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
sysctl -w net.ipv4.tcp_rmem='1024 4096 16384'
sysctl -w net.ipv4.tcp_wmem='1024 4096 16384'
sysctl -w net.core.rmem_max=16384
sysctl -w net.core.wmem_max=16384

Keybase proof

I hereby claim:

  • I am integrii on github.
  • I am eg ( on keybase.
  • I have a public key whose fingerprint is CFE7 48DD D2EC AEEF 828A 98B6 353C 6078 36AA 0511

To claim this, I am signing this object:

View gist:8f88e38180d84969b88d1bf07deab98f
ssh -D 8123 -f -C -q -N
Explanation of arguments
-D: Tells SSH that we want a SOCKS tunnel on the specified port number (you can choose a number between 1025-65536)
-f: Forks the process to the background
-C: Compresses the data before sending it
-q: Uses quiet mode
-N: Tells SSH that no command will be sent once the tunnel is up
integrii / .tmux.conf
Last active Sep 18, 2015 — forked from shinzui/tmux.conf
View .tmux.conf
# ~/.tmux.conf
# See the following files:
# /opt/local/share/doc/tmux/t-williams.conf
# /opt/local/share/doc/tmux/screen-keys.conf
# /opt/local/share/doc/tmux/vim-keys.conf
# URLs to read:
integrii / squid.conf
Created Jul 17, 2015
authenticated squid.conf for centos 7
View squid.conf
# setup password file
sudo htdigest -c /etc/squid/passwords local username
integrii /
Created Mar 13, 2015
Simple web request with Java on Android
URL apiUrl = null;
int statusCode = 0;
String responseData = "";
try {
// setup new web request parameters
apiUrl = new URL("");
HttpURLConnection connection = null;
connection = (HttpURLConnection) apiUrl.openConnection();
integrii / gist:9856eb7fe1db0e0bb417
Last active Aug 29, 2015
Get output of non-blocking bash commands with python
View gist:9856eb7fe1db0e0bb417
# Be sure to run this as root!
import subprocess
def runcmd(command, timeout):
command = command + " & pid=$!;sleep " + str(timeout) + "; kill -9 $pid"
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
You can’t perform that action at this time.