Skip to content

Instantly share code, notes, and snippets.

View gabeodess's full-sized avatar

Gabe Odess gabeodess

  • RigUp
  • Austin TX
View GitHub Profile
import React from "react"
import PropTypes from "prop-types"
import {Router, Route, Switch} from 'react-router-dom'
import Header from './layout/Header'
import history from '../helpers/history'
import {default as EventsSearch} from './events/Search'
import {default as SessionsNew} from './sessions/New'
import {default as RegistrationsNew} from './registrations/New'
class App extends React.Component {
$ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin14]
$rvm osx-ssl-certs status all
Selected SSL certs for: ruby-1.9.2-p290
cURL certificate bundle /usr/share/curl/curl-ca-bundle.crt not found
Certificates bundle /usr/local/etc/openssl/cert.pem is up to date.
Certificates bundle /etc/openssl/cert.pem is up to date.
Certificates bundle is old.
@gabeodess
gabeodess / gist:d8ee865ae01796fbc75dd8be20ce3427
Created January 25, 2017 15:56
Rails 5, ActiveAdmin, DatabaseHitDuringLoad, find_by scope
It appears that ActiveAdmin will throw an `ActiveAdmin::DatabaseHitDuringLoad` error
if you have any scopes prefaced with `find_by`.
@gabeodess
gabeodess / Order Status
Created May 11, 2016 16:55
Dominos API
Makeline
Oven
Out the Door
Complete
$cat ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>homebrew.mxcl.postgresql</string>
<key>ProgramArguments</key>
$cat dump.sql | psql nwmedtech_production
SET
SET
SET
SET
SET
SET
ERROR: database "callcenter" already exists
ERROR: role "nwmedtech" does not exist
You are now connected to database "callcenter" as user "gabeodess".
@gabeodess
gabeodess / basic.js
Created March 7, 2016 22:51
Angular with Turbolinks
$(document).on('page:load', function(){
$('[ng-app]').each(function(){
angular.bootstrap(this);
});
});
find: https://order.dominos.com/power/store-locator?s=${line1}&c=${line2}&type=${type}
method: GET
s: Street Address
c: City, State and/or Postal Code
type: Delivery or Carryout
store info: https://order.dominos.com/power/store/${storeID}/profile
method: GET
storeId: store id number
# @order.to_slack_json
{
:message => "this is a test"
}
ActiveAdmin.setup do |config|
# == Site Title
#
# Set the title that is displayed on the main layout
# for each of the active admin pages.
#
config.site_title = "NWMedTech"
# Set the link url for the title. For example, to take
# users to your main site. Defaults to no link.