combinator/
docker-compose.yml
README.md
src/
augur/
concierge/
openproject-saas/
reeve/
...
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
Mappings: | |
Networking: | |
AzSuffixToIndex: | |
1a: 0 | |
1b: 1 | |
1c: 2 | |
1d: 3 | |
1e: 4 | |
1f: 5 | |
1g: 6 |
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
# .github/workflows/pullpreview.yml | |
name: PullPreview | |
on: | |
# the schedule is optional, but helps to make sure no dangling resources are left when GitHub Action does not behave properly | |
schedule: | |
- cron: "30 2 * * *" | |
# optional, only use if you want to have an always-on branch | |
push: | |
branches: | |
- main |
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
#!/bin/bash | |
set -e | |
set -o pipefail | |
KEYS="${KEYS:=crohr}" | |
mkdir -p /root/.ssh | |
chmod 0700 /root/.ssh | |
curl -L https://github.com/{$KEYS}.keys > /root/.ssh/authorized_keys | |
chmod 0600 /root/.ssh/authorized_keys |
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
require 'erb' | |
require 'benchmark' | |
require 'ostruct' | |
require 'action_view' | |
require 'rails' | |
include ActionView::Helpers::TagHelper | |
include ActionView::Helpers::TextHelper | |
include ActionView::Helpers::UrlHelper | |
data = OpenStruct.new name: 'Sample', email: '[email protected]', list: %w(one two three) | |
@output = '' |
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
#!/bin/sh | |
set -e | |
CLI="my-app" | |
# if a DATABASE_URL is properly configured, then we can run migrations and web process | |
if $CLI config:get DATABASE_URL ; then | |
$CLI run rake db:migrate | |
$CLI scale web=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
FROM ruby:2.1 | |
RUN apt-get update && apt-get install -y nodejs | |
RUN mkdir -p /usr/src/app | |
RUN useradd -d /usr/src/app -m app | |
RUN chown -R app /usr/src/app | |
RUN chown -R app /usr/local/bundle | |
USER root |
Clone buildpack(s) locally:
git clone --bare https://github.com/pkgr/heroku-buildpack-ruby.git \
/tmp/heroku-buildpack-ruby.git
Save manifest with a list of buildpacks to use:
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
require 'mysql2' | |
database_name = ENV.fetch('DATABASE') { "voicepublisher_development2" } | |
CLIENT = Mysql2::Client.new(host: "127.0.0.1", username: "user", password: "pass", database: database_name, encoding: "utf8") | |
def column_definition(schema, table, column) | |
sql = <<SQL | |
SELECT CONCAT( | |
CAST(COLUMN_NAME AS CHAR), |
NewerOlder