Skip to content

Instantly share code, notes, and snippets.

View amblerkr's full-sized avatar
🎶
Music is Life

Ambler amblerkr

🎶
Music is Life
View GitHub Profile
@mayneyao
mayneyao / notion2blog.js
Last active June 19, 2025 19:02
Notion.so > Personal Blog | custom domain + disqus comment
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": "*",
@JulienDev
JulienDev / instagram_count_to_googe_sheet.js
Last active April 18, 2025 10:52
Track your Instagram followers over time with Google Sheets Scripts
// 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"
@eviltester
eviltester / gist:11093f0e4c501a41990e227393184eda
Last active February 14, 2025 09:30
uncheck twitter interests
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;});
@k-ogasawara
k-ogasawara / README.md
Last active July 14, 2021 07:45
Gmail: post to slack automatically
@nestarz
nestarz / unlike.js
Created February 17, 2021 15:57
Unlike all Facebook page
// 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(" "))])]
@sm-Fifteen
sm-Fifteen / whats_a_yubikey.md
Last active July 2, 2025 17:01
"What the heck is a Yubikey and why did I buy one?": A user guide

"What the heck is a Yubikey and why did I buy one?": A user guide

(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

@hutattedonmyarm
hutattedonmyarm / update_rss_bridge.sh
Last active December 6, 2021 07:06
Updating RSS-Bridge
#!/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"
@RobinFrcd
RobinFrcd / dismiss_topics.js
Created February 19, 2022 11:14
Dismiss all twitter topics
// 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…

  1. Set a webhook as the beginning of the flow
  2. Copy that generated URL ("A" in the screenshot)