Skip to content

Instantly share code, notes, and snippets.

@matt-wright86
matt-wright86 / pg.json
Last active October 16, 2022 02:30
pg
{"movies":[],"series":[{"id":"23203","tags":["Faith","Ministry"],"title":"Hour Of Power","genres":["faith","special"],"episodes":[{"id":"23204","tags":["No Category"],"title":"HOP E1","genres":["faith"],"content":{"videos":[{"url":"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8","quality":"FHD","videoType":"HLS"}],"duration":4744,"dateAdded":"2022-10-14T11:10:22-05:00"},"thumbnail":"https://thepleasantgroveway.com/wp-content/uploads/2022/07/SMW-7-24-2022-Thoughts-For-Thoughts-Approved-SM-800x450.jpg","releaseDate":"2022-10-14","episodeNumber":1,"longDescription":"11:16 AM Oct 14th 2022","shortDescription":"11:16 AM Oct 14th 2022"},{"id":"23271","tags":["No Category"],"title":"HOP E2","genres":["faith"],"content":{"videos":[{"url":"https://player.vimeo.com/external/680667317.m3u8?s=df9126b50631d0915a6ec5a13962ac2609c18fab","quality":"FHD","videoType":"HLS"}],"duration":2060,"dateAdded":"2022-03-01T15:23:35-06:00"},"thumbnail":"https://thepleasantgroveway.com/wp-content/uploads/2022/08/SMW-8-14
@matt-wright86
matt-wright86 / file.md
Created January 23, 2019 17:52
customer info

Customers

17 Customers
  • BGP (1 user)
  • Bordelon Marine (1 user)
  • Anadarko (8 users)
  • Chevron (7 users)
  • Conoco (1 user)
  • Hess (6 users)
  • Shell (1 user)
  • Talos (7 users)
@matt-wright86
matt-wright86 / pull-and-push.md
Last active March 1, 2017 15:55
Pull DB from Heroku.

Pull Db from Heroku

heroku pg:pull DATABASE_URL [db_name] -a [app_name]

example usage heroku pg:pull DATABASE_URL eflyer_sender_dev -a eflyer-sender

#Push local DB to Heroku Staging heroku pg:push [db_name] DATABASE_URL -a [app_name]

example usage heroku pg:push eflyer_sender_dev DATABASE_URL -a eflyer-sender-staging

# Set to half hour before and mark as before
if start_time.min == 30
start_time = start_time - 30.minutes
program.half_hour_before = true
end
# Set to half hour before and mark as before
if end_time.min == 30
end_time = end_time + 30.minutes
program.half_hour_after = true
if params[:filter].present?
# Type
filter_by_pwg_only = params[:pwg].present? && params[:non_pwg].blank?
filter_by_client_only = params[:non_pwg].present? && params[:pwg].blank?
# @clients = Client.search_for(params[:filter]).order(:first_name)
@clients = Client.search_for(params[:filter])
if filter_by_pwg_only
auto_responder.id => campaign
39=>13, 38=>13, 37=>13, 34=>13,
33=>12, 32=>12, 35=>12, 36=>12
24=>11, 26=>11, 31=>11, 25=>11, 30=>11, 29=>11, 28=>11, 27=>11
23=>10, 22=>10, 21=>10, 20=>10, 19=>10, 18=>10
13=>8, 12=>8, 11=>8, 17=>8, 16=>8, 15=>8, 14=>8
3=>4, 4=>4
1=>1, 2=>3, 6=>5, 7=>5,
5=>4, 8=>6