Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<script data-main="main" src="../../scripts/libs/require.js" ></script>
</body>
</html>
@BarDev
BarDev / DuckTyping.js
Last active June 26, 2016 21:37
Show how Duck Typing works in JavaScript
var point2D = {
name: "Home",
x: 3,
y: 5,
calculate: function(){
var output = " x:" + this.x + " y:" + this.y
return output;
}
}
@BarDev
BarDev / js-closures-and-etc.markdown
Created January 2, 2017 19:24
JS Closures and ETC
@BarDev
BarDev / A Windows Setup
Last active March 4, 2022 15:15
Windows Setup
BoxStarter Config Gists
Includes
- BoxStarter-Applications.txt
- BoxStarter-Window-10.txt
- Windows $Profile
@BarDev
BarDev / A VS Code Settings
Last active April 2, 2017 02:36
VS Code Settings
VS Code Settings
@BarDev
BarDev / cloudSettings
Last active December 13, 2021 16:00
Visual Studio Code Sync Settings Gist
{"lastUpload":"2021-12-13T16:00:16.573Z","extensionVersion":"v3.4.3"}
@BarDev
BarDev / Kubernetes.md
Last active May 22, 2018 23:24
Kubernetes Tips and Tricks

Aliases

alias brewctl="/usr/local/bin/kubectl"
alias k=kubectl
alias pods="kubectl get pods --all-namespaces"
alias jobs="kubectl get jobs --all-namespaces"
alias services="kubectl get services --all-namespaces"
alias nodes="kubectl get nodes"
alias endpoints="kubectl get endpoints --all-namespaces"
@BarDev
BarDev / 01 - create-kubernetes-cluster-gossip-aws.md
Last active September 15, 2018 23:48
Create Kubernetes Cluster Gossip on AWS
@BarDev
BarDev / aws-cli-commands.md
Last active September 14, 2018 17:03
AWS CLI Commands
@BarDev
BarDev / kubernetes-commands.md
Last active October 2, 2018 20:59
Kubernetes Commands

Kubernetes Commands

View Container Logs

kubectl logs prometheus-prometheus-0 -c prometheus -n infrastructure

Minikube Commands