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 / .txt
Last active December 18, 2017 07:35
Change Mamp Domain name
# From Chrome v63 or above it redirects all the .dev domain in localhost to https and it causes trouble for your local development
here is what i've done for my wordpress development with mamp,
i) first i've change the domain name .dev to .test https://cl.ly/2g0z3H3m3F2d
ii) then i've also change my wordpress installed folder name from .dev to .test https://cl.ly/291d31043K3e
iii) now you have to open your hosts file and there you will find your wordpress site url change the .dev to .test https://cl.ly/213o1O3h4305
iv) finally in your wordpress site database from the database wp_options table cahnge the site url and home url to .test https://cl.ly/3k3v3X0C2K26
in case of multisite make sure your wp_site, wp_blogs url also changed to .test domain
@merin83
merin83 / zip.txt
Created January 9, 2018 07:03
zip.zip
zip -r -X folder_name.zip folder_name/
@merin83
merin83 / restapi.txt
Last active May 5, 2018 11:19 — forked from chrismccoy/restapi.txt
WordPress REST API Resources
Allow ALL cross origin requests to WordPress REST API
https://github.com/Shelob9/rest-all-cors
WordPress theme using Rest API and Vue.js
https://github.com/rtCamp/VueTheme
WordPress Post from Front End using REST API and Vue.js
http://jimfrenette.com/2017/01/post-from-front-end-wp-api-vuejs/
An offline-first SPA using Vue.js, the WordPress REST API and Progressive Web Apps
@merin83
merin83 / .php
Created July 5, 2018 11:07
Decode JSON.stringify(object) in php
_log(json_decode(stripslashes_deep($ajax_data['formStyleSettings'])), true);
@merin83
merin83 / .txt
Created July 10, 2018 09:57
Reset To Remote Branch
git reset --hard branchName
@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 / 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 / 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 / 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 / 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)