Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Xiaoyun Yang xiaoyunyang

🎯
Focusing
View GitHub Profile
@duluca
duluca / awc-ecs-access-to-aws-efs.md
Last active Jul 23, 2021
Step-by-step Instructions to Setup an AWS ECS Cluster
View awc-ecs-access-to-aws-efs.md

Configuring AWS ECS to have access to AWS EFS

If you would like to persist data from your ECS containers, i.e. hosting databases like MySQL or MongoDB with Docker, you need to ensure that you can mount the data directory of the database in the container to volume that's not going to dissappear when your container or worse yet, the EC2 instance that hosts your containers, is restarted or scaled up or down for any reason.

Don't know how to create your own AWS ECS Cluster? Go here!

New Cluster

Sadly the EC2 provisioning process doesn't allow you to configure EFS during the initial config. After your create your cluster, follow the guide below.

New Task Definition for Web App

If you're using an Alpine-based Node server like duluca/minimal-node-web-server follow this guide:

@Zenexer
Zenexer / Internet Slang and Emoticons.md
Last active Jul 29, 2021
Internet slang, abbreviations, and emoticons
View Internet Slang and Emoticons.md

Internet slang and abbreviations

Slang Variations In use? Meaning
|  ||
|| |_
| || || |_ Yes Loss
/s Yes Sarcasm (suffix)
3cool5u 3cool5me Yes "Too cool for you"; from "2cool4u"
420 Yes "Marijuana"
afaik Yes "As far as I know"
afk Yes "Away from keyboard"
@derhuerst
derhuerst / intro.md
Last active Jul 30, 2021
Installing Git on Linux, Mac OS X and Windows
View intro.md
@kaisellgren
kaisellgren / Signal.scala
Last active Jan 7, 2016
Academic Scala implementations of Functional Reactive Programming -- different Signal[A] and foldp[A, B] implementations as examples
View Signal.scala
// This first Signal[A] impl. uses STM (Ref — transactional references).
class Signal[A](initial: A) {
type SignalListener = Function[A, Unit]
val value = Ref(initial)
val listeners = Ref(Seq[SignalListener]())
def set(newValue: A): Unit = {
// Atomically change the value within a transaction, blocks the thread, but a not an issue since it's a simple operation.