Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🐧 🗡️ 💻

Milan Thapa thapakazi

💭
🐧 🗡️ 💻
View GitHub Profile
View hotkeys.yml
hotKey:
# Hitting Shift-0 navigates to your pod view
shift-0:
shortCut: Shift-0
description: Viewing pods
command: pods
shift-9:
shortCut: Shift-9
description: View deployments
command: dp
View terraform-debug.tf
locals {
key = "hello"
value = local.key
}
resource "null_resource" "example1" {
provisioner "local-exec" {
command = "echo ${local.value}"
}
}
@thapakazi
thapakazi / Dockerfile
Created Nov 26, 2020
hubot dockerfile
View Dockerfile
FROM node:alpine
RUN apk add --no-cache --update python make g++ && \
rm -rf /var/cache/apk/*
ENV HUBOT_USER hubot
ENV HUBOT_GROUP hubot
ENV HUBOT_HOME /hubot
RUN addgroup -g 501 $HUBOT_GROUP && \
View gitlab-svc-account.yml
apiVersion: v1
kind: ServiceAccount
metadata:
name: gitlab
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: gitlab-admin
@thapakazi
thapakazi / jibri_cron.sh
Last active Oct 19, 2020
helper script for jibri on ASG
View jibri_cron.sh
#!/bin/bash
# helper script to scale jibri on aws/asg
# based on: https://community.jitsi.org/t/aws-scalability-help-for-jitsi-and-jibri/16269/15
# and https://community.jitsi.org/t/aws-scalability-help-for-jitsi-and-jibri/16269/2
AWS_REGION=$(curl --silent http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region)
INSTANCE_ID=$(curl --silent http://169.254.169.254/latest/meta-data/instance-id)
ASG_NAME=$(aws autoscaling describe-auto-scaling-instances --instance-ids $INSTANCE_ID --region $AWS_REGION | jq -r '.[] | .[] | .AutoScalingGroupName')
@thapakazi
thapakazi / sentry_simplified_values.yaml
Created Aug 21, 2020
simplified sentry setup values :D
View sentry_simplified_values.yaml
user:
create: true
email: "admin:P"
password: "superHardSecret"
mail:
backend: "smtp"
useTls: true
username: "username..."
View rigel-theme.el
;;; rigel-theme.el --- Custom face theme for Emacs
;; This theme was generated with vimco.el
;; You can get it from:
;; <https://github.com/UwUnyaa/vimco>
;;; Code:
(deftheme rigel)
@thapakazi
thapakazi / curated_list.org
Created Feb 11, 2020
things you can start with...
View curated_list.org

Must learn

  • git
  • programming: Javascript
  • Web: html, css
  • Backend:
    • ruby (ruby on rails)
    • or python

Online Resource:

@thapakazi
thapakazi / basic_web.txt
Created Jan 10, 2020
basic web componets
View basic_web.txt
created using: https://asciiflow.com
XXX
XXXXX XXX
XXXXX X +----------------------------------------------------------------------------------+
XX XX | |
X D N S XX | +------------------------------------------------------+ |
X X | | | |
XX XXX | | | |
XXX XXXX | | | |
@thapakazi
thapakazi / sample.md
Created Nov 19, 2019
sample mdx file
View sample.md

TOPIC_NAME

TOPIC_DETAILS blah blah blah...

Table of Contents

  • topic content 1 Reference
  • Renders actual, "native" React DOM elements
  • Allows you to escape or skip HTML (try toggling the checkboxes above)
  • If you escape or skip the HTML, no dangerouslySetInnerHTML is used! Yay!