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

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)
@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;});
@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"
@sm-Fifteen
sm-Fifteen / whats_a_yubikey.md
Last active June 21, 2024 18:49
"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

@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(" "))])]
@k-ogasawara
k-ogasawara / README.md
Last active July 14, 2021 07:45
Gmail: post to slack automatically
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;});
@JulienDev
JulienDev / instagram_count_to_googe_sheet.js
Last active March 21, 2023 17:25
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"
@mayneyao
mayneyao / notion2blog.js
Last active June 29, 2024 00:46
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": "*",
@mi-lee
mi-lee / unlike-delete-hide-facebook-posts.js
Last active May 9, 2024 01:00
Bulk delete, unlike, hide, or remove Facebook actions (in Activity Feed) by year.
// DISCLAIMER: I'VE ONLY RUN THIS SCRIPT ON MY OWN ACCOUNT ONLY. PROCEED/USE WITH RISK! I MADE THIS SCRIPT IN 20 MINUTES SO BE WARNED!
// On the other hand, I've deleted 50,000 comments in a matter of minutes so it's been pretty damn handy
// 1. Go to Activity feed, like facebook.com/<username>/allactivity
// 2. Navigate to specific section of FB, like "Likes and Reactions" or "Comments",
// like https://www.facebook.com/<username>/allactivity?privacy_source=activity_log&log_filter=cluster_<clusterid>
// 3. Navigate to year that you want to batch delete. You may need to scroll a little bit to let it load
// 4. Once you enter this there's no going back!!