Skip to content

Instantly share code, notes, and snippets.

View yeomann's full-sized avatar
Hard work yields success

Danish yeomann

Hard work yields success
View GitHub Profile
@yeomann
yeomann / React Native Simulators Command
Last active October 25, 2018 15:20 — forked from rexlow/md
Run React Native on specific iOS simulator version
To add a simulator
Choose Hardware > Device > Manage Devices.
Xcode opens the Devices window.
At the bottom of the left column, click the Add button (+).
In the dialog that appears, enter a name in the Simulator Name text field and choose the device from the Device Type pop-up menu.
//by default
@yeomann
yeomann / gist:a78513336a91a887b5600b4e16c82530
Last active March 4, 2019 16:29
Vscode unable to watch for file changes in large workspace - Ubuntu 18+
First we can check the current limits etc by following:
```
echo "MAX file watches allowed on system"
cat /proc/sys/fs/inotify/max_user_watches
echo "Current files in project - excluding node_modules"
find . -type f -not -path '**/node_modules/**' | wc -l
echo "Current files in project - including node_modules"
@yeomann
yeomann / 0-model-override.js
Created March 6, 2019 15:34 — forked from spencermefford/0-model-override.js
An alternative to extending Loopback's built in models. In our application, we wanted to create a custom role called "ecm-administrator" that would have the ability to create and manage users.
module.exports = function (app) {
var _ = require('lodash');
var User = app.models.User;
var Role = app.models.Role;
var RoleMapping = app.models.RoleMapping;
var ACL = app.models.ACL;
/*
* Configure ACL's
*/
@yeomann
yeomann / assembly to add 2 numbers by input.asm
Last active April 28, 2025 15:44
assembly to add 2 numbers by input
.MODEL SMALL
.STACK 64
.DATA
MSG1 DB "Enter first number", 13, 10, "$"
MSG2 DB "Enter second number", 13, 10, "$"
MSG3 DB "You entered these 2 numbers", 13, 10, "$"
MSG4 DB "Result is", 13, 10, "$"
.CODE
mov ax,@DATA
mov ds,ax
@yeomann
yeomann / assembly to compare 2 input number.asm
Last active April 28, 2025 01:22
assembly to compare 2 input number
.MODEL SMALL
.STACK 64
.DATA
MSG1 DB 13, 10, "Enter first number ", "$"
MSG2 DB 13, 10, "Enter second number ", "$"
MSG3 DB 13, 10, "You entered these 2 numbers ", "$"
MSGGreater DB 13, 10, "First Number is smaller", "$"
MSGEqual DB 13, 10, "Numbers are equal", "$"
MSGSecondGreater DB 13, 10, "Second Number is smaller", "$"
@yeomann
yeomann / testing-postfix-linklist.cpp
Created May 19, 2019 19:11
testing-postfix-linklist
@yeomann
yeomann / countries.json
Created July 19, 2020 20:28 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@yeomann
yeomann / react-terminology.md
Created July 26, 2020 16:16 — forked from sebmarkbage/react-terminology.md
React (Virtual) DOM Terminology
@yeomann
yeomann / react-terminology.md
Created July 26, 2020 16:16 — forked from sebmarkbage/react-terminology.md
React (Virtual) DOM Terminology

AWS Fargate Docker Simple Deployment Setup with SSL termination

How to:

  • create a Docker-based AWS Fargate/ECS deployment
  • without the Docker containers having a public IP
  • with an Application Load Balancer as reverse proxy / SSL termination proxy sitting in front of the containers

For Fargate/ECS to be able to access your Docker images hosted on ECR (or somewhere else) you'll have to allow outbound internet access to the Fargate subnets. Here's how you do it.