I hereby claim:
- I am pjkelly on github.
- I am pjkelly (https://keybase.io/pjkelly) on keybase.
- I have a public key ASABfS-Igq-O3-uBbvoG2rvBftrNakjRot4KsqS4OFf4oAo
To claim this, I am signing this object:
{ | |
"data": [ | |
{ | |
"x": ["2023-12-31", "2024-01-07", "2024-01-14", "2024-01-21", "2024-01-28", "2024-02-04", "2024-02-11", "2024-02-18"], | |
"y": [120000, 80000, 200000, 300000, 180000, 400000, 150000, 500000], | |
"name": "Spotify", | |
"type": "bar", | |
}, | |
{ | |
"x": ["2023-12-31", "2024-01-07", "2024-01-14", "2024-01-21", "2024-01-28", "2024-02-04", "2024-02-11", "2024-02-18"], |
service: project-vpc | |
variablesResolutionMode: 20210326 | |
# Concepts From: | |
# https://raw.githubusercontent.com/awsdocs/aws-lambda-developer-guide/main/templates/vpc-privatepublic.yaml | |
# https://datachef.co/blog/aws-vpc-with-public-and-private-subnets/ | |
# https://ordina-jworks.github.io/cloud/2020/02/19/Combining-MongoDB-and-AWS-Lambda.html#vpc-peering-connect-your-lambda-functions-with-your-mongodb-atlas-cluster | |
custom: | |
stage: ${opt:stage} |
service: my-service | |
frameworkVersion: ">=1.45.0 <2.0.0" | |
plugins: | |
- serverless-localstack | |
- serverless-deployment-bucket | |
custom: | |
stage: ${opt:stage} |
I hereby claim:
To claim this, I am signing this object:
const express = require('express'); | |
const cors = require('cors'); | |
const proxy = require('http-proxy-middleware'); | |
const app = express(); | |
const port = process.env.PORT || 8080; | |
const onProxyReq = function (proxyReq, req, res) { | |
proxyReq.setHeader('Authorization', 'Basic SECRET'); |
When upgrading PostgreSQL on your machine, previously installed versions of the pg
Rubygem will complain because their native extensions were compiled against an older version of Postgres. The error will look like this:
[daley (qa)]$ be rake db:create
rake aborted!
LoadError: dlopen(/opt/rubies/2.3.1/lib/ruby/gems/2.3.0/gems/pg-0.18.4/lib/pg_ext.bundle, 9): Library not loaded: /opt/boxen/homebrew/lib/libpq.5.5.dylib
Referenced from: /opt/rubies/2.3.1/lib/ruby/gems/2.3.0/gems/pg-0.18.4/lib/pg_ext.bundle
Reason: image not found - /opt/rubies/2.3.1/lib/ruby/gems/2.3.0/gems/pg-0.18.4/lib/pg_ext.bundle
/Users/pjkelly/src/daley/config/application.rb:7:in `<top (required)>'
desc "Copy a file" | |
task :copy do | |
on roles(:web) do |host| | |
# localfile.html would be in the root of your repo in this case. | |
upload! 'localfile.html', current_path.join('public/localfile.html') | |
execute :chmod, '775', current_path.join('public/localfile.html') | |
end | |
end |
test: | |
override: | |
- bundle exec jekyll | |
deployment: | |
production: | |
branch: master | |
commands: | |
- '[[ ! -s "$(git rev-parse --git-dir)/shallow" ]] || git fetch --unshallow' | |
- git push [email protected]:mrsabado-production.git $CIRCLE_SHA1:master -f | |
- curl -sSfL --retry 5 http://whs.saba.do > /dev/null |
PhantomJS is an awesome tool for doing automated, full-stack acceptance tests in a headless browser. It's a great alternative to capybara-webkit because it doesn't depend on QT or xvfb, and it's way better than Selenium in most cases because it's faster (you don't need to open Firefox to run your tests).
Unfortunately, installing PhantomJS via Homebrew can wreak havoc on your Rubies if you're using rbenv. These are the steps that worked for me in fixing my Ruby installations.
# Update Homebrew
brew update
# Install PhantomJS