Skip to content

Instantly share code, notes, and snippets.

View vanilla-lazy-load.html
.item {width:300px; display: inline-block; }
.item .itemtitle {font-weight:bold; font-size:2em;}
.hidden {display:none;}
<h1>Amalgam Comics Characters</h1>
rposbo /
Last active Aug 29, 2015
A shell script for setting up statsd, elasticsearch, and a mongodb backend
# Prerequisites
echo "#### Starting"
echo "#### apt-get updating and installing prereqs"
sudo apt-get update
sudo apt-get install screen libexpat1-dev libicu-dev git build-essential curl -y
# Node
echo "#### Installing node"
rposbo / statsd_azure_vm.ps1
Created Nov 18, 2014
Powershell script to create an Ubuntu 14.10 VM in Azure and configure ports for statsD and Elasticsearch
View statsd_azure_vm.ps1
# 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"
rposbo /
Last active Nov 2, 2015
A single script to setup StatsD and Graphite on Ubuntu 14.10 on Azure
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 / upload-to-blob-storage.ps1
Created Oct 16, 2014
A basic script to upload local files to blob storage, settings ContentType correctly for png and jpeg
View upload-to-blob-storage.ps1
try {
$context = New-AzureStorageContext -StorageAccountName $storage -StorageAccountKey $key
rposbo / sql-batch-execution.ps1
Created Oct 13, 2014
Getting past Powershell & SQL’s “Incorrect syntax near ‘GO’ ” message
View sql-batch-execution.ps1
$batches = $Script -split "GO\r\n"
View hoodiestorage.json
"messages": [
{"raw": "Subject: hello 1\r\n\r\nWorld 1!", "internaldate": "14-Sep-2013 21:22:28 -0300"},
{"raw": "Subject: hello 2\r\n\r\nWorld 2!", "flags": ["\\Seen"]},
{"raw": "Subject: hello 3\r\n\r\nWorld 3!"},
{"raw": "From: sender name <>\r\nTo: Receiver name <>\r\nSubject: hello 4\r\nMessage-Id: <abcde>\r\nDate: Fri, 13 Sep 2013 15:01:00 +0300\r\n\r\nWorld 4!"},
{"raw": "Subject: hello 5\r\n\r\nWorld 5!"},
{"raw": "Subject: hello 6\r\n\r\nWorld 6!"}
rposbo / hoodieconfig.json
Created Oct 9, 2014
hoodiecrow config for many users
View hoodieconfig.json
"debug": true,
"secureConnection": true,
"port": 993,
"smtpPort": 465,
"users": [
"password": "testpass",
cat << EOF
usage: $0 [options] <DBNAME>
-h Show this help.
-l Load instead of export
rposbo / delete unreferenced images.ps1
Created Oct 7, 2014
Delete unreferenced images using Powershell
View delete unreferenced images.ps1
# cd to your project directory
cd "d:\my luverly project\"
# get all the images
$images = Get-ChildItem "d:\my luverly project\img\" -Exclude "*.config"
# for each image..
foreach($img in $images){
$found = ""