Skip to content

Instantly share code, notes, and snippets.

View parterburn's full-sized avatar

Paul Arterburn parterburn

View GitHub Profile
@parterburn
parterburn / define-gpt-prompt.txt
Created April 4, 2023 07:12
Raycast AI Prompt: Define Word or Phrase
Provide the definition of this word or phrase (I will never provide more than a single phrase, so include "and" "or" - or any other conjunctions as part of one phrase). Also explain this word or phrase using simple terms. Using bullet lists, provide 2-3 examples, if relevant, and provide a list of similar words or phrases, using powerthesaurus.org as a source (also in bullet list output). At the end provide a link to [More on Power Thesaurus](https://www.powerthesaurus.org/_search?q={WORD_OR_PHRASE_HERE}). In the link to PowerThesaurus, replace spaces in the word or phrase with `%20`.
@parterburn
parterburn / custom_warp_script.applescript
Created September 27, 2022 16:51
An easy way to use the Warp terminal (https://www.warp.dev/) with Alfred.
-- For the latest version:
-- https://gist.github.com/parterburn/e832b9090ee35eb830529de8bd978b82
-- Set this property to true to always open in a new window
property open_in_new_window : false
-- Set this property to false to reuse the current tab
property open_in_new_tab : true
-- Handlers
@parterburn
parterburn / resend.rb
Last active December 18, 2022 18:34
An example of how to resend messages using the Mailgun API. Per the documentation at https://documentation.mailgun.com/en/latest/api-sending.html#examples. Find your Mailgun Private API Key: https://app.mailgun.com/app/account/security/api_keys
mailgun_private_api_key = "key-TKTK"
urls = %w[
https://se.api.mailgun.net/v3/domains/{{YOUR_DOMAIN_NAME}}/messages/{{MESSAGE_STORAGE_KEY}}?to=foo@bar.com
https://storage-us-west1.api.mailgun.net/v3/domains/{{YOUR_DOMAIN_NAME}}/messages/{{MESSAGE_STORAGE_KEY}}?to=foo@bar.com
]
urls.each do |url|
uri = URI.parse(url)
params = Hash[URI.decode_www_form(uri.query)]
@parterburn
parterburn / google_calendar.sh
Created May 1, 2018 19:41
This is a some sample code that will override the domain setting of adding video calls to every Google Calendar event. The important pieces are:
curl 'https://www.googleapis.com/calendar/v3/calendars/[YOUR_WORK_EMAIL]/events?conferenceDataVersion=1' \
-X POST \
-H 'Authorization: Bearer [YOUR_BEARER_TOKEN]' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-binary '{"start":{"dateTime":"2018-05-02T12:00:00-07:00","timeZone":"America/Denver"},"end":{"dateTime":"2018-05-02T17:00:00-07:00","timeZone":"America/Denver"},"attendees":[{"email":"persontoinvite@host.com"}],"conferenceData":{}}' \
--compressed

Keybase proof

I hereby claim:

  • I am parterburn on github.
  • I am parterburn (https://keybase.io/parterburn) on keybase.
  • I have a public key ASDzkmszssY_t14wHhgmmNNIF7V8QCgxt7dQmIIl7z4owwo

To claim this, I am signing this object:

@parterburn
parterburn / basic_tags.html
Last active August 29, 2015 14:11
HTML Tags Allowed in Brandfolder
Some basic HTML commands include:
Text Style:
<b>This text would be bold</b>
<i>This text would be italic</i>
Headings:
<h4>This heading would be large</h4>
<h3>This heading would be larger</h3>