brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
| var mongoose = require('mongoose'); | |
| var Q = require('q'); | |
| mongoose.Promise.prototype.then = function(fulfilled, rejected) { | |
| var deferred = Q.defer(); | |
| this.addCallback(deferred.resolve); | |
| this.addErrback(deferred.reject); | |
| return deferred.promise.then(fulfilled, rejected); |
AWS Lambda has nice safeguards for logging but not great handling for error reporting. I typically use Sentry but in this project, we're using Rollbar
Here's a setup to remove AWS Lambda's forceful exit on uncaught error and replace it with an error reporter to Rollbar:
// Load in our dependencies
const assert = require('assert');
const Rollbar = require('rollbar');
// Initialize our Rollbar handler| #!/bin/bash | |
| #------------------ | |
| # Extract the key, certficiate, and chain in PEM format from a PFX format file | |
| # | |
| # Must supply the input pfx file | |
| PFX_PATH="$1" | |
| if [ "${PFX_PATH}" == "" ]; then | |
| echo "Must supply pfx file path" | |
| exit 1 |
| /* | |
| * -------------------------- | |
| * | |
| * NANO ID on SUPABASE | |
| * Modified the original (link below) to work as Supabase function instead of adding to pgcrypto extension. | |
| * - remove statements for modifying pgcrypto extension | |
| * - commented LEAKPROOF as it requires superadmin which we do not have | |
| * - change gen_random_bytes(step); to extensions.gen_random_bytes(step); | |
| * | |
| * https://github.com/viascom/nanoid-postgres/blob/main/nanoid.sql |