Skip to content

Instantly share code, notes, and snippets.

@ismailuddin
ismailuddin / ldn-bus-ticker-25022018.py
Created February 25, 2018 10:10
London Bus Ticker (www.scienceexposure.com) with LCD button support
# London Bus arrivals ticker
# Ismail Uddin, 2015
# www.scienceexposure.com
from TfLAPI import *
import Adafruit_CharLCD as LCD
import time
import sys
from multiprocessing import Process
@KonradIT
KonradIT / superview
Last active August 30, 2018 16:21
SuperView
#!/bin/bash
function video() {
ffmpeg -i $1 -sameq -qscale 0.1 -vcodec copy -loglevel quiet -aspect 16:9 $2;
echo "DONE"
exit
}
function all() {
for vid in *.MP4
do name=`echo $vid | cut -d'.' -f1`;
ffmpeg -i $vid -sameq -qscale 0.1 -vcodec copy -loglevel quiet -aspect 16:9 $name-superview.MP4;
@adgedenkers
adgedenkers / vpn_connection.scpt
Created October 11, 2012 18:16
Toggle Connection to VPN on a Mac via AppleScript
tell application "System Events"
-- get current clipboard contents as a string
set CurrentClipboard to the clipboard as string
-- set the clipboad to your password
set the clipboard to "Y0urVPNPa$$w0rd"
-- start playing with the VPN
tell current location of network preferences
@rposbo
rposbo / countdown.html
Created September 15, 2011 21:43
@rposbo : UNOFFICIAL Mobile TFL Bus Countdown Board
<html>
<head>
<meta name="viewport" content="width=320" />
<title>@rposbo : UNOFFICIAL Mobile TFL Bus Countdown Board</title>
<style>
body {font-family:calibri; font-size:12px; width:auto; max-width:100%;}
#disclaimer {font-size:10px;}
#disclaimer img {float:left;}
#busListing {display:block;}
a:visited {color:blue;}
@yinhm
yinhm / pptpd.sh
Created November 7, 2010 17:02
Automaticlly install pptpd on Amazon EC2 Amazon Linux
# Automaticlly install pptpd on Amazon EC2 Amazon Linux
#
# Ripped from http://blog.diahosting.com/linux-tutorial/pptpd/
# pptpd source rpm packing by it's authors
#
# WARNING:
# first ms-dns setting to 172.16.0.23, 172.16.0.23 was showing on my
# /etc/resolv.conf, I'm not sure this is the same on all Amazon AWS zones.
#
# You need to adjust your "Security Groups" which you are using too.