Skip to content

Instantly share code, notes, and snippets.


Jonathan Hoskin jonathanhoskin

View GitHub Profile
jonathanhoskin / reboot-modem.js
Last active Mar 26, 2020
Huawei B315 Modem Reboot Script
View reboot-modem.js
// PhantomJS script to reboot a Huawei B315 modem
// Author: Jonathan Hoskin / 2017-09-02
// Twitter: @jhossnz
// Github:
// Requires PhantomJS ~ 2.1.1
// Enter your own modem details here
var username = 'admin';
jonathanhoskin /
Created Jul 6, 2016
Drupal release v1.4.1

IVHQ Drupal 1.4.1


  • Updates to the quiz feature #SP1945 / @Ellen
  • Added the Social icons to the page footer #SP2270 / #ZD15 / @George
  • Renamed Bali to Bali - Ubud #SP2307 / #ZD2 / @Jordan
  • Added the new Bali - Lovina destination #SP2307 / #ZD2 / @Jordan
  • Fixes the Z-index of the MyIVHQ user page drop-down selector #SP2327 / #ZD12 / @Sudsy
  • Fixes the Z-index of the online training module, so that it isn't hidden behind the top nav #SP2328 / [#ZD14](https://volunteerhq.ze
jonathanhoskin / heatpump.xml
Created Jul 11, 2014
Mitsubishi Heat Pump WiFi Adaptor POST XML
View heatpump.xml
jonathanhoskin / schema.xml
Last active Dec 16, 2015
Sunspot Solr 4 XML
View schema.xml
<?xml version="1.0" encoding="UTF-8"?>
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
jonathanhoskin / vwork_api_compression.vb
Created Feb 20, 2013
vWorkApp API Compression .Net Example
View vwork_api_compression.vb
Imports System.IO.Compression 'required import to reference the gzipstream in .net
Private Function getWorkerList(ByRef xnodRoot As XmlNode) As Boolean
Dim strURL = "" & APIKEY
' WriteLog("URL TO POST: " + strPostURL)
Dim answer = False
Dim requestStream As Stream = Nothing
#!/bin/bash -e
brew rm -f git
brew cleanup
brew prune
brew install git
jonathanhoskin / console.log
Created Feb 2, 2012
database.yml error when installing from Mongo/Devise Rails template
View console.log
generate mongoid:config
Mongoid config not found. Create a config file at: config/mongoid.yml
to generate one run: rails generate mongoid:config
create config/mongoid.yml
remove config/database.yml
action_mailer ActionMailer recipe running 'after bundler'
gsub config/environments/development.rb
gsub config/environments/development.rb
jonathanhoskin /
Created Nov 3, 2011 — forked from ches/
Install PyGTK via Homebrew and virtualenv
# This LOOKS pretty straightforward, but it took awhile to sort out issues with
# py2cairo and pygobject, so I hope I've saved you some time :-)
# This assumes you already subscribe to a nice clean virtualenvwrapper workflow
# -- see if you need advice on getting there.
# There are some optional dependencies omitted, so if you're going to be doing
# heavy development with these libs, you may want to look into them.
# We go to some configure option pains to avoid polluting the system-level
# Python, and `brew link`ing Cairo which is keg-only by default.
View gist:508741
# MYTHCUTKEY Version 0.1
# This script cuts myth recordings at key frames using the MythTV seek table.
# Why? No external programs required, lossless and fast.
# Updates the myth database with sql calls including rebuilding the seek table.
# Output files may NOT be easily editable again and may have glitches at cut points.
# Undo option allows restoration of original recording and associated database
# records including seek table and markup table.
You can’t perform that action at this time.