Skip to content

Instantly share code, notes, and snippets.

View jps1st's full-sized avatar

John Philip Solano jps1st

  • Fieldtec / formbird.com
  • Digos City, Davao del Sur, Philippines.
View GitHub Profile
@jps1st
jps1st / SMSService.ts
Created September 11, 2020 14:20
Example https usage for sending an sms using semaphore
const https = require('https');
export async function sendSMS(message: string, number: string) {
const data = JSON.stringify({
apikey: 'apikey',
number,
message,
sendername: 'ADCCPH'
});
@jps1st
jps1st / tunnel-remote.sh
Created March 25, 2019 21:07
Create an ssh (port 2222) tunnel to a remote mongodb server so you can access it on localhost (port 27018)
ssh root@myserver.com -p2222 -L 27018:127.0.0.1:27017