Skip to content

Instantly share code, notes, and snippets.

View nairby's full-sized avatar
🦆

Brian Watts nairby

🦆
View GitHub Profile
@nairby
nairby / bthub5.md
Created December 7, 2018 23:25
BT Hub 5 config

Changing wireless network name on BT Hub

Open web browser, go to: 192.168.1.254

This will show home page with currently connected devices.

-> Advanced Settings Enter Admin password [4P......]

@nairby
nairby / hexdecode.ps1
Created June 21, 2017 09:35
Convert hex string to ASCII
$h = "12abcdef30"
$s = $h -split '(?<=\G.{2})' -match '\S' # https://redd.it/2ta5ni
($s |% {[char]([convert]::toint16($_,16))}) -join '' # https://blogs.technet.microsoft.com/heyscriptingguy/2011/09/09/convert-hexadecimal-to-ascii-using-powershell/
@nairby
nairby / test-network.sh
Created May 21, 2017 17:58
Do simple test for connecting to remote service
#!/bin/sh
logfile=/tmp/test-network.log
d=`date`
echo -n $d >> $logfile
# Check SSH connection to somewhere external
for host in ts-b.ucl.ac.uk ts-c.ucl.ac.uk
do
@nairby
nairby / kernel-uptodate.sh
Last active March 14, 2017 12:20
Test if running kernel is up to date
#!/usr/bin/bash
# Compare current running kernel with latest installed version
#
# Example usage:
#
# /usr/local/bin/kernel-uptodate.sh || /usr/sbin/reboot
CURRENT="kernel-$(uname -r)"
@nairby
nairby / keybase.md
Last active March 2, 2017 12:19
Keybase proof for nairby

Keybase proof

I hereby claim:

  • I am nairby on github.
  • I am nairby (https://keybase.io/nairby) on keybase.
  • I have a public key ASAGWKjVWrjegrQx1n6HY5w1CMIxhCvQX8wfcQ9KW4cDYQo

To claim this, I am signing this object:

@nairby
nairby / get-excuse.ps1
Created January 25, 2017 17:44
Get an excuse
######################################################################
<#
.SYNOPSIS
Get an excuse from Bastard Operator from Hell Excuse Server
http://powershell.com/cs/blogs/tips/archive/2016/02/17/getting-an-excuse.aspx
#>
function Get-Excuse
{
$url = 'http://pages.cs.wisc.edu/~ballard/bofh/bofhserver.pl'
$ProgressPreference = 'SilentlyContinue'
@nairby
nairby / watch.ps1
Created December 31, 2016 16:47
Watch clock
$e = [datetime]"1/1/2017 00:00:10"
do {
$d = (get-date)
$d
sleep -milliseconds 90
} while ($d -lt $e)