Skip to content

Instantly share code, notes, and snippets.

View kemmis's full-sized avatar

Rafe Kemmis kemmis

View GitHub Profile
@JohnCoates
JohnCoates / commands.sh
Last active May 6, 2021 22:00
THEOS on Windows 10 with Linux subsystem
# Turn on Developer Mode
# Open Settings -> Update and Security -> For developers
# Don't reboot yet
# Run in powershell administrator:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# accept reboot
## Install Ubuntu
# run in powershell administrator:
@lenadroid
lenadroid / pdxfood
Created May 23, 2017 04:02
Awesome #PDX food places
Downtown/West Portland:
Seres Restaurant and Bar (Chinese)
Andina
The Original Dinerant (Breakfast)
Masu Sushi
Bamboo Sushi SW
Thai Peacock Restaurant
Pine State Biscuits
Urban Farmer Portland
Portland City Grill
@odinserj
odinserj / MutexAttribute.cs
Last active July 26, 2024 04:39
MutexAttribute.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Hangfire.Common;
using Hangfire.States;
using Hangfire.Storage;
namespace Hangfire.Pro
{
/// <summary>
@jcbozonier
jcbozonier / gist:1692807
Created January 28, 2012 05:17
Using a date reviver in JSON.parse
function dateReviver(key, value) {
if (typeof value === 'string') {
var a = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
if (a) {
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], +a[5], +a[6]));
}
}
return value;
};