Skip to content

Instantly share code, notes, and snippets.

View ghuntley's full-sized avatar
minimalist

Geoffrey Huntley ghuntley

minimalist
View GitHub Profile
{ pkgs, lib, config, ... }:
let
cfg = config.webshop;
in
{
options.webshop = {
website = lib.mkOption {
type = lib.types.package;
description = "The static content to serve";
};
@misuzu
misuzu / oracle-cloud-nixos-install.md
Last active August 1, 2024 16:06
Install NixOS on Oracle Cloud over Ubuntu 18.04

Install NixOS on Oracle Cloud over Ubuntu 18.04 (make sure to use Ubuntu 18.04 or this may not work)

# 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
@Steve-Tech
Steve-Tech / TelstraAirConnect.py
Last active August 22, 2020 01:24
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
@agc93
agc93 / demo.sh
Created October 9, 2017 00:22
Script used for demos and live coding
# This is pretty trimmed down, but is the basic idea, at least
docker ps -a -q -f status=exited | xargs -r docker rm
git reset --hard
git checkout stage-$1
@teamtam
teamtam / UriImageLoaderIos.cs
Created February 8, 2017 00:19
Manipulates a URI to get a resolution appropriate image by convention (for iOS) before calling Xamarin.Forms.ImageSource.FromUri(...)
public class UriImageLoaderIos : IUriImageLoader
{
public string GetUri(string baseImageUri)
{
if (string.IsNullOrEmpty(baseImageUri))
{
throw new ArgumentNullException("baseImageUri");
}
if (UIScreen.MainScreen.Scale > 2.0)
{
@shiftkey
shiftkey / cliff-notes.md
Last active July 28, 2018 22:20
Working Distributed - Cliff Notes
@NickCraver
NickCraver / Build.xml
Last active June 28, 2024 07:54
Stack Overflow Build Reference Docs
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="PrepareStaticContent" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Passed in Parameters -->
<configuration></configuration>
<workingDir></workingDir>
<buildNumber></buildNumber>
<buildViews>false</buildViews>
<minifyJs>true</minifyJs>
<TargetsDirectory></TargetsDirectory>
@ghuntley
ghuntley / FilesystemWatchCache.cs
Created April 5, 2016 11:36 — forked from anaisbetts/FilesystemWatchCache.cs
An Rx-friendly Filesystem Watcher
using System;
using System.IO;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using ReactiveUI;
namespace SaveAllTheTime.Models
{
interface IFilesystemWatchCache
{
@JonDouglas
JonDouglas / xamarinandroidbindings.md
Last active September 8, 2024 20:45
Xamarin Android Bindings Troubleshooting

Approaching a Xamarin.Android Bindings Case

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available:

@rdavisau
rdavisau / GetXamarinApps.cs
Created November 5, 2015 04:31
Checks your iTunes folder for any .ipas that look like Xamarin apps
void Main()
{
var myXamarinApps =
Directory
.EnumerateFiles(Path.Combine(Environment.GetEnvironmentVariable("HOMEPATH"), @"Music\iTunes\iTunes Media\Mobile Applications"), "*.ipa")
.Where(f=> ZipFile.Open(f, ZipArchiveMode.Read)
.GetRawEntries()
.Any(e=> e.FullName.Contains(".monotouch-")));
foreach (var app in myXamarinApps)