Skip to content

Instantly share code, notes, and snippets.

Avatar
👋

Jeff Dickey jdxcode

👋
View GitHub Profile
View snapcraft.yaml
name: heroku
summary: Heroku CLI
description: Heroku CLI
version: "6.9.3"
confinement: strict
grade: stable
apps:
heroku:
command: heroku
plugs: [network]
View heroku.md

TODO empty arrays and/or nil values (see apps:info)

General Guidelines

  • Use full sentences, including punctuation.
  • Labels should be provided where needed in the form of 'Labels labels:'.
  • Commands should have one newline between the header and body and another after the body.
  • Alpha-sort arrays before display and display labeled data in alpha-sorted key order.
View index_users_emails.rb
class IndexUsersEmails < ActiveRecord::Migration
def self.up
execute "END"
add_pg_index :users, :email, :lock => false
execute "BEGIN"
end
end
View release.sh
#!/bin/bash
# current Git branch
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
# v1.0.0, v1.5.2, etc.
versionLabel=v$1
# establish branch and tag name variables
devBranch=develop
View check_admin_devices.rb
count = 0
AdminDevice.all.each do |admin_device|
device = Device.find(admin_device.udid)
unless device.try(:last_run_time_tester)
puts "'last_run_time_tester' was false: #{admin_device.description}"
count += 1
end
end