Skip to content

Instantly share code, notes, and snippets.

💭
🐧 🗡️ 💻

Milan Thapa thapakazi

💭
🐧 🗡️ 💻
View GitHub Profile
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!
View docker_compose_cheatsheet.md
@thapakazi
thapakazi / install-kubernetes-archlinux.md
Created Jun 12, 2019 — forked from StephenSorriaux/install-kubernetes-archlinux.md
Install Kubernetes on bare-metal ArchLinux host
View install-kubernetes-archlinux.md

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
View egg_drop_challenge.materials.org

Eggs, save them for dinner :P

Supplies

  • 1 egg
  • a newspaper sheet
  • 6-10 straws
  • a plastic bag
  • a string
  • a duct tape
@thapakazi
thapakazi / vpc.yaml
Created Apr 11, 2019
create_vpc work in progress
View vpc.yaml
---
Description: >-
An AWS VPC with model according to https://medium.com/aws-activate-startup-blog/practical-vpc-design-8412e1a18dcc
AWSTemplateFormatVersion: 2010-09-09
Resources:
VPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
EnableDnsSupport: true
View play_with_kubernetes-check_on_graceful_deployment.org

flood on the server with 100s or request with vegeta

echo "GET http://10.110.132.62:2048/hostname"| vegeta attack -rate=100/s  -duration=1m |tee results.bin |  vegeta encode

watch changes on all pods

watch -d -n 0.01 'kubectl get po  -o wide'   
You can’t perform that action at this time.