Skip to content

Instantly share code, notes, and snippets.

Avatar
🌏
Working from Asia

Imran Ismail imranismail

🌏
Working from Asia
View GitHub Profile
@imranismail
imranismail / README.md
Last active January 5, 2022 06:54
bff jsonresource param passing
View README.md

Start BFF container

$ docker run --rm -it -v $(pwd)/config.yml:/srv/config.yml ghcr.io/imranismail/bff:v0.5.0

Send a request using the httpbin anything endpoint

$ curl 'http://localhost:5000/params/1' -H 'access-token: this-is-an-access-token'
View kubelet-network.conf
# Allow neighbor cache entries to expire even when the cache is not full
net.ipv4.neigh.default.gc_thresh1 = 0
net.ipv6.neigh.default.gc_thresh1 = 0
# Avoid neighbor table contention in large subnets
net.ipv4.neigh.default.gc_thresh2 = 15360
net.ipv6.neigh.default.gc_thresh2 = 15360
net.ipv4.neigh.default.gc_thresh3 = 16384
net.ipv6.neigh.default.gc_thresh3 = 16384
@imranismail
imranismail / ssz_data_manager_observer.js
Last active January 20, 2020 23:51 — forked from syaifulsz/ssz_data_manager_observer.js
Simple ES Javascript Plugin for Data Manager & Observer (Single state of truth)
View ssz_data_manager_observer.js
class DataManager {
_listeners = [];
constructor(initialData) {
this._data = initialData;
}
dispatch = (data) => {
this._data = data;
@imranismail
imranismail / README.md
Last active October 3, 2019 07:49
Client Credentials Grant
View README.md

token_endpoint_auth_method == client_secret_post

method: POST
path: /oauth2/token
accept: application/json
content-type: application/x-www-form-urlencoded
---
grant_type: string
code: string
View keybase.md

Keybase proof

I hereby claim:

  • I am imranismail on github.
  • I am imranismail (https://keybase.io/imranismail) on keybase.
  • I have a public key ASBLClmsBnZA7O-DyJ_LpLeIud7cHMMK153ZGO-Hp_dHiwo

To claim this, I am signing this object:

@imranismail
imranismail / README.md
Last active May 11, 2019 16:19
API Gateway Comparison
View README.md
- Ambassador Traefik Kong Gloo
Backend Envoy Traefik Nginx Envoy
Storage K8S KV Store (Consul/ETCD/ZooKeeper/BoltDB) Postgres K8S
Authentication Forward Auth Forward Auth, Basic, Digest Plenty of options Paid Option
Matchers Host, Method, Header, Path Host, Method, Header, Path, Query Host, Method, Header, Path Host, Method, Header, Path, Query
Config Native Native Native Native
Service Mesh Integration Istio No Istio Istio
Circuit Breaker Yes Yes Yes Yes
Tracing OpenTracing OpenTracing OpenTracing OpenTracing
@imranismail
imranismail / README.md
Last active May 6, 2019 07:38
Android Hyperlink Test
@imranismail
imranismail / adaptive_web_app.js
Last active April 6, 2019 05:22
Adaptive Web Apps
View adaptive_web_app.js
import React from 'react';
import ReactDOM from 'react-dom';
import Service from './service';
const runApp = (App) =>
ReactDOM.render(<Service.Provider><App /></Service.Provider>, document.getElementById('root'))
import('ontouchstart' in window ? './mobile' : './desktop').then((app) => runApp(app))
@imranismail
imranismail / cluster.ex
Last active January 18, 2019 12:43
BEAM cluster formation in EC2
View cluster.ex
defmodule Cluster do
use GenServer
require Logger
import SweetXml, only: [sigil_x: 2]
def child_spec(_) do
Supervisor.Spec.worker(__MODULE__, [])
end
@imranismail
imranismail / BACKEND.md
Last active May 20, 2020 10:41
Careers at Fave
View BACKEND.md

As a Back-End Engineer at Fave, you will help us design cutting edge scalable products to meet our rapidly growing business. We are looking for someone who cares a lot about their craft. Someone who understands the impact of their work on the users.

Your work is not limited to the end users. Your work impacts the livelihood of local businesses. With you, we can help them to grow their business.

As a Back-End Engineer, you will:

  • Develop back end code, Restful APIs and web applications
  • Perform peer code reviews to optimize code quality or readability
  • Deliver reliable solutions that handle massive data and high traffic.
  • Research & learn new technologies and work towards solving problems and meeting requirements.