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 / make_mojave_iso.sh
Last active November 18, 2020 21:51
Create MacOS ISO
#!/bin/bash
# Install OSX Mojave through App Store. After downloading, the "InstallESD" is automatically mounted, which causes this script to fail.
# Therefore, "/Volumes/InstallESD" should be unmounted before running this script!
# Summary of instructions
#1 Download Mojave from App Store
#2 open terminal and run "umount /Volumes/InstallESD"
#3 make script executable: "chmod +x make_mojave_iso.sh"
#4 Run "./make_mojave_iso.sh"
@lamlion
lamlion / dht22temp.py
Created March 1, 2019 23:27
DHT22 Python Temperature script
# Raspberry Pi Tips & Tricks - https://raspberrytips.nl
import Adafruit_DHT
humidity, temperature = Adafruit_DHT.read_retry(Adafruit_DHT.DHT22, 4)
humidity = round(humidity, 2)
temperature = round(temperature, 2)
if humidity is not None and temperature is not None:
@lamlion
lamlion / testflask_dht22_temp.py
Created March 1, 2019 23:29
Sample Flask app to read DHT22 temperature
from flask import Flask
import Adafruit_DHT
app = Flask(__name__)
@app.route('/hello')
def helloWorldHandler():
return 'Hello World from Flask running on the PI!'
@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.

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 / 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.


@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 / 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:
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 / AWS-S3static-website.md
Last active November 18, 2020 21:44
AWS S3 static website