Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Muhammad Sumon Molla Selim SumonMSelim

🎯
Focusing
View GitHub Profile
View sink connector.json
{
"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",
View gist:25b57af63dfcb003838371a624ac974f
<?php
/*
This call sends a message to the given recipient with vars and custom vars.
*/
require 'vendor/autoload.php';
use MailjetResources;
$mj = new MailjetClient(getenv('MJ_APIKEY_PUBLIC'), getenv('MJ_APIKEY_PRIVATE'),true,['version' => 'v3.1']);
$body = [
'Messages' => [
[
@SumonMSelim
SumonMSelim / openvpn.md
Last active Nov 26, 2021
Creating the Server Certificate, Key, and Encryption Files
View openvpn.md

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
View gist:fdf6c4a9f486a91f5fbfd7cddd3f26f4
## 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 Oct 21, 2021
Run a Go app with systemd
View systemd.README
# /etc/systemd/system/url-shortener.service
```
[Unit]
Description=url-shortener
Wants=network.target
After=network.target
[Service]
Type=simple
View requirements.txt
age>=24,<30
islamic==100
honest==100
polite==100
education=="graduate"
height>=163cm
weight<60
@SumonMSelim
SumonMSelim / Class.php
Created Jul 25, 2021
PHP Class Template
View Class.php
<?php
declare(strict_types=1);
namespace ${NAMESPACE};
/**
* ${NAME}
*
* @author Muhammad Sumon Molla Selim <sumonmselim@gmail.com>
View CreateEvent.php
<?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 Aug 6, 2020
Money with BrickMoney
View Money.php
<?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;
View Money.php
<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Embeddable
*/