openpgp4fpr:4E5DC0D7B51CF6AB3664FCD83C185ED56E760F73
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
#!/usr/bin/env bash | |
# Dependencies: | |
# https://github.com/myConsciousness/atproto.dart/tree/main/packages/bluesky_cli | |
# https://github.com/jqlang/jq | |
# Check if URI argument is provided | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 <list-uri> [output-file]" | |
exit 1 |
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
# config/initializers/honeybadger.rb | |
Honeybadger.configure do |config| | |
config.before_event do |event| | |
if event.event_type == "sql.active_record" && (event[:query] == "BEGIN" || event[:query] == "COMMIT" || event[:query]&.index("solid_queue")) | |
event.halt! | |
end | |
end | |
end |
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
// https://github.com/honeybadger-io/honeybadger-node | |
// https://github.com/koajs/koa/blob/master/docs/guide.md | |
// https://github.com/koajs/koa/blob/master/docs/error-handling.md | |
const Honeybadger = require('honeybadger') | |
const Koa = require('koa') | |
const app = new Koa() | |
// Should probably be the first middleware you use | |
app.use(async (ctx, next) => { |
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
<!-- Do Not Track --> | |
<script type="text/javascript"> | |
// Global | |
window.trackingEnabled = function() { | |
var dnt = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack; | |
return !(dnt === "1" || dnt === "yes"); | |
}(); | |
</script> | |
<!-- Google Tag Manager, Segment, etc. --> |
These are my notes from deploying a boilerplate Rails app to AWS Lambda (yeah, you read that right) using Lamby. Basically this is me going through the Quick Start guide.
- https://aws.amazon.com/lambda/
- https://lamby.custominktech.com
- https://lamby.custominktech.com/docs/quick_start
Questions/comments: https://twitter.com/heyjoshwood
- https://github.com/excid3/jumpstart
- https://github.com/honeybadger-io/heya
- Follow Josh on Twitter for development updates
This creates a 4-part email series to welcome users who sign up for your Jumpstart app. The first email is sent immediately, and the following emails are sent 2 days apart.
This guide assumes you meet Jumpstart's requirements.
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
package main | |
import "errors" | |
import "fmt" | |
import "github.com/honeybadger-io/honeybadger-go" | |
func notifyHoneybadger(err error) { | |
if err == nil { | |
return | |
} |
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
// Netlify function to tag subscribers in ConvertKit | |
// https://www.netlify.com/products/functions/ | |
// POST to /.netlify/functions/tag?id={subscriberId} with JSON array of tag ids: `[{tagId}, {tagId}, ...]` | |
const request = require("request-promise"); | |
const apiKey = process.env.CONVERTKIT_API_KEY; | |
const apiSecret = process.env.CONVERTKIT_API_SECRET; | |
exports.handler = function(event, context, callback) { |
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
Honeybadger.configure do |config| | |
config.before_notify do |notice| | |
# break out of our hook if component is not our errors controller | |
break if notice.component != 'errors' | |
# correct the component and action info based on the url | |
params = Rails.application.routes.recognize_path(notice.url) | |
# => {:controller=>"page", :action=>"index"} | |
notice.controller = params[:controller] | |
notice.action = params[:action] |
NewerOlder