Skip to content

Instantly share code, notes, and snippets.

✈️
On leave

Geoffrey Huntley ghuntley

✈️
On leave
View GitHub Profile
@agc93
agc93 / demo.sh
Created Oct 9, 2017
Script used for demos and live coding
View demo.sh
# 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 Feb 8, 2017
Manipulates a URI to get a resolution appropriate image by convention (for iOS) before calling Xamarin.Forms.ImageSource.FromUri(...)
View UriImageLoaderIos.cs
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 Jul 28, 2018
Working Distributed - Cliff Notes
View cliff-notes.md
@NickCraver
NickCraver / Build.xml
Last active Jul 6, 2020
Stack Overflow Build Reference Docs
View Build.xml
<?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 Apr 5, 2016 — forked from anaisbetts/FilesystemWatchCache.cs
An Rx-friendly Filesystem Watcher
View FilesystemWatchCache.cs
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 Jul 3, 2020
Xamarin Android Bindings Troubleshooting
View xamarinandroidbindings.md

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 Nov 5, 2015
Checks your iTunes folder for any .ipas that look like Xamarin apps
View GetXamarinApps.cs
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)
View raspberry-pi-vpn-router.md

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

@kentcdodds
kentcdodds / README.md
Last active Oct 27, 2015
One page site for First Timers Only concept
View README.md

First Timers Only website idea

I wrote a blogpost on Medium last week about something I've been doing with my open source project. Check that out first: https://medium.com/@kentcdodds/first-timers-only-78281ea47455

It's had a fantastic response and people are enthusiastic about the idea. In an effort to encourage more projects to participate, I decided to file an issue on the up-for-grabs website repo and ask them if they would be willing to have a section dedicated to projects with first-timers-only issues.

If you checkout that issue, you see that Scott Hanselman has bought the domain firsttimersonly.com and wants to turn it into a one pager about the idea with links/resources/etc.

View install-comodo-ssl-cert-for-nginx.rst

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

You can’t perform that action at this time.