Skip to content

Instantly share code, notes, and snippets.

View ghuntley's full-sized avatar
minimalist

Geoffrey Huntley ghuntley

minimalist
View GitHub Profile

Install NixOS on Oracle Cloud over Ubuntu 18.04

# install useful tools
sudo apt-get update
sudo apt-get install --no-install-recommends -y nano mc git

# prepare /boot
sudo umount /boot/efi
sudo mv /boot /boot.bak
@ghuntley
ghuntley / TelstraAirConnect.py
Created August 22, 2020 01:24 — forked from Steve-Tech/TelstraAirConnect.py
Python Telstra Air Connector
import requests
import re
session = requests.Session()
# This isn't your Telstra ID but rather the Fon credentials found in the Telstra Air app, you can also find this in the network tab of inspect element when logging in normally.
anid = "m61400000000@wifi.telstra.com"
anidpassword = ""
try: login = re.findall(r'<LoginURL>(.*)</LoginURL>', session.get("http://msftconnecttest.com/redirect").text)[0] # Get the Telstra Air login URL
@ghuntley
ghuntley / TelstraAirConnect.py
Created August 22, 2020 01:24 — forked from Steve-Tech/TelstraAirConnect.py
Python Telstra Air Connector
import requests
import re
session = requests.Session()
# This isn't your Telstra ID but rather the Fon credentials found in the Telstra Air app, you can also find this in the network tab of inspect element when logging in normally.
anid = "m61400000000@wifi.telstra.com"
anidpassword = ""
try: login = re.findall(r'<LoginURL>(.*)</LoginURL>', session.get("http://msftconnecttest.com/redirect").text)[0] # Get the Telstra Air login URL
#!/usr/bin/env bash
# wan
# ens160: inet 10.10.10.253 netmask 255.255.255.0 broadcast 10.10.10.255
# ether 00:0c:29:62:e7:42 txqueuelen 1000 (Ethernet)
# wireless adapter
# wlx240a64a0fc2a: ether 24:0a:64:a0:fc:2a txqueuelen 1000 (Ethernet)
# speedify
From: Media <media@adelaide.edu.au>
Sent: Tuesday, 30 June 2020 3:07 PM
To: Media <media@adelaide.edu.au>
Subject: MEDIA RELEASE: Australia’s COVIDSafe app among safest in the world
 
MEDIA RELEASE
@ghuntley
ghuntley / TodoMVC.purs
Created June 9, 2020 13:14
PureScript implementation of WebCheck frontend language
module TodoMVC where
import DSL
import Data.Array (filter, head, last)
import Data.Array as Array
import Data.Foldable (length)
import Data.Maybe (Maybe(..))
import Data.Number as Number
import Data.String (Pattern(..), split)

Developer Environment Setup

📖 Overview

Developing applications with the Uno Platform requires Visual Studio for Windows. On iOS and Android, the Uno Platform relies extensively on the Xamarin Native stack. On WebAssembly, the Uno Platform relies directly on the Mono-Wasm runtime.

If you are doing this workshop as part of a classroom, it is important to pre-install these components of Visual Studio for Windows before attendance, as you'll need to download upwards of 12Gb of software from Microsoft.

☑️ Software Installation

@ghuntley
ghuntley / MainPageViewModel.cs
Created August 27, 2019 04:24
example of todomvc as mvvm w/redux via Uno.CodeGen
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using TodoApp.Shared.Models;
namespace TodoApp.Shared.ViewModels
{