Skip to content

Instantly share code, notes, and snippets.

View duluca's full-sized avatar
🎯
Focusing

Doguhan Uluca duluca

🎯
Focusing
View GitHub Profile
@duluca
duluca / awc-ecs-access-to-aws-efs.md
Last active February 5, 2025 13:59
Step-by-step Instructions to Setup an AWS ECS Cluster

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:

@duluca
duluca / Angular VS Code Settings.md
Last active February 23, 2026 07:16
Optimizing VS Code for Angular Development.

Configure VS Code and Angular project with an optimized development experience using a CLI tool

How to Use

npm i -g mrm-task-angular-vscode
npx mrm angular-vscode

Details

Configures:

@duluca
duluca / config.xml
Created October 26, 2017 14:17
Sample Cordova Config file
<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="203091" id="com.excella.central" version="2.3.9" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name>Excella Central</name>
<description>
Connect with your colleagues.
</description>
<author email="support@excella.com" href="https://www.excella.com">
Excella
</author>
<content src="index.html" />
@duluca
duluca / load-test.sh
Created January 18, 2018 00:11 — forked from bigomega/load-test.sh
A simple bash script to do load (performance) testing of a web service
max="$1"
date
echo "url: $2
rate: $max calls / second"
START=$(date +%s);
get () {
curl -s -v "$1" 2>&1 | tr '\r\n' '\\n' | awk -v date="$(date +'%r')" '{print $0"\n-----", date}' >> /tmp/perf-test.log
}

Keybase proof

I hereby claim:

  • I am duluca on github.
  • I am dougi (https://keybase.io/dougi) on keybase.
  • I have a public key ASCO4mKqid0D1Vjc9P3iDzh9SNMkXbugEMCqFbpsybDfrQo

To claim this, I am signing this object: