Skip to content

Instantly share code, notes, and snippets.

View thapakazi's full-sized avatar
💭
🐧 🗡️ 💻

Milan Thapa thapakazi

💭
🐧 🗡️ 💻
View GitHub Profile
@thapakazi
thapakazi / jibri_cron.sh
Last active May 7, 2021 13:48
helper script for jibri on ASG
#!/bin/bash
meta_url='http://169.254.169.254'
AWS_REGION=$(curl --silent $meta_url/latest/dynamic/instance-identity/document | jq -r .region)
INSTANCE_ID=$(curl --silent $meta_url/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 August 21, 2020 16:33
simplified sentry setup values :D
user:
create: true
email: "admin:P"
password: "superHardSecret"
mail:
backend: "smtp"
useTls: true
username: "username..."
;;; 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 February 11, 2020 02:36
things you can start with...

Must learn

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

Online Resource:

@thapakazi
thapakazi / basic_web.txt
Created January 10, 2020 03:40
basic web componets
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 November 19, 2019 08:27
sample mdx file

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!
@thapakazi
thapakazi / install-kubernetes-archlinux.md
Created June 12, 2019 09:34 — forked from StephenSorriaux/install-kubernetes-archlinux.md
Install Kubernetes on bare-metal ArchLinux host

Installing Kubernetes on ArchLinux

Packages

pacman -S curl docker ebtables ethtool wget unzip

Also cfssl is needed but available on AUR, using pacaur

pacaur -S cfssl
@thapakazi
thapakazi / _aws_golang_examples.md
Created April 21, 2019 07:44 — forked from eferro/_aws_golang_examples.md
golang aws: examples

AWS Golang SDK examples

@thapakazi
thapakazi / egg_drop_challenge.materials.org
Created April 12, 2019 03:24
don't let your eggs crack ;)

Eggs, save them for dinner :P

Supplies

  • 1 egg
  • a newspaper sheet
  • 6-10 straws
  • a plastic bag
  • a string
  • a duct tape