Skip to content

Instantly share code, notes, and snippets.

View jdx's full-sized avatar
⚜️
mise-en-place!

jdx

⚜️
mise-en-place!
View GitHub Profile
@jdx
jdx / snapcraft.yaml
Last active June 6, 2017 22:34 — forked from evandandrea/snapcraft.yaml
heroku
name: heroku
summary: Heroku CLI
description: Heroku CLI
version: "6.9.3"
confinement: strict
grade: stable
apps:
heroku:
command: heroku
plugs: [network]
@jdx
jdx / heroku.md
Last active August 29, 2015 14:17 — forked from geemus/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.
class IndexUsersEmails < ActiveRecord::Migration
def self.up
execute "END"
add_pg_index :users, :email, :lock => false
execute "BEGIN"
end
end
#!/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
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