Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🐧 🗡️ 💻

Milan Thapa thapakazi

💭
🐧 🗡️ 💻
View GitHub Profile
View docker_compose_cheatsheet.md
View मान्छे
# मान्छे
मान्छेको यो चोला
कसरी बित्यो, खै के होला
छैन केहि उसको पोल्टोमा
बाँचेकै छ, तर त्यो मृग तृष्णामा
आसा थियो ठुलो,
उसका ती मिठा सपना
ब्‍यूँझाउन खोज्थो अरूले
@StephenSorriaux
StephenSorriaux / install-kubernetes-archlinux.md
Created Oct 25, 2018
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
@CodyReichert
CodyReichert / react-es6-flow-emacs-configuration.md
Last active Aug 4, 2020
Configuring Emacs for react, es6, and flow
View react-es6-flow-emacs-configuration.md

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.

@FGRibreau
FGRibreau / cors-nginx.conf
Last active May 26, 2020 — forked from alexjs/cors-nginx.conf
Slightly tighter CORS config for nginx
View cors-nginx.conf
#
# 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.
#
@StevenACoffman
StevenACoffman / fluent-filebeat-comparison.md
Last active Jun 18, 2020
Fluentd Fluent-bit FileBeat memory and cpu resources
View fluent-filebeat-comparison.md

Fluent-bit rocks

A short survey of log collection options and why you picked the wrong one. 😜

Who am I? Where am I from?

I'm Steve Coffman and I work at Ithaka. We do JStor (academic journals) and other stuff. How big is it?

Number what it means
101,332,633 unique visitors in 2017
@enricofoltran
enricofoltran / main.go
Last active Jul 20, 2020
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@sunsided
sunsided / gp.sh
Created Aug 24, 2017
kubectl color output: finally you can tell Pending from Running
View gp.sh
# https://unix.stackexchange.com/a/10065
# if stdout is a terminal
if test -t 1; then
# see if it supports colors
ncolors=$(tput colors)
if test -n "$ncolors" && test $ncolors -ge 8; then
bold="$(tput bold)"
underline="$(tput smul)"
standout="$(tput smso)"
normal="$(tput sgr0)"
@reagent
reagent / 01_basic.go
Last active Aug 7, 2020
Custom HTTP Routing in Go
View 01_basic.go
package main
import (
"io"
"log"
"net/http"
)
func main() {
@alexellis
alexellis / README.md
Last active Jun 1, 2018
Live Stream to YouTube from your RPi with Docker
View README.md

Live Stream to YouTube from your RPi with Docker

Normally ffmpeg needed to stream to YouTube takes 8-9 hours to build on a PiZero. You can download my image here and run it with your secret key:

docker run --privileged -ti alexellis2/streaming:17-5-2017 <secret>

Bill of materials:

You can’t perform that action at this time.