Skip to content

Instantly share code, notes, and snippets.

Makoto Saito mlsaito

Block or report user

Report or block mlsaito

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
rdump /
Last active Nov 10, 2019
kubectl multi-version brews (kubernetes-cli formula)

kubectl multi-version brews

We need to run multiple versions of kubectl for compatibility with various clusters.

It's a bit easier to get and use multiple versions of kubectl using Homebrew than it is using Macports.

With brew, it's simple to:

  • Install a bunch of versions of kubectl (in the kubernetes-cli Formula)
  • Switch between them as needed
geekgunda /
Last active May 18, 2019
aws-cli MFA access via assume role
# Assumption:
# 1. Your original AWS Creds should be stored at ~/.aws/credentials
# 2. You've corrected ARN for MFA device (search for FIXME)
# 3. You've given correct MFA Code as cli argument
# 4. You have jq installed. Ref:
if [ "$1" == "" ]; then
echo "Usage: `basename "$0"` <MFA-TOKEN>"
yoitsro / gist:8693021
Last active Jul 12, 2019
Node + Restify + Passport + Sessions + WebSockets
View gist:8693021
var restify = require('restify');
// Authentication
var passport = require('passport');
var LocalStrategy = require('passport-local').Strategy;
var sessions = require("client-sessions");
var server = restify.createServer();
darktable / app.yaml
Created Mar 16, 2011
GAE: App.yaml designed for serving a static site on Google App Engine (Python). Copy your static html and files into a folder called "static" next to app.yaml. Contains a bunch of mimetype declarations from html5boilerplate's .htaccess. May not be neces
View app.yaml
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
You can’t perform that action at this time.