Skip to content

Instantly share code, notes, and snippets.

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

Milan Thapa thapakazi

💭
🐧 🗡️ 💻
View GitHub Profile
@debendraoli
debendraoli / tithi_meeti.py
Last active April 25, 2022 08:32
Get Nepali date tithi meeti on status bar
#!/usr/bin/env python
"""
@uthor @debendraoli
Compitable with waybar.
"""
import re
from json import dumps
from urllib.request import Request, urlopen
@souzaxx
souzaxx / ENIConfig.yaml
Last active June 21, 2023 06:46
An example using terraform templatefile with Helm
{{- range .Values.zones }}
---
apiVersion: crd.k8s.amazonaws.com/v1alpha1
kind: ENIConfig
metadata:
name: {{ .name }}
spec:
subnet: {{ .subnetID }}
securityGroups:
{{- range $.Values.securityGroupIDs }}
@syntaqx
syntaqx / main.tf
Created April 9, 2019 09:11
Terraform Generate Self-Signed Certificate Files (Nginx+)
resource "tls_private_key" "ca" {
algorithm = "RSA"
}
resource "tls_self_signed_cert" "ca" {
key_algorithm = "RSA"
private_key_pem = "${tls_private_key.ca.private_key_pem}"
subject {
common_name = "${var.domain}"
@jonlabelle
jonlabelle / docker_compose_cheatsheet.md
Last active May 3, 2024 10:18
Docker Compose Cheatsheet
# मान्छे
मान्छेको यो चोला
कसरी बित्यो, खै के होला
छैन केहि उसको पोल्टोमा
बाँचेकै छ, तर त्यो मृग तृष्णामा
आसा थियो ठुलो,
उसका ती मिठा सपना
ब्‍यूँझाउन खोज्थो अरूले
@judge2020
judge2020 / cloudflare-ips-v4.txt
Last active September 26, 2023 19:56
Cloudflare comma-separated IPs
103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,104.16.0.0/12,108.162.192.0/18,131.0.72.0/22,141.101.64.0/18,162.158.0.0/15,172.64.0.0/13,173.245.48.0/20,188.114.96.0/20,190.93.240.0/20,197.234.240.0/22,198.41.128.0/17
@StephenSorriaux
StephenSorriaux / install-kubernetes-archlinux.md
Created October 25, 2018 18:47
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
@CodyReichert
CodyReichert / react-es6-flow-emacs-configuration.md
Last active September 26, 2023 05:56
Configuring Emacs for react, es6, and flow

Configuring Emacs for react, es6, and flow

For a while, JSX and new es6 syntax had flaky support in emacs, but there's been huge work on a lot of packages. Using emacs for JavaScript with React, ES6, and Flow (or Typescript, etc) is really easy and powerful in Emacs these days.

This is how you can work on modern web development projects with full support for tooling like JSX, Flow types, live eslint errors, automatic prettier.js formatting, and more.

Set up web-mode

web-mode provides most of the underlying functionality, so a huge shout-out to the maintainer(s) there.

@potikanond
potikanond / README.md
Last active January 12, 2023 12:30
Example#3.2: build a simple Node.js app image
@FGRibreau
FGRibreau / cors-nginx.conf
Last active May 26, 2020 11:06 — forked from alexjs/cors-nginx.conf
Slightly tighter CORS config for nginx
#
# Slightly tighter CORS config for nginx
#
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs
#
# Despite the W3C guidance suggesting that a list of origins can be passed as part of
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox)
# don't seem to play nicely with this.
#