Skip to content

Instantly share code, notes, and snippets.

View andrew-a-dev's full-sized avatar

Andrew Amato andrew-a-dev

  • Vox Media
  • Remote
View GitHub Profile
id keyword list_id
454 cu 2
1077 mf 2
1836 bj 2
2164 g7 2
2196 g7 2
2227 h0 2
2541 ky 2
2556 ky 2
2763 pd 2
# Three identical curl OPTIONS requests, to each of "production", "heroku staging", and "AWS staging"
# The first 2 return 200s, the last 404s
> curl -I 'https://cam-api.concert.io/graphql' -X OPTIONS -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:122.0) Gecko/20100101 Firefox/122.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate, br' -H 'Access-Control-Request-Method: POST' -H 'Access-Control-Request-Headers: authorization,content-type' -H 'Referer: https://admanager.concert.io/' -H 'Origin: https://admanager.concert.io' -H 'Connection: keep-alive' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-site' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'TE: trailers'
HTTP/2 200
server: Cowboy
report-to: {"group":"heroku-nel","max_age":3600,"endpoints":[{"url":"https://nel.heroku.com/reports?ts=1707157814&sid=1b10b0ff-8a76-4548-befa-353fc6c6c045&s=0eGYwaFnlke7tgDiTfRdIkltq9mAgj%2B0P5dNk3eWcZE%3D"}]}
reporting-endpoint
1781688 brainly.com
366486 www.foodnetwork.com
50580 www.houstonchronicle.com
47368 www.ctinsider.com
47004 www.sfchronicle.com
39963 www.sfgate.com
30913 www.chron.com
28688 www.nhregister.com
26103 www.timesunion.com
25490 www.ctpost.com
[
{
"episode_title": "Sunset Mesa",
"podcast_title": "Criminal",
"author": "Vox Media Podcast Network",
"podcast_id": "f547b046-5de4-11ec-acc5-733706bb297f",
"id": 89714860,
"url": "audio://megaphone.concert/f547b046-5de4-11ec-acc5-733706bb297f/18c6b592-352d-11ed-85ef-7b16f8a9cc68",
"updated_at": "2024-01-11T18:40:01.494Z"
},
https://pagesix.com/2024/01/08/entertainment/raquel-leviss-blasts-tom-sandoval-for-playing-the-victim/spotim-user
https://www.177milkstreet.com/search?q=Roasted%20tomatoes%20
https://www.beaumontenterprise.com/hardincountynews/article/All-Points-Environmental-773967.php
https://www.bigrapidsnews.com/news/article/harbor-beach-schools-names-new-superintendent-18598191.php
https://www.chron.com/news/politics/article/wisconsin-judge-rules-that-absentee-voting-van-18598421.php
https://www.ctinsider.com/business/article/Capital-Region-Rite-Aid-stores-make-switch-to-12630307.php
https://www.ctpost.com/food/article/Recipe-Warm-Pear-and-Green-Bean-Salad-2270366.php
https://www.darientimes.com/gametimect/football/article/ethan-long-notre-dame-commit-brunswick-18596242.php
https://www.expressnews.com/business/article/wisconsin-lumber-company-fined-nearly-300-000-18598423.php
https://www.foodnetwork.com/kitchen/orange-and-maple-roasted-butternut-squash-/p/1
[
[
{
"episode_title": "Sunset Mesa",
"podcast_title": "Criminal",
"author": "Vox Media Podcast Network",
"podcast_id": "f547b046-5de4-11ec-acc5-733706bb297f",
"id": 89714860,
"url": "audio://megaphone.concert/f547b046-5de4-11ec-acc5-733706bb297f/18c6b592-352d-11ed-85ef-7b16f8a9cc68",
"updated_at": "2024-01-11T18:40:01.494Z"
[
[
{
"episode_title": "Why millennials dread motherhood",
"podcast_title": "Today, Explained",
"author": "Vox",
"id": 87034333,
"url": "audio://megaphone.concert/c668dab4-74f0-11ee-9c9a-43bc115c2bc7/c916764a-74f0-11ee-9c9a-4b4cf236096b",
"updated_at": "2023-12-15T19:18:56.797Z"
},
["Athena (Accordion)",
[["Slide 1 Image", "slide_1"],
["Slide 2 Image", "slide_2"],
["Slide 3 Image", "slide_3"],
["Slide 1 Small Image", "slide_1_small"],
["Slide 2 Small Image", "slide_2_small"],
["Slide 3 Small Image", "slide_3_small"],
["Logo", "logo"]]]
["Athena (Carousel)",
[["Background Image", "lrg_image"],
List of names of image fields, for ads resaved/republished in the last 3 months:
$TEMPLATE_IMAGE[sm_image]
background
background_image
bottom_bar
box_1_img
box_2_img
box_3_img
box_4_img

Why is this sometimes wrong?

Junk drawer

Specifically the "last published on... by..." can be old or incorrect.

This is how it gets populated, for that view:

hymnal_ads_controller.rb L268