Skip to content

Instantly share code, notes, and snippets.

View maguay's full-sized avatar
🔨
building something new.

Matthew Guay maguay

🔨
building something new.
View GitHub Profile
Run Zaps from your favorite websites anytime you want with Zapier's Chrome extension.
Need to save or share a website, start a timer, create a document, add a task, send a message, run a meeting, increment a counter, or do any other repetitive task quickly? Zapier's Chrome extension is the fastest way to do those and dozens of other tasks anytime you need.
Push a button once to run a Zap workflow, with the date, time, and the name and link of the webpage where you clicked the button. Optionally, include fields in your Push Zap to enter extra details. Zapier will then use that data to run your Zap workflow with any of your favorite apps.
Zapier connects your favorite apps, automates tasks, and helps you get work done faster—and with the Zapier Chrome extension, you can run Zaps anytime you want.
Here's how to use it:
@maguay
maguay / phone_extract.txt
Last active January 22, 2024 10:40
Regex to find phone phone numbers in all standard and international formats
(?:(?:\+?([1-9]|[0-9][0-9]|[0-9][0-9][0-9])\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([0-9][1-9]|[0-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?
/a tweaked version of the second regex in the question here to allow for all country codes and leading zeros in area codes: https://stackoverflow.com/questions/3868753/find-phone-numbers-in-python-script
@maguay
maguay / jotform_text_question.txt
Created March 22, 2017 08:41
JotForm fill-in-the-blank question design
.form-textbox {
border-top : none !Important;
border-left : none !Important;
border-right : none !Important;
background : none !Important;
box-shadow : none !Important;
}
.form-dropdown {
font-family : "Open Sans", Sans !Important;
@maguay
maguay / gist:5299154
Created April 3, 2013 07:39
Bash script for creating new Kirby posts via Alfred. Fork from http://plausiblethought.net/creating-new-blog-posts-with-an-alfred-workflow. Don't escape spaces. See full Alfred 2 Workflow at https://github.com/maguay/Alfred-New-Kirby-Blog-Post.
/* navigate to blog folder */
cd ~/your_site_folder/content/your_blog_folder/
/* count files */
COUNT=$(ls | wc -l)
/* remove feed folder from count */
NEWCOUNT=$(expr $COUNT - 1)
/* replace spaces in query with dashes for folder name */