Skip to content

Instantly share code, notes, and snippets.

View merin83's full-sized avatar
☀️
Creating New Things

Md. Estiak Ahmmed (Merin) merin83

☀️
Creating New Things
View GitHub Profile
@merin83
merin83 / dyld.md
Last active October 10, 2019 21:48
dyld: Library not loaded

ERROR: dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/awk
Reason: image not found
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
Referenced from: /usr/local/bin/awk
Reason: image not found

the error seems to be thrown when searching for /usr/local/opt/readline/lib/libreadline.7.dylib.

@merin83
merin83 / tsconfig.json
Created June 25, 2019 05:43 — forked from ryanatkn/tsconfig.json
A TypeScript 3.5 tsconfig.json with all options organized and with documentation comments
{
// Commented-out options have their default values.
// A lot of the organization could still be improved - suggestions are welcome.
"include": ["src/**/*"],
"exclude": ["node_modules/*"],
// "files": [], // A list of relative or absolute file paths to include.
// "extends": "", // A string containing a path to another configuration file to inherit from.
// "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.
"compilerOptions": {
@merin83
merin83 / docker-cleanup-resources.md
Created June 23, 2019 17:42 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@merin83
merin83 / async-await-promises-loop.md
Last active March 20, 2019 20:44
async/await inside of a loop

When you need it:

To use async/await usually doesn't work in a forEach loop, you need to use a for...of loop instead, or await Promise.all, to actually run async code in parallel.

1. Using for...of loop:

example one:

for async(let item of items) {
  await doSomethingWith(item)
@merin83
merin83 / gist:80a19476a77734641671f5617f64f24a
Created October 20, 2018 19:21
Generate an S3 signature using Node.js
var crypto = require("crypto")
, util = require("util")
, express = require("express");
var s3 = {
access_key_id: "<access_key>"
, secret_key: "<your_secret_key>"
, bucket: "<your_bucket>"
, acl: "public-read"
, https: "false"
@merin83
merin83 / index.html
Created July 18, 2018 17:48 — forked from gaearon/index.html
Multiple React components on a single HTML page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@merin83
merin83 / README.md
Created July 14, 2018 12:45 — 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.

OP: @leonardofed founder @ plainflow.


@merin83
merin83 / aws-certification.md
Created July 14, 2018 12:11 — forked from miglen/aws-certification.md
AWS Certification guide and notes on how to prepare for the aws associate certification architect, sysops and developer exams


AWS Certification notes

Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.

To pass AWS certification, you should have:

  • Sound knowledge about most of the AWS services ( EC2, VPC, RDS, Cloudfront, S3, Route53 etc,)
  • Hands on experience with AWS services.
@merin83
merin83 / .txt
Created July 10, 2018 09:57
Reset To Remote Branch
git reset --hard branchName