Skip to content

Instantly share code, notes, and snippets.

View agaerig's full-sized avatar

Andrew Gaerig agaerig

  • Pitchfork
  • Chicago, IL
View GitHub Profile
(
("NICE Ltd" OR "NICE Ltd." OR "NICE Ltd's" OR "NICE Ltd’s" OR "NICE Ltd.'s" OR "NICE Ltd.’s" OR "NICE Systems" OR "NICE System Ltd." OR "NICE System Ltd" OR "NICE Actimize" OR "inContact" OR "NICE inContact*" OR "inContact's" OR "inContact’s"OR "NICE Enterprise Product" OR "NICE Systems" OR "Mindtouch" OR "Contact Engine" OR "Guardian Analytics")
OR
(
(matchcase:NICE OR matchcase:Nice OR "NICE's" OR "NICE’s")
near/20
("Barry Cooper" OR "Craig Costigan" OR "John O'Hara" OR "Chris Wooten" OR "Barak Eilam" OR "Barak Eilam's" OR "Barak Eilam’s" OR "Einat Weiss" OR "Paul Jarman" OR "Paul Jarman's" OR "Paul Jarman’s")
)
OR
((matchcase:NICE OR matchcase:Nice)
@agaerig
agaerig / nice-boolean.txt
Created May 8, 2023 17:41
NICE Boolean Query
(
("NICE Ltd" OR "NICE Ltd." OR "NICE Ltd's" OR "NICE Ltd’s" OR "NICE Ltd.'s" OR "NICE Ltd.’s" OR "NICE Systems" OR "NICE System Ltd." OR "NICE System Ltd" OR "NICE Actimize" OR "inContact" OR "NICE inContact*" OR "inContact's" OR "inContact’s"OR "NICE Enterprise Product" OR "NICE Systems" OR "Mindtouch" OR "Contact Engine" OR "Guardian Analytics")
OR
(
("NICE" OR "NICE's" OR "NICE’s")
near/20
("Barry Cooper" OR "Craig Costigan" OR "John O'Hara" OR "Chris Wooten" OR "Barak Eilam" OR "Barak Eilam's" OR "Barak Eilam’s" OR "Einat Weiss" OR "Paul Jarman" OR "Paul Jarman's" OR "Paul Jarman’s")
)
OR
(NICE
requestPasswordReset: {
account: 'cnt',
emailFrom: 'forgetpassword@cntraveler.com',
templateId: 'd-b92087e0005e4515973e74cb918fcc81',
substitutions: {
domain: {
production: 'https://www.cntraveler.com',
staging: 'https://stag.cntraveler.com',
ci: 'TKTKTKTKTK'
},
import urllib2
import urllib
import json
api = 'https://api.redef.co/v1/articles/media?published_at=2019-10-22T15%3A35%3A09.540Z&half_card=true'
token = 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6InRlc3RAdGVzdC5jb20iLCJoYXNoZWRfcGFzc3dvcmQiOiI4MWZjOGM3NDdhYzExYzRjOWQ0ZTE4N2ViMzg5ZTkyY2ZhNjQyNGVjIiwic2FsdCI6IjExNjEzNDM3ODgwMzciLCJfaWQiOiI1MzMxZWQwODQxYWIwMzU5MDUxOTU4ZGEiLCJfX3YiOjAsInJvbGVzIjpbXSwidHdpdHRlciI6eyJwaG90b3MiOltdfSwiY29udGFjdHMiOltdLCJjaGFubmVscyI6W119.YqXt4KqjL8LXRE5-7ZBGRTBonxAHLfmtimVjIT8bEt0'
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
'Accept': 'application/json, text/javascript, */*; q=0.01',
'Sec-Fetch-Mode': 'cors',
newsletterList: [
{
name: 'Recipe of the Day',
newsletterId: 5159,
slug: 'daily',
subscribe: {
buttonLabel: 'Sign Up Now',
dangerousDek:
'Daily recipes, articles, tips, and so much more, right in your inbox.',
dangerousHed: 'Recipe of the Day',
newsletterList: [
{
name: 'GQ Daily',
newsletterId: 32,
slug: 'daily',
subscribe: {
buttonLabel: 'Sign Up Now',
dangerousDek:
'Up-to-the second style reporting and menswear guides; health, relationship, and kicking-ass-at-life advice; news-making celebrity profiles; and exclusive daily deals just for subscribers.',
dangerousHed: 'The very best of GQ, daily.',
@agaerig
agaerig / newsletterListEpi.js
Created September 10, 2019 15:40
Epicurious newsletterList
newsletterList: [
{
name: '#cook90',
newsletterId: 248789,
slug: 'cook90',
subscribe: {
buttonLabel: 'Sign Up Now',
dangerousDek:
'The #cook90 challenge is simple: cook breakfast, lunch, and dinner, every day, for an entire month. You can do it. No, really—you can. And we'll help by sending recipes, tips, and videos to your inbox.',
dangerousHed: '#cook90',
newsletterList: [
{
name: 'Hot Links from Pitchfork',
newsletterId: 248912,
slug: 'hot-links',
subscribe: {
buttonLabel: 'Sign Up',
dangerousDek:
'A weekly roundup of the most important stories in music, and a listening guide every Friday',
dangerousHed: 'Hot Links from Pitchfork'
{
name: 'Movie Club',
newsletterId: 248895,
slug: 'movie-club',
subscribe: {
buttonLabel: 'Sign up',
dangerousDek:
'Reviews of the current cinema, every Friday.',
dangerousHed: 'The New Yorker Movie Club'
},
newsletterList: [
{
name: 'HWD',
newsletterId: 248786,
slug: 'hwd',
subscribe: {
buttonLabel: 'Sign Up',
dangerousDek:
'Essential industry and award news.',
dangerousHed: 'HWD'