Skip to content

Instantly share code, notes, and snippets.

View lamlion's full-sized avatar
🎯
Focusing

Feisal Lam-Lion lamlion

🎯
Focusing
View GitHub Profile
@lamlion
lamlion / container-desktop-shell.sh
Created January 24, 2023 23:47 — forked from rimelek/container-desktop-shell.sh
Custom shell to use Docker Desktop and Rancher Desktop on the same machine using their own clients
#!/bin/bash
set -eu -o pipefail
function docker_desktop() {
CONTEXT_DESC="Docker Desktop"
DD_HOME="$HOME/.docker"
@lamlion
lamlion / zsh-docker-context-prompt-agnoster.sh
Created January 24, 2023 23:47 — forked from rimelek/zsh-docker-context-prompt-agnoster.sh
Custom prompt showing the current Docker context configured using environment variables. ZSH theme is "agnoster". This gist is not the whole zshrc file, only the relevant parts.
ZSH_THEME="agnoster"
plugins=(git docker docker-compose)
prompt_docker_host() {
docker_icon="\xF0\x9F\x90\xB3"
if [[ -n "$DOCKER_HOST" ]]; then
if [[ -n "$DOCKER_CONTEXT_HOST" ]] && [[ "$DOCKER_CONTEXT_HOST" == "$DOCKER_HOST" ]]; then
prompt_segment red default "$docker_icon $DOCKER_CONTEXT"
else
@lamlion
lamlion / README.md
Created June 15, 2021 21:49 — forked from triangletodd/README.md
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
import nltk, sys, csv
from nltk.tokenize import TweetTokenizer
from nltk.corpus import stopwords
from datetime import datetime
import pandas as pd
import numpy as np
import string
from collections import Counter
@lamlion
lamlion / homeassistant-compose.yml
Created August 10, 2020 21:30 — forked from albertnis/homeassistant-compose.yml
Docker compose (v1) file with Home Assistant, MQTT broker and Node-RED. For Raspberry Pi/ARM.
homeassistant:
container_name: homeassistant
restart: always
net: "host"
user: "1000"
environment:
- PUID=1000
- PGID=1000
image: homeassistant/armhf-homeassistant
ports:
@lamlion
lamlion / make_catalina_iso.sh
Last active November 17, 2020 03:45 — forked from davertay/make_catalina_iso.sh
Create Catalina ISO file for VM or Bootable USB
#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================
hdiutil create -o /tmp/Catalina.cdr -size 10000m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction
hdiutil detach "/Volumes/Install macOS Catalina"
@lamlion
lamlion / README.md
Created September 17, 2019 07:03 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution

@lamlion
lamlion / Windows10AWSEC2.md
Created May 14, 2019 21:50 — forked from peterforgacs/Windows10AWSEC2.md
Running Windows 10 on AWS EC2

Running Windows 10 on AWS EC2

Downloading the image

Download the windows image you want.

AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)

So Home wont work.