Skip to content

Instantly share code, notes, and snippets.

@ghchinoy
ghchinoy / aspnetcore.yaml
Last active October 13, 2020 01:16
Deploy ASP.NET Core App to Google Kubernetes Engine with Istio - Deployment and Service
apiVersion: v1
kind: Service
metadata:
name: aspnetcore-service
labels:
app: aspnetcore
spec:
ports:
- port: 8080
name: http
@ghchinoy
ghchinoy / gist:6657d37ba0802fde0e0692bdd7087417
Created May 3, 2016 19:51
angular2 app npm modules (from quickstart)
my-new-angularapp@1.0.0 /Users/hussain.chinoy/dev/projects/a2/my-new-angularapp
├── @angular/common@2.0.0-rc.0
├── @angular/compiler@2.0.0-rc.0
├── @angular/core@2.0.0-rc.0
├── @angular/http@2.0.0-rc.0
├── @angular/platform-browser@2.0.0-rc.0
├── @angular/platform-browser-dynamic@2.0.0-rc.0
├── @angular/router@2.0.0-rc.0
├── @angular/router-deprecated@2.0.0-rc.0
├── @angular/upgrade@2.0.0-rc.0
@ghchinoy
ghchinoy / connect
Last active May 23, 2016 20:03
ssh to EC2 instance, adding current ip to instance security group if not present, determining instance IP
#!/bin/bash
#
# Connect to AWS EC2 Instance from this IP,
# checking to see if this IP is in the Instance's Security Group,
# adding this IP to the Security Group if not present.
# Then ssh, using a private key file, finding the Instance's public IP.
#
# Leverages AWS CLI, which must be installed and configured, prior.
#
# Use this in a situation where your computer's IP changes and the
@ghchinoy
ghchinoy / Making an Animated GIF from a Movie Clip.md
Last active August 29, 2015 14:23
OS X notes for making an animated gif from a movie

Making an Animated GIF from a Movie Clip

Gifsicle

gifsicle or brew install gifsicle

Extract frames

GIF

Keybase proof

I hereby claim:

  • I am ghchinoy on github.
  • I am ghchinoy (https://keybase.io/ghchinoy) on keybase.
  • I have a public key whose fingerprint is F2D3 AC2D FDC1 CF50 07CE 5392 54BE C286 CBAC 7850

To claim this, I am signing this object:

<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
@ghchinoy
ghchinoy / deviceInfoTest.html
Created June 5, 2014 15:06
A test of Chromium 37.0.2032.0 275078 navigator.getMediaDevices http://dev.w3.org/2011/webrtc/editor/getusermedia.html#enumerating-devices
<!DOCTYPE html>
<html lang="en">
<head>
<title>devices</title>
</head>
<body>
<script type="text/javascript">
navigator.getMediaDevices(function(deviceInfoList) {
deviceInfoList.forEach(function(deviceInfo) {
@ghchinoy
ghchinoy / HelloDartTest.dart
Created October 11, 2011 17:34
Dart compiled to JavaScript & Optimized JavaScript (--optimize)
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Simple test program invoked with an option to eagerly
// compile all code that is loaded in the isolate.
// VMOptions=--compile_all
class HelloDartTest {
static testMain() {
print("Hello, Darter!");