Skip to content

Instantly share code, notes, and snippets.

// This little script lets you untag photos on Facebook. While only 10 at a time, I'm working on untagging multiple ones at once. Also you kinda have to preload, i.e. scroll down on the page, until as much tagged photos are loaded that you wish to iterate over.
// (1) Go to https://www.facebook.com/{YOURFACEBOOKIDHERE}/allactivity?log_filter=taggedphotos
// (2) Copy all JS from this page http://code.jquery.com/jquery-latest.min.js and
// (3) Paste into console
// (4) JQuery selectors $(..) are now available
// The following are lines to be entered into the console each at a time. (I was lazy)
var nameOfTagger = "Peter Pan";
@mattgorecki
mattgorecki / RaspberryPi-RFID
Created July 26, 2013 01:34
Python script to read RFID card from serial RFID reader attached to a Raspberry Pi. Also has a Exit button. The card swipe releases the maglock on the door.
#!/usr/bin/python2
import serial
import re, sys, signal, os, time, datetime
import RPi.GPIO as GPIO
BITRATE = 9600
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7, GPIO.OUT)
GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP)