Skip to content

Instantly share code, notes, and snippets.

View SumonMSelim's full-sized avatar
🎯
Focusing

Muhammad Sumon Molla Selim SumonMSelim

🎯
Focusing
View GitHub Profile
# #########################
# Frontend service
# #########################
# node:22-alpine version should be in sync with compatible react,next,react-dom verions in frontend/package.json
# Stage 1: Build
FROM node:22-alpine AS insights-frontend-builder
WORKDIR /app
# install frontend dependencies before copying the frontend code
# into the container so we get docker cache benefits
ARG goversion=1
ARG alpineversion=3.20.3
ARG argocdversion=v2.12.6
#########################
# Base builder
#########################
FROM golang:${goversion}-alpine3.20 AS builder-base
WORKDIR /core
RUN apk --no-cache --update add \
{
    "success": true,
    "message": "User account created.",
    "data": {
        "access_token": "JWT-TOKEN",
        "token_type": "bearer",
        "expires_at": "2025-02-01 22:19:48"
        "user": {
            "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
@SumonMSelim
SumonMSelim / sendAWSSMS.php
Created September 20, 2023 19:47
Sends a text message (SMS message) directly to a phone number using Amazon SNS.
<?php
use Aws\Sns\SnsClient;
use Aws\Exception\AwsException;
/**
* Sends a text message (SMS message) directly to a phone number using Amazon SNS.
*
* This code expects that you have AWS credentials set up per:
* https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials.html
{
"connector.class": "io.confluent.connect.jdbc.JdbcSinkConnector",
"transforms.TimestampConverter1.target.type": "Timestamp",
"transforms.TimestampConverter2.target.type": "Timestamp",
"connection.password": "xxxxxxxxx",
"transforms": "RenameField1,RenameField2,TimestampConverter1,TimestampConverter2",
"transforms.TimestampConverter1.type": "org.apache.kafka.connect.transforms.TimestampConverter$Value",
"transforms.RenameField1.type": "org.apache.kafka.connect.transforms.ReplaceField$Value",
"transforms.TimestampConverter2.type": "org.apache.kafka.connect.transforms.TimestampConverter$Value",
"insert.mode": "upsert",
@SumonMSelim
SumonMSelim / openvpn.md
Last active November 26, 2021 22:18
Creating the Server Certificate, Key, and Encryption Files

Server: Keypair and certificate request

req: /home/sumon/openvpn/EasyRSA/pki/reqs/server.req
key: /home/sumon/openvpn/EasyRSA/pki/private/server.key

CA: import request with server.req file

./easyrsa import-req /home/deploy/openvpn/server.req server
## Kodeeo Limited is looking for a Frontend Developer (JS/React.js).
### Must have:
- Solid understanding of JS/ES6+
- Solid understanding of React.js and related tools
- At least 1+ year of working experience with React.js
- Experience with Functional Component(s) and Hook(s)
- Experience with at least one state management solution (Redux Toolkit/Zustand/Recoil)
- Experience with consuming REST API
@SumonMSelim
SumonMSelim / systemd.README
Created October 21, 2021 16:45
Run a Go app with systemd
# /etc/systemd/system/url-shortener.service
```
[Unit]
Description=url-shortener
Wants=network.target
After=network.target
[Service]
Type=simple
age>=24,<30
islamic==100
honest==100
polite==100
education=="graduate"
height>=163cm
weight<60
@SumonMSelim
SumonMSelim / Class.php
Created July 25, 2021 21:06
PHP Class Template
<?php
declare(strict_types=1);
namespace ${NAMESPACE};
/**
* ${NAME}
*
* @author Muhammad Sumon Molla Selim <[email protected]>