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
| {"lastUpload":"2022-02-03T22:19:36.554Z","extensionVersion":"v3.4.3"} |
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
| #!/bin/bash | |
| # | |
| # Update DNSimple DNS record if ISP IP changes | |
| # | |
| # Requirements: | |
| # existing DNS record hosted with DNSimple | |
| # curl in $PATH | |
| # | |
| # run from cron | |
| # |
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
| /** | |
| * Inspiration taken from here https://github.com/GoogleCloudPlatform/cloud-functions-emulator/issues/258#issuecomment-413786762 | |
| * Alternative: https://github.com/GoogleCloudPlatform/cloud-functions-emulator/issues/258#issuecomment-407996126 | |
| * | |
| * Original: https://github.com/GoogleCloudPlatform/cloud-functions-emulator/issues/258#issuecomment-437080813 | |
| */ | |
| const express = require('express'); | |
| const cors = require('cors'); | |
| const bodyParser = require('body-parser'); |
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
| begin | |
| # Some exception throwing code | |
| rescue => e | |
| puts "Error during processing: #{$!}" | |
| puts "Backtrace:\n\t#{e.backtrace.join("\n\t")}" | |
| end |
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
| const http = require('http'); | |
| const httpProxy = require('http-proxy'); | |
| const redis = require('redis'); | |
| // listen port | |
| const port = 5050; | |
| // redis client | |
| const client = redis.createClient(); |
NewerOlder