Skip to content

Instantly share code, notes, and snippets.

@rayboyd
rayboyd / imdb.js
Created July 19, 2011 23:25
Bookmarklet to send basic IMDb info via GET request to a url.
javascript:(function(){var meta=document.getElementsByTagName('meta');for(var i=0;i<meta.length;i++){switch(meta[i].getAttribute('property')){case'og:title':var title=encodeURIComponent(meta[i].getAttribute('content'));break;case'og:director':var director=encodeURIComponent(meta[i].getAttribute('content'));break;case'og:url':var url=encodeURIComponent(meta[i].getAttribute('content'));break;};};window.open('http://url.co.uk/?title='+title+'&director='+director+'&url='+url);})();
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@knutwalker
knutwalker / imdb_to_trakt.py
Created October 14, 2012 03:29
Migrate movies from a public watchlist from IMDb into your private watchlist on trakt.
#!/usr/bin/env python
import csv
import collections
import re
import json
import requests
@iign
iign / demo.php
Last active December 24, 2017 21:24
Get your latest reviews from Letterboxd (letterboxd.com)
<?php require_once('letterboxd.php') ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Letterboxd reviews</title>
<meta name="description" content="Letterboxd reviews demo">
<meta name="author" content="ign <ignacio[at]ign.uy>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
@tiegz
tiegz / generate_letterboxd_csv_from_vudu.js
Last active October 13, 2020 00:50
Import VUDU rental history into a CSV format readable by Letterboxd.
// Run this in the browser bar: var el = document.createElement("script"); el.src=URL; document.body.appendChild(el);
//
// 1. Login to http://my.vudu.com
// 2. Open the Inspector (cmd-ctrl-I on OSX), and un this script (if popups are blocked, temporarily unblock popups from Vudu in your browser)
// 3. Grab the downloaded CSV file (probably with a random name), and load at http://letterboxd.com/import
//
// How it works: this script is inserted into the Vudu page via a bookmarklet, grabs your session key, and
// makes a call to Vudu's api. Then it parses the response and creates a CSV, which it then opens in a page as a data-uri.
//
// Copyright 2013-2020. Code released under the MIT license.
@ohheh
ohheh / letterboxdbookmarklet.js
Last active March 25, 2025 23:08
A javascript bookmarklet for opening Letterboxd from an IMDB page.
javascript:{var s = window.location.href.toString();var p=/\/(?:title|name)\/([a-zA-Z0-9])+\//gi;if (p.test(s)){try{var n=s.match(p)[0].split("\/")[2];window.open('http://letterboxd.com/imdb/'+n);}catch(e){}}};void(0);
@pietvandongen
pietvandongen / icheckmovies2imdb
Last active March 31, 2019 23:52 — forked from ohheh/letterboxdbookmarklet.js
A couple of bookmarklets to help you quickly find a movie on iCheckMovies from another site.
javascript:{var link = document.getElementsByClassName('iconIMDB')[0].href;try{window.open(link);}catch(e){}};void(0);
@will3942
will3942 / kvm.sh
Last active October 12, 2016 18:18
Running OS X under QEMU/KVM
git clone git://git.kernel.org/pub/scm/virt/kvm/kvm.git
git clone git://git.kiszka.org/kvm-kmod.git
cd kvm-kmod
./configure
make LINUX=../kvm clean sync all
modprobe -r kvm_intel
cp ./x86/kvm*.ko /lib/modules/$(uname -r)/kernel/arch/x86/kvm/
modprobe kvm_intel
@darekkay
darekkay / trakt-backup.php
Last active April 15, 2025 03:16
Trakt.tv backup script
<?php
/*
Backup script for trakt.tv (API v2).
Live demo: https://darekkay.com/blog/trakt-tv-backup/
*/
// create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app
$apikey = "CLIENT_API_KEY";
@ali5h
ali5h / imdb250-to-csv.py
Last active January 10, 2022 23:16
Creating IMDB Top 250 Collection in Plex Media Server
#!/usr/bin/python
"""
Downloads and creates a CSV file from IMDB Top 250 list
"""
from pyquery import PyQuery as pq
import csv
import datetime
# for UnicodeWriter
import codecs
import cStringIO