Skip to content

Instantly share code, notes, and snippets.

@alibo
alibo / 01-filternet-top200k-26-03-2016.csv
Last active August 30, 2024 20:13
State of Alexa Top 200K global sites in Iran [Censorship] [26-03-2016] #filternet
Rank Site SNI HTTP DNS
1 google.com open open open
2 youtube.com blocked blocked blocked
3 facebook.com blocked blocked blocked
4 baidu.com open open open
5 yahoo.com open open open
6 amazon.com open open open
7 wikipedia.org open open open
8 qq.com open open open
9 google.co.in open open open
@woodwardtw
woodwardtw / tellmeyoursecrets.js
Last active June 9, 2023 02:40
google script that lists a lot of info about the files in a particular folder/sub folder structure including viewers, editors, and sharing permissions
function listFolders(folder) {
var sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Name", "Sharing Access", "Sharing Permission", "Get Editors", "Get Viewers", "Date", "Size", "URL", "Download", "Description", "Type"]); //writes the headers
var folder = DriveApp.getFolderById("YOUR_FOLDER_ID");//that long chunk of random numbers/letters in the URL when you navigate to the folder
var files = folder.getFiles();//initial loop on loose files w/in the folder
var cnt = 0;
var file;
@jordelver
jordelver / gist:bdf6c7e91c3f4f6eedba
Last active April 8, 2018 02:01
Get all movies in your Letterboxd watchlist
require "mechanize"
USERNAME = ENV.fetch("USERNAME") do
puts "Letterboxd USERNAME environment variable must be supplied"
exit
end
WATCHLIST = "http://letterboxd.com/%s/watchlist/" % USERNAME
agent = Mechanize.new
@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
@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";
@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
@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);
@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);
@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.
@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">