Skip to content

Instantly share code, notes, and snippets.

View ramene's full-sized avatar

Ramene Anthony ramene

  • Earth
View GitHub Profile
@ramene
ramene / ui.yml
Last active October 23, 2020 07:18
traefik ui
---
apiVersion: v1
kind: Service
metadata:
name: traefik-web-ui
namespace: default
spec:
selector:
k8s-app: traefik-ingress-lb
ports:
@ramene
ramene / .babelrc
Last active July 30, 2020 17:04
vue, jsx and typescript transpilation using Babel
{
"presets": ["@babel/env", "@babel/preset-typescript"],
"plugins": [
"@babel/proposal-object-rest-spread",
["@babel/plugin-proposal-decorators", { "legacy": true }], // credit: https://2ality.com/2019/10/babel-loader-typescript.html
["@babel/plugin-proposal-class-properties", { "loose": true }]
]
}
@ramene
ramene / .tmux.conf
Created June 10, 2020 02:11 — forked from tsl0922/.tmux.conf
vim style tmux config
# vim style tmux config
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
@ramene
ramene / kubeui.yml
Last active May 6, 2020 16:48
plugin-kubeui
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: kubeui
spec:
homepage: https://github.com/kui-shell/plugin-kubeui
shortDescription: Pop-up visualizations for kubectl operations
description: |
This is a kubectl plugin that offers pop-up window visualizations
of the standard kubectl operations. For example, in response to a
#!/usr/bin/env python
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
import json
import sys
# Modify COMPONENT_NAME to name your component differently.
COMPONENT_NAME = 'Gist'
@ramene
ramene / hiccup.js
Last active January 8, 2021 17:24
RoamResearch :hiccup styling
:hiccup [:iframe {
:height 550
:width 750
:scrollbar 0
:srcdoc "<!DOCTYPE html> <div id=\"observablehq-eb3a0382\">
<div class=\"observablehq-chart\"></div>
</div>
<script type=\"module\">
import {Runtime, Inspector} from \"https://cdn.jsdelivr.net/npm/@observablehq/runtime@4/dist/runtime.js\";
{
"files.exclude": {
"**/._*": true,
"**/*.pyc": {"when": "$(basename).py"},
"**/__pycache__": true
},
"python.analysis.disabled": [
"unresolved-import",
"use-before-def"
],
import pulumi
from pulumi import ResourceOptions
from pulumi_kubernetes import Provider
from pulumi_kubernetes.apps.v1 import Deployment
from pulumi_kubernetes.core.v1 import Service
from pulumi_azure.core import ResourceGroup
from pulumi_azure.role import Assignment
from pulumi_azure.containerservice import KubernetesCluster, Registry
from pulumi_azure.network import VirtualNetwork, Subnet
from pulumi_azuread import Application, ServicePrincipal, ServicePrincipalPassword
apiVersion: argoproj.io/v1alpha1 # Changed from apps/v1
kind: Rollout # Changed from Deployment
# ----- Everything below this comment is the same as a deployment -----
metadata:
name: example-rollout
spec:
replicas: 2
selector:
matchLabels:
app: nginx
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tiller