Skip to content

Instantly share code, notes, and snippets.

@RadGH
RadGH / recalculate-acf-locations.php
Last active July 19, 2023 19:16
Get latitude and longitude for addresses saved in Advanced Custom Fields, using Google's GeoLocation API
<?php
global $acf_recalc_settings;
// IMPORTANT: Customize these settings for your website.
$acf_recalc_settings = array(
// How many updates to do each page load. As of November 2018, Google's GeoLocation API limit is 100 per second.
'posts_per_run' => 16,
@45deg
45deg / EraseAllLikes.js
Last active August 4, 2019 23:05
Delete All Twitter Likes
// prerequisite: npm install twitter fs-extra delay
const Twitter = require('twitter');
const fs = require('fs-extra');
const delay = require('delay');
var client = new Twitter({
consumer_key: 'WRITE',
consumer_secret: 'YOUR',
access_token_key: 'APP',
#SingleInstance force
EmptyRecycleBin()
{
MsgBox, 4,, Clear Recycle Bin?
IfMsgBox Yes
FileRecycleEmpty
}
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
@jesstelford
jesstelford / 01-shape-up-to-kindle.md
Last active April 23, 2025 07:11
Read SHAPE UP by basecamp on a Kindle / reMarkable / eReader

Read Shape Up by basecamp on a kindle / reMarkable / eReader

Basecamp's new book Shape Up is now available online (https://basecamp.com/shapeup) to read page-by-page.

There is a .pdf version, but that's not the best format for Kindle / other eReaders. Instead, we can convert the page-by-page into an eReader friendly format.

Part 1: Convert to a single page

NOTE: This has only been tested on Chrome

@IanColdwater
IanColdwater / twittermute.txt
Last active April 14, 2025 16:31
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@merlinmann
merlinmann / wisdom.md
Last active April 28, 2025 20:57
Merlin's Wisdom Project (Draft)

Merlin's Wisdom Project

Or: “Everybody likes being given a glass of water.”

By Merlin Mann.

It's only advice for you because it had to be advice for me.

@10maurycy10
10maurycy10 / uninstall_rippling.sh
Last active March 18, 2025 14:09
A script to remove Rippling MDM.
#!/bin/bash
export PS4='+[$(date -u)][${BASH_SOURCE}:${LINENO}]: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'; set -x;
if [ `id -u` -ne 0 ]; then
echo "Rippling uninstall must be run by root"
exit 1
fi
sudo launchctl unload /Library/LaunchDaemons/com.rippling.*