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
@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 <sumonmselim@gmail.com>
<?php
namespace App\Jobs;
use App\Models\Domain;
use App\Models\Event;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
@SumonMSelim
SumonMSelim / Money.php
Created August 6, 2020 11:18
Money with BrickMoney
<?php
namespace App\Entity\Embeddable;
use App\Model\Intl\MoneyInterface;
use Brick\Math\BigNumber;
use Brick\Math\Exception\NumberFormatException;
use Brick\Math\RoundingMode;
use Brick\Money\Context\CustomContext;
use Doctrine\ORM\Mapping as ORM;
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Embeddable
*/