Setup:
Add before end of body in your public/index.html
<script type="text/javascript" src="https://js.iugu.com/v2"></script>
Using example:
| const path = require('path'); | |
| const loadHandlers = () => { | |
| return new Promise(async (resolve, reject) => { | |
| const fs = require('fs'); | |
| const dir = path.join(process.cwd(), process.env.NODE_ENV != 'production' ? 'src' : '','/Presentation/Handlers') | |
| log(LogLevelEnum.INFO, `Loading controllers from ${dir}`) | |
| await fs.readdir(dir, async (err, files) => { | |
| let reducers = files.filter(a => a.includes('.')); |
Setup:
Add before end of body in your public/index.html
<script type="text/javascript" src="https://js.iugu.com/v2"></script>
Using example:
This will guide you through setting up a replica set in a docker environment using.
Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!
| import { inject, injectable } from "inversify"; | |
| import { ICustomerModel } from "../../Infra/Models/Customer.model"; | |
| import log, { LogLevelEnum } from "../Utils/logger.util"; | |
| require("dotenv").config(); | |
| const axios = require("axios").default; | |
| export interface IIuguService { | |
| getCustomers(): Promise<any> | |
| getCustomerById(id: any): Promise<any> |
| require("dotenv").config(); | |
| const crypto = require("crypto"); | |
| private getAPIKey(): string { | |
| return process.env.BUNNY_STREAM_API_KEY | |
| } | |
| private getSignature(library_id, video_id, expiration_time = 86400) { | |
| //https://docs.bunny.net/reference/tus-resumable-uploads | |
| const expires = Math.floor(new Date() as any / 1000) + expiration_time; |
| grep -rF \ | |
| -e "eval(" \ | |
| -e "base64_decode(" \ | |
| -e "shell_exec(" \ | |
| -e "exec(" \ | |
| -e "passthru(" \ | |
| -e "popen(" \ | |
| -e "proc_open(" \ | |
| -e "system(" \ | |
| -e "assert(" \ |