Skip to content

Instantly share code, notes, and snippets.

Avatar

Steele Price steeleprice

View GitHub Profile
@steeleprice
steeleprice / redis-mini.nix
Created May 1, 2020 — forked from sigma/redis-mini.nix
minimal #redis #docker image with #nix
View redis-mini.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 Nov 13, 2019 — forked from markembling/hosts.ps1
Powershell script for adding/removing/viewing entries to the hosts file.
View hosts.ps1
#
# 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 Feb 26, 2019 — forked from robjens/00.fs
XSD to type generation - rewritten in and for F# from C# example
View 00.fs
(* 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
View gist:6179463
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;