This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A Bash script to fetch the most recent Slack thread from a channel. | |
| # Copy everything from line 7 on, add in your Slack token and channel ID, then run in Terminal. | |
| # See https://buttondown.com/blog/api-powered-email-newsletter for more details. | |
| ----- | |
| SLACK_TOKEN="your-bot-token" | |
| CHANNEL_ID="your_channel_ID" | |
| curl -s -H "Authorization: Bearer $SLACK_TOKEN" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A Bash script to pull the three most popular Slack threads from the last week and merge them with an email template. | |
| # Copy everything from line 7 on, add in your Slack token, channel ID, workspace URL, and Buttondown API key, then run in Terminal. | |
| # See https://buttondown.com/blog/api-powered-email-newsletter for more details. | |
| ----- | |
| #!/bin/bash | |
| SLACK_TOKEN="your-Slack-bot-token" | |
| CHANNEL_ID="your_channel_ID" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # A Bash script to pull the three most popular Slack threads from the last week and list them with their top three replies. | |
| # Copy everything from line 7 on, add in your Slack token, channel ID, and workspace URL, then run in Terminal. | |
| # See https://buttondown.com/blog/api-powered-email-newsletter for more details. | |
| ----- | |
| SLACK_TOKEN="your-Slack-bot-token" | |
| CHANNEL_ID="your_channel_ID" | |
| WORKSPACE_URL="https://yourworkspace.slack.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (?:(?:\+?([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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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 */ |