This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// utils/sendCrypto.js | |
import crypto from "crypto"; | |
import dotenv from "dotenv"; | |
import fernetCjs from "fernet"; // CJS package -> default import, then destructure | |
const { Token, Secret } = fernetCjs; | |
dotenv.config(); | |
const SEND_ENCRYPTION_KEY = process.env.SEND_ENCRYPTION_KEY; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
from Crypto.PublicKey import RSA | |
from Crypto.Cipher import PKCS1_v1_5 | |
from Crypto.Util.Padding import pad | |
import xml.etree.ElementTree as ET | |
def encrypt_transact_pay_payload(data, encryption_key): | |
try: | |
if not data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://druxgvvg469hn.cloudfront.net/landing-page/assets/arrow-right.svg | |
https://druxgvvg469hn.cloudfront.net/landing-page/assets/bg1.png | |
https://druxgvvg469hn.cloudfront.net/landing-page/assets/bgOne.png | |
https://druxgvvg469hn.cloudfront.net/landing-page/assets/bgThree.png | |
https://druxgvvg469hn.cloudfront.net/landing-page/assets/bgTwo.png | |
https://druxgvvg469hn.cloudfront.net/landing-page/assets/bgThree.png | |
https://druxgvvg469hn.cloudfront.net/landing-page/assets/cdLogo.png | |
https://druxgvvg469hn.cloudfront.net/landing-page/assets/users.svg | |
https://druxgvvg469hn.cloudfront.net/landing-page/assets/star.svg | |
https://druxgvvg469hn.cloudfront.net/landing-page/assets/star.svg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
psql \ | |
--host=host \ | |
--port=port \ | |
--username=username \ | |
--dbname=dbname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Video Upload</title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Video Upload</title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as twilio from 'twilio'; | |
import { Injectable } from '@nestjs/common'; | |
import { ResponseUtilsService } from 'src/services/utils-service'; | |
import { | |
TWILIO_ACCOUNT_SID, | |
TWILIO_AUTH_TOKEN, | |
TWILIO_SANDBOX_NUMBER, | |
} from 'src/core'; | |
@Injectable() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Injectable() | |
export class TransactionFactoryServices { | |
constructor(public readonly dbUtils: DatabaseUtilsService) {} | |
private mapProperty(source: any, target: any, propertyName: string): void { | |
if (source[propertyName]) { | |
target[propertyName] = source[propertyName]; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable, OnApplicationShutdown } from '@nestjs/common'; | |
import { FeedbackFactoryServices } from './feedback-factory.service'; | |
import { DataSource } from 'typeorm'; | |
import { IDatabaseServices } from 'src/core'; | |
@Injectable() | |
export class FeedbackServices implements OnApplicationShutdown { | |
constructor( | |
private readonly data: IDatabaseServices, | |
private readonly factory: FeedbackFactoryServices, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** generic repository */ | |
/* eslint-disable @typescript-eslint/no-unused-vars */ | |
import { Model } from 'sequelize'; | |
import { IGenericRepository } from 'src/core'; | |
export class SequelizeGenericRepository<T extends Model> | |
implements IGenericRepository<T> | |
{ | |
private model: any; |
NewerOlder