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
2.7.6 |
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
FROM ghcr.io/renderinc/heroku-app-builder:heroku-20 AS builder | |
# The FROM statement above triggers the following steps | |
# 1. Copy the contents of the directory containing this Dockerfile to a Docker image | |
# 2. Detect the language | |
# 3. Build the app using the appropriate Heroku buildpack. All Heroku's official buildpacks are supported. | |
# For running the app, we use a clean base image and also one without Ubuntu development packages | |
# https://devcenter.heroku.com/articles/heroku-20-stack#heroku-20-docker-image | |
FROM ghcr.io/renderinc/heroku-app-runner:heroku-20 AS runner |
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
#!/usr/bin/env ruby | |
require 'bundler' | |
require 'csv' | |
lock_file = Bundler::LockfileParser.new(Bundler.read_file("Gemfile.lock")) | |
def url_for(spec) | |
case spec.source | |
when Bundler::Source::Rubygems |
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
require 'ostruct' | |
require 'benchmark' | |
COUNT = 10_000_000 | |
NAME = "Test Name" | |
EMAIL = "[email protected]" | |
class Person | |
def initialize(name:, email:) | |
@name = name |
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
source 'https://rubygems.org' | |
git_source(:github) do |repo_name| | |
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") | |
"https://github.com/#{repo_name}.git" | |
end | |
ruby '2.6.6' | |
gem 'pronto' |
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
pre-commit: | |
parallel: true | |
commands: | |
eslint: | |
glob: "*.{js}" | |
run: yarn prettier --write {staged_files} && yarn eslint {staged_files} && git add {staged_files} | |
css: | |
glob: "*.{css}" | |
run: yarn prettier --write {staged_files} && git add {staged_files} | |
rubocop: |
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 | |
BRANCH_CHANGE=$3 | |
[[ $BRANCH_CHANGE -eq 0 ]] && exit | |
PREV_HEAD=$1 | |
CURR_HEAD=$2 | |
[ $PREV_HEAD == $CURR_HEAD ] && exit | |
# Don't run bundler if there were no changes in gems |
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
MAILCHIMP_API_KEY="...-us19" | |
MAILCHIMP_LIST_ID="..." |
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
/* eslint-disable */ | |
const axios = require('axios'); | |
require('dotenv').config(); | |
exports.handler = function(event, context, callback) { | |
const password = process.env.MAILCHIMP_API_KEY; | |
console.log(password); | |
if (!password) { | |
console.error('No MailChimp API Key include in environment variables'); | |
process.exit(1); |
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
### Keybase proof | |
I hereby claim: | |
* I am skatkov on github. | |
* I am skatkov (https://keybase.io/skatkov) on keybase. | |
* I have a public key ASDWCFGd352PjfJK8TGdTs4v1UJIgKEW8mOc8jJwECTOBQo | |
To claim this, I am signing this object: |