Skip to content

Instantly share code, notes, and snippets.

View lmandel's full-sized avatar

Lawrence Mandel lmandel

View GitHub Profile

Best Picture

  • Arrival
  • Fences
  • Hacksaw Ridge
  • Hell or High Water
  • Hidden Figures
  • La La Land
  • Lion
  • Manchester by the Sea
  • Moonlight

Best Picture

  • The Big Short
  • Bridge of Spies
  • Brooklyn
  • Mad Max: Fury Road
  • The Martian
  • The Revenant
  • Room
  • Spotlight
  • 1 CITIZEN KANE 1941
  • 2 THE GODFATHER 1972
  • 3 CASABLANCA 1942
  • 4 RAGING BULL 1980
  • 5 SINGIN' IN THE RAIN 1952
  • 6 GONE WITH THE WIND 1939
  • 7 LAWRENCE OF ARABIA 1962
  • 8 SCHINDLER'S LIST 1993
  • 9 VERTIGO 1958
  • 10 THE WIZARD OF OZ 1939
#!/bin/sh
DATE=`date +%Y%m%d`
ALEXA_URL=http://www.alexa.com/topsites/countries%3B
COUNTRY_CODE=$1
OUTPUT_FILE=ALEXA_${COUNTRY_CODE}-${DATE}.txt
echo "Downloading Alexa top site data for $COUNTRY_CODE"
@lmandel
lmandel / rating.sh
Created August 1, 2013 15:11
Scrape ratings data from Google Play
#!/bin/sh
DEBUG=false
DATE=`date +%Y%m%d`
PLAY_URL=https://play.google.com/store/apps/details?id=
PRODUCT=$1
#if [ $1 == 'firefox' ]
#then
# PRODUCT=org.mozilla.firefox
#fi
@lmandel
lmandel / uaOverride.sh
Created December 15, 2012 05:21
Script to add/remove an UA override to B2G.
#!/bin/sh
# Script to add a UA override to B2G
# Based on Dave Hyland's script https://gist.github.com/2656232
# Options:
# remove - removes the override
# Usage:
# ./uaOverride.sh add example.com
# ./uaOverride.sh remove example.com
LOCAL_USER_JS=/tmp/user.js
@lmandel
lmandel / changeUA.sh
Created December 7, 2012 17:02
Change B2G UA
#!/bin/sh
# Script to change the B2G UA
# Based on Dave Hyland's script https://gist.github.com/2656232
# Options: default, fennec, android
# Prereq: adb on your path
LOCAL_PREFS_JS=/tmp/prefs.js
PROFILE_DIR=$(adb shell echo -n "/data/b2g/mozilla/*.default")
REMOTE_PREFS_JS=${PROFILE_DIR}/prefs.js