Skip to content

Instantly share code, notes, and snippets.

View steeleprice's full-sized avatar

Steele Price steeleprice

View GitHub Profile
@steeleprice
steeleprice / redis-mini.nix
Created May 1, 2020 13:32 — forked from sigma/redis-mini.nix
minimal #redis #docker image with #nix
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
su_exec = pkgs.stdenv.mkDerivation {
name = "su-exec-0.2";
src = fetchurl {
url = https://github.com/ncopa/su-exec/archive/v0.2.tar.gz;
sha256 = "09ayhm4w7ahvwk6wpjimvgv8lx89qx31znkywqmypkp6rpccnjpc";
@steeleprice
steeleprice / hosts.ps1
Created November 13, 2019 16:55 — forked from markembling/hosts.ps1
Powershell script for adding/removing/viewing entries to the hosts file.
#
# Powershell script for adding/removing/showing entries to the hosts file.
#
# Known limitations:
# - does not handle entries with comments afterwards ("<ip> <host> # comment")
#
$file = "C:\Windows\System32\drivers\etc\hosts"
function add-host([string]$filename, [string]$ip, [string]$hostname) {
@steeleprice
steeleprice / 00.fs
Created February 26, 2019 22:59 — forked from robjens/00.fs
XSD to type generation - rewritten in and for F# from C# example
(* Well at least it works now *)
module Types
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Reflection
open System.Resources
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Infrastructure;
using Owin;