Skip to content

Instantly share code, notes, and snippets.

View PhakornKiong's full-sized avatar
🎯
Focusing

Phakorn Kiong PhakornKiong

🎯
Focusing
  • Singapore/Malaysia
View GitHub Profile
@PhakornKiong
PhakornKiong / curlPUS.sh
Created November 6, 2021 14:16
curlPUS.sh
curl --location --request POST 'https://mysejahtera.malaysia.gov.my/clockinTraveller' \
--header 'Content-Type: application/json' \
--data-raw '{
"contact": "60123456789"
}'
@PhakornKiong
PhakornKiong / mysejahteraTraveller.json
Created November 6, 2021 14:05
mysejahtera traveller
{
"name": string,
"contact": string,
"userStatus": "PUS",
"tenant": string,
"location": string,
"identityNumber": string,
"passportNumber": string,
"nationality": stringstring,
"flightNum": string,
@PhakornKiong
PhakornKiong / curlForgetPassswordSejahtera.sh
Created October 24, 2021 08:36
curlForgetPassswordSejahtera.sh
curl --location --request POST 'https://mysejahtera.malaysia.gov.my/register/forgotPassword?locale=en_US' \
--header 'Content-Type: application/json' \
--data-raw '{
"emailOrUserName": "60111111111"
}'
@PhakornKiong
PhakornKiong / curlSejahtera.sh
Created October 17, 2021 12:07
curlSejahtera.sh
curl --location --request POST 'https://mysejahtera.malaysia.gov.my/checkin/registerPhone' \
--form 'countryCode="60"' \
--form 'contactNumber="12345678"'
@PhakornKiong
PhakornKiong / curlSejahtera.sh
Last active October 16, 2021 18:52
curlSejahtera.sh
curl --location --request POST 'https://mysejahtera.malaysia.gov.my/register/v2/rest/contactSupport' \
--header 'Content-Type: application/json' \
--data-raw '{
"userName": "afa@gmail.com",
"email": "afa@gmail.com",
"issueCategory": "MySejahtera support: Vaccination Overseas",
"content": "<br/>My registered User ID is an Email Address. <br/>Email Address: <b>afa@gmail.com</b><br/><br/>Name : <b>fasdfsafsa</b><br/>IC / Passport: <b>asa12312</b><br/>Phone Number: <b>12312321</b><br/>Vaccinee: <b>Self</b><br/> Vaccine Administered: <b>Zifivax</b><br/><br/>1st Dose Date: <b>01/10/2021</b><br/>1st Dose Country: <b>Barbados</b><br/>1st Dose Batch / Serial No: <b>1Caaa</b>",
"attachment": {
"docName": "unnamed.bmp",
"docType": "bmp",
{
"userName": "afa@gmail.com",
"email": "afa@gmail.com",
"issueCategory": "MySejahtera support: Vaccination Overseas",
"content": "<br/>My registered User ID is an Email Address. <br/>Email Address: <b>afa@gmail.com</b><br/><br/>Name : <b>fasdfsafsa</b><br/>IC / Passport: <b>asa12312</b><br/>Phone Number: <b>12312321</b><br/>Vaccinee: <b>Self</b><br/> Vaccine Administered: <b>Zifivax</b><br/><br/>1st Dose Date: <b>01/10/2021</b><br/>1st Dose Country: <b>Barbados</b><br/>1st Dose Batch / Serial No: <b>1Caaa</b>",
"attachment": {
"docName": "unnamed.bmp",
"docType": "bmp",
"document": "someString"
}
@PhakornKiong
PhakornKiong / Knex-Migrations-Seeding.md
Created July 22, 2021 05:52 — forked from NigelEarle/Knex-Migrations-Seeding.md
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Option 1
<ul>
<li>Stands for <Strong>Hyper Text Markup Language</Strong></li>
<li>Lots of Tags</li>
<ul>
<li>Boilerplate</li>
<ol>
<li>Doctype</li>
<li>HTML</li>
<LI>Head</LI>