Skip to content

Instantly share code, notes, and snippets.

View ZECTBynmo's full-sized avatar
💻
must go faster

Mike Vegeto ZECTBynmo

💻
must go faster
View GitHub Profile
@stesie
stesie / index.html
Created April 1, 2016 22:28
AWS IoT-based serverless JS-Webapp Pub/Sub demo
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>AWS IoT Pub/Sub Demo</title>
</head>
<body>
<h1>AWS IoT Pub/Sub Demo</h1>
<form>
<button type="button" id="connect">connect!</button>
@tpryan
tpryan / Makefile
Created April 19, 2017 21:54
Kubernetes Makefile
BASEDIR = $(shell pwd)
RULELIST = $(shell gcloud compute forwarding-rules list --format='value[terminator=" "](name)')
include Makefile.properties
all: cluster app
app: db api frontend
# Requests a GKE cluster
cluster:
@ZECTBynmo
ZECTBynmo / Rocks.md
Last active March 12, 2019 23:26
Rocks

Rocks

Sync V3 Infrastructure Abstraction

Basics

At its core, the system is event driven.

ex: "a record changed", "an Entity changed", or [future event type]

@aranajhonny
aranajhonny / vpn.js
Created February 5, 2020 17:36
detect if are using vpn
function detectVPN() {
var browserTimezone = Intl.DateTimeFormat().resolvedOptions().timeZone
return fetch(`https://ipapi.co/json`)
.then(function(response) { return response.json() })
.then(function (data) {
var ipTimezone = data.timezone
console.log(`browser timezone: ${browserTimezone}`, `ip timezone: ${ipTimezone}`)
return {
browser: browserTimezone,
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
  creationTimestamp: null
  labels:
    kops.k8s.io/cluster: prod.my.cluster
  name: spot-nodes
spec:
 image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20210415