Skip to content

Instantly share code, notes, and snippets.

🐤
Hanging with @budgiebot

Matt Light lightster

🐤
Hanging with @budgiebot
Block or report user

Report or block lightster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lightster
lightster / google_calendar_timezone_prompt.md
Last active Sep 7, 2018
Re-enable Google Calendar's "Change time zone to ____?" prompt
View google_calendar_timezone_prompt.md

Re-enable Google Calendar's "Change time zone to ____?" prompt

When traveling, Google Calendar will prompt to ask if you want to "Change time zone to ____?" One of the options is to "Never ask again". If you click the link to "Never ask again", there is no way within the Google Calendar UI to ever bring the link back.

In order to bring the link back, you can open Google Calendar in Chrome, type Cmd+Opt+J, paste the following code into the Console, and hit enter.

var xhr = new XMLHttpRequest;
xhr.open('POST', 'https://calendar.google.com/calendar/user_prefs');
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded;charset=utf-8");
xhr.onreadystatechange = function() {
View letter_to_cron.md

Dear Cron Daemon,

You used to share with me when you sensed trouble. We could talk about our issues and help each other become better beings.

That was amazing. You were such an awesome friend.

Now you share with me a bit more than that. You share with me when the toilet flushes successfully. You share with me when the car starts flawlessly. You even share with me when the traffic light on the other side of the world turns green.

I feel like I'm a good listener, but I'm having problems keeping up with you. The energy you have is beyond my comprehension. Your current lifestyle is not something I can be a part of everyday anymore.

@lightster
lightster / download_instagram.js
Created Jul 13, 2014
Generate `wget`s to download photos from Instagram
View download_instagram.js
// Run this from Chrome console when viewing
// a user's Instagram profile
var thumbnails
function loadThumbnails() {
if ($('.more-label').text().match('more')) {
$('.more-label').click()
setTimeout(function() {
loadThumbnails()
}, 1000)
You can’t perform that action at this time.