Skip to content

Instantly share code, notes, and snippets.

View foxish's full-sized avatar
🎯
Focusing

Anirudh Ramanathan foxish

🎯
Focusing
View GitHub Profile
basePath: /api/v1
definitions:
signadotv1.CreateClusterRequest:
properties:
name:
type: string
type: object
signadotv1.CreateClusterResponse:
properties:
id:
@foxish
foxish / dynamic_fwd_http_sni.yaml
Created April 14, 2021 15:21 — forked from skiptomyliu/dynamic_fwd_http_sni.yaml
Dynamic Forward Proxy HTTP + SNI
# Transparent Envoy Proxy that forwards http/https
# Create iptables to route 80 + 443 to 10000:
# $ iptables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner envoyuser --dport 443 -j REDIRECT --to-port 10000
# $ iptables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner envoyuser --dport 80 -j REDIRECT --to-port 10000
# Run envoy
# $ envoy -c dynamic_fwd_http_sni.yaml -l debug
admin:
access_log_path: /home/envoyuser/admin/admin_access.log
address:
└─< (master)>──» ./gcbmgr tail 7b4c1814-1789-46ce-b48a-793bc58be2eb 0 < 13:38:09
gcbmgr: BEGIN main on anirudh-XPS-13-9370 Tue Jul 17 13:38:10 PDT 2018
Checking /home/anirudh/Documents/code/src/src/k8s.io/release state: OK
Checking/setting cloud tools: OK
Checking required system packages: OK
Waiting for GCP to initiate stream...
----------------------------------------------------------------------------------------------- REMOTE BUILD OUTPUT -----------------------------------------------------------------------------------------------
@foxish
foxish / zoonavigator.docker-compose.yml
Created June 14, 2018 19:18 — forked from elkozmon/zoonavigator.docker-compose.yml
Docker compose file for ZooNavigator with Zookeeper
version: '2.1'
services:
web:
image: elkozmon/zoonavigator-web:latest
container_name: zoonavigator-web
ports:
- "8000:8000"
environment:
API_HOST: "api"
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
@foxish
foxish / flags.txt
Last active December 12, 2017 21:49
currently supported flags
spark.kubernetes.namespace
spark.kubernetes.driver.docker.image
spark.kubernetes.executor.docker.image
spark.kubernetes.docker.image.pullPolicy
spark.kubernetes.authenticate.driver.oauthToken
spark.kubernetes.authenticate.driver.oauthTokenFile
spark.kubernetes.authenticate.driver.clientKeyFile
spark.kubernetes.authenticate.driver.clientCertFile
spark.kubernetes.authenticate.driver.caCertFile
@foxish
foxish / gist:e48b223d1d8067308e572c0285f6b400
Created November 27, 2017 04:34 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
@foxish
foxish / Pi Computation
Created June 19, 2017 08:47
Spark Jupyter Examples
%pyspark
from random import random
partitions = 2
n = 100000 * partitions
def f(_):
x = random() * 2 - 1
y = random() * 2 - 1
@foxish
foxish / index.html
Created March 27, 2017 02:33
React JS Example // source http://jsbin.com/papasaq
<!DOCTYPE html>
<html>
<head>
<script src="https://fb.me/react-15.0.0.js"></script>
<script src="https://fb.me/react-dom-15.0.0.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>React JS Example</title>
</head>
<body>
@foxish
foxish / index.html
Created March 27, 2017 01:35
React JS Example // source http://jsbin.com/papasaq
<!DOCTYPE html>
<html>
<head>
<script src="http://fb.me/react-0.13.0.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>React JS Example</title>
</head>
<body>
<script src="https://code.jquery.com/jquery-git.js"></script>