Skip to content

Instantly share code, notes, and snippets.

@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;}
@rposbo
rposbo / alert_pwd.js
Created October 14, 2011 13:31
forgotten password reminder
var e=document.getElementsByTagName('input'); for(var i=0;i<e.length;i++){if (e[i].getAttribute('type')=='password') {alert(e[i].value);}}
@rposbo
rposbo / statsd_graphite_ubuntu14.sh
Last active November 2, 2015 19:38
A single script to setup StatsD and Graphite on Ubuntu 14.10 on Azure
#!/bin/bash
echo "#### Starting"
echo "#### apt-get updating and installing"
sudo apt-get update
sudo apt-get install screen libexpat1-dev libicu-dev git build-essential curl software-properties-common python-software-properties -y
echo "#### Installing node"
# Node
. ~/.bashrc
@rposbo
rposbo / statsd_azure_vm.ps1
Created November 18, 2014 20:44
Powershell script to create an Ubuntu 14.10 VM in Azure and configure ports for statsD and Elasticsearch
# os configuration
# Get-AzureVMImage | Select ImageName
# I wanted an ubuntu 14.10 VM:
$ImageName = "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_10-amd64-server-20140625-alpha1-en-us-30GB"
# account configuration
$ServiceName = "your-service-here"
$SubscriptionName= "your azure subscription name here"
$StorageAccount = "your storage account name here"
$Location = "your location here"
<html>
<head>
<style>
.item {width:300px; display: inline-block; }
.item .itemtitle {font-weight:bold; font-size:2em;}
.hidden {display:none;}
</style>
</head>
<body>
<h1>Amalgam Comics Characters</h1>