This file contains 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
# install | |
sudo apt-get install proxychains | |
sudo apt-get install tor | |
# then update the files /etc/proxychains.conf and /etc/tor/torrc with the given config | |
# restart tor server | |
sudo service restart tor |
This file contains 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
/* eslint-disable @next/next/no-img-element */ | |
import { | |
Alert, | |
AlertIcon, | |
Box, | |
Flex, | |
Grid, | |
GridItem, | |
HStack, | |
Image, |
This file contains 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
const fs = require('fs'); | |
class S3Store { | |
constructor({ s3, bucketName } = {}) { | |
if (!s3 || !bucketName) { | |
throw new Error('A valid S3 instance and bucket name are required for S3Store.'); | |
} | |
this.s3 = s3; | |
this.bucketName = bucketName; | |
} |
This file contains 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
let transactionAmount = 100000 | |
let amountPaid = 1000 | |
// Parse the percentage fee from the environment variable | |
const escrowFeePercentage = 5; | |
let expected_fee = transactionAmount * (escrowFeePercentage / 100); | |
console.log("Expected fee: ", expected_fee); | |
let fee_from_amount_paid = amountPaid - transactionAmount; |
This file contains 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
#include <EEPROM.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266HTTPClient.h> | |
ESP8266WebServer server(80); | |
String ssid, pass, content; | |
bool apmode = false; //Default AP mode status |
This file contains 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
#include <PZEM004Tv30.h> | |
#include <SoftwareSerial.h> | |
#define MIN_TRIGGER_VOLTAGE = 120.0 | |
#define DEBOUNCE = 10000 | |
#define POWER_RELAY_1 = 2 | |
#define POWER_RELAY_2 = 13 | |
#define POWER_RELAY_TYPE = "ACTIVE_LOW" // ACTIVE_LOW or ACTIVE_HIGH |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Response> | |
<Say>Thank you for calling YYZ co. Please leave a message.</Say> | |
</Response> |
This file contains 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
var ffmpeg = require('ffmpeg'); | |
try { | |
var process = new ffmpeg('example.mp4'); | |
process.then(function (video) { | |
console.log('The video is ready to be processed'); | |
var watermarkPath = 'watermark-suissa.png', | |
newFilepath = './video-com-watermark.mp4', | |
settings = { | |
position : "SE" // Position: NE NC NW SE SC SW C CE CW |
This file contains 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
<?php | |
function get_linetype( $phone_number ) { | |
// Your Signalwire project id | |
$project_id = ''; | |
// Your signalwire API Auth Token | |
$auth_token = ''; |
This file contains 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
<?php | |
function get_caller_id( $phone_number ) { | |
// Your Signalwire project id | |
$project_id = ''; | |
// Your signalwire API Auth Token | |
$auth_token = ''; |
NewerOlder