Automatically post emails that match the specified label to Slack.
Ref: https://gist.github.com/jamesramsay/9298cf3f4ac584a3dc05
- Create a new Google Apps Script at https://script.google.com
- Overwrite the placeholder with the javascript below
const MY_DOMAIN = "agodrich.com" | |
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2" | |
const DISQUS_SHORTNAME = "agodrich" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", |
// Your sheet name in the document | |
var sheetName = "Data"; | |
// Your instagram user id | |
var user_id = "CHANGE-ME"; //find your id here : https://codeofaninja.com/tools/find-instagram-user-id | |
var instagram_base_url = "https://www.instagram.com/graphql/query/"; | |
var following = "?query_hash=58712303d941c6855d4e888c5f0cd22f&variables=%7B%22id%22%3A%22" + user_id + "%22%2C%22first%22%3A24%7D" | |
var followers = "?query_hash=37479f2b8209594dde7facb0d904896a&variables=%7B%22id%22%3A%22" + user_id + "%22%2C%22first%22%3A24%7D" | |
var medias = "?query_hash=f2405b236d85e8296cf30347c9f08c2a&variables=%7B%22id%22%3A%22" + user_id + "%22%2C%22first%22%3A12%7D" |
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;}); |
Automatically post emails that match the specified label to Slack.
Ref: https://gist.github.com/jamesramsay/9298cf3f4ac584a3dc05
// go to https://www.facebook.com/pages/?category=liked&ref=bookmarks | |
let pages = [] | |
const unlike_all = () => { | |
const all = [...document | |
.querySelectorAll('[aria-label="Liked"],[aria-label="Followed"],[aria-label="Following"]') | |
] | |
pages = [...new Set([...pages, ...all.map((a) => a.parentNode.parentNode.querySelector("span").innerText.trim(" "))])] |
(EDIT: Besides Reddit, I've also put this up on Github Gist)
So while looking for information on security keys before getting one myself, I got very confused reading about all the different modes and advertised features of Yubikeys and other similar dongles. The official documentation tends to be surprisingly convoluted at times, weirdly organized and oddly shy about a few of the limitations of these keys (which I'm making a point of putting front and center). Now that I have one, I decided to write down everything I figured out in order to help myself (and hopefully some other people reading this) make sense of all this.
Since I'm partly writing these notes for myself, there might be some back and forth between "exp
#!/bin/bash | |
# Updates rss-bridge to the latest Github release | |
# Prerequsitions: The dependencies for rss-bridge need to be installed | |
# This script uses jq, but falls bacl to using grep if jq cannot be found | |
RSS_BRIDGE_FOLDER="/var/www/html/rss-bridge/" # Edit this to point to the folder you want rss-bridge installed to | |
REPO="RSS-Bridge/rss-bridge" | |
GH_API_URL="https://api.github.com/repos/${REPO}/releases/latest" | |
VERSION_FILE="${RSS_BRIDGE_FOLDER}version.txt" | |
CACHE_FOLDER="${RSS_BRIDGE_FOLDER}cache" |
// Dismiss all topics listed on https://twitter.com/YOUR_USERNAME/topics | |
var timer=100;document.querySelectorAll("[aria-label^='Dismiss'").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;}); |
The key components you need are 1) a URL to an image and 2) a status message to go along with it (though this could probably be "" (null/a blank string) for a media-only post).
Screenshot → https://share.cleanshot.com/ktY34JSnbpGMwyTJQMjs
Assuming you follow along in my screenshot…