Skip to content

Instantly share code, notes, and snippets.

View lightster's full-sized avatar
🐤
Hanging with @budgiebot

Matt Light lightster

🐤
Hanging with @budgiebot
View GitHub Profile
@lightster
lightster / google_calendar_timezone_prompt.md
Last active September 7, 2018 03:45
Re-enable Google Calendar's "Change time zone to ____?" prompt

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() {
@lightster
lightster / letter_to_cron.md
Created January 23, 2015 05:19
Letter to Cron

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 July 13, 2014 23:19
Generate `wget`s to download photos from Instagram
// 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)