Skip to content

Instantly share code, notes, and snippets.

View pishangujeniya's full-sized avatar
:octocat:
Remote committer

Pishang Ujeniya pishangujeniya

:octocat:
Remote committer
View GitHub Profile
@pishangujeniya
pishangujeniya / install_microk8s.sh
Created March 4, 2023 18:59 — forked from khiemdoan/install_microk8s.sh
Install Microk8s on Ubuntu machine
# Install microk8s from the edge channel (Rancher requires Helm 2.15.1 or above)
sudo snap install microk8s --classic
# Enable useful plugins
sudo microk8s.enable dns dashboard storage ingress helm
# Allow running priviledged Pods (required by Rancher's `cattle-node-agent`)
sudo sh -c 'echo "--allow-privileged=true" >> /var/snap/microk8s/current/args/kube-apiserver'
sudo systemctl restart snap.microk8s.daemon-apiserver.service
# Setup and install Tiller (part of Helm)

See also: Free database hosting

Service Type RAM Storage Limitations
AWS EC2 IaaS 1 GB โš ๏ธ Only free for 1 year
Azure App Service PaaS 1 GB 1 GB โš ๏ธ 60 CPU minutes/day
Azure VM IaaS 1 GB 2 GB (non-persistent) โš ๏ธ Only free for 1 year
Google App Engine PaaS 128 MB 1 GB Standard Environment only
Limited to Go, Java, Node.js, PHP, Python, Ruby; 1 GB/day outbound traffic
Google Compute Engine IaaS 0.6 GB 30 GB 1 GB/month outbound traffic (not including China or Australia). โš ๏ธ After
@pishangujeniya
pishangujeniya / README.md
Created April 21, 2019 09:27 — forked from roachhd/README.md
EMOJI cheatsheet ๐Ÿ˜›๐Ÿ˜ณ๐Ÿ˜—๐Ÿ˜“๐Ÿ™‰๐Ÿ˜ธ๐Ÿ™ˆ๐Ÿ™Š๐Ÿ˜ฝ๐Ÿ’€๐Ÿ’ข๐Ÿ’ฅโœจ๐Ÿ’๐Ÿ‘ซ๐Ÿ‘„๐Ÿ‘ƒ๐Ÿ‘€๐Ÿ‘›๐Ÿ‘›๐Ÿ—ผ๐Ÿ”ฎ๐Ÿ”ฎ๐ŸŽ„๐ŸŽ…๐Ÿ‘ป

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. โœˆ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: ๐Ÿ˜„

@pishangujeniya
pishangujeniya / lr_finder.py
Created March 1, 2019 08:18 — forked from jeremyjordan/lr_finder.py
Keras Callback for finding the optimal range of learning rates
import matplotlib.pyplot as plt
import keras.backend as K
from keras.callbacks import Callback
class LRFinder(Callback):
'''
A simple callback for finding the optimal learning rate range for your model + dataset.
@pishangujeniya
pishangujeniya / keras_metrics.py
Last active February 3, 2020 09:33 — forked from dgrahn/keras_metrics.py
F1 Score Metrics removed from Keras in 2.0. Get True Positive, False Positive, True Negative, False Negative, Precision, Recall, Accuracy
"""Keras 1.0 metrics.
This file contains the precision, recall, and f1_score metrics which were
removed from Keras by commit: a56b1a55182acf061b1eb2e2c86b48193a0e88f7
"""
from keras import backend as K
def precision(y_true, y_pred):
"""Precision metric.