Skip to content

Instantly share code, notes, and snippets.

View TheAngryByrd's full-sized avatar
🐦
😠 🐦

Jimmy Byrd TheAngryByrd

🐦
😠 🐦
View GitHub Profile

Keybase proof

I hereby claim:

  • I am theangrybyrd on github.
  • I am jimmybyrd (https://keybase.io/jimmybyrd) on keybase.
  • I have a public key whose fingerprint is D0ED F7BD DEB5 74F1 25AF FD5E 453C 188A D59B E496

To claim this, I am signing this object:

@TheAngryByrd
TheAngryByrd / GetDotnetOnDebianFast.sh
Last active November 16, 2016 20:04
GetMonoOnDebianFast.sh
#!/bin/bash
set -ex
echo "*****Installing Depedencies*****"
apt-get update
apt-get install -y curl libunwind8 gettext
echo "*****Finished Installing Depedencies*****"
echo "*****Downloading Dotnet*****"
@TheAngryByrd
TheAngryByrd / MVVM Woes - Output Properties
Last active August 29, 2015 14:09
MVVM Woes - Output Properties
using System.Reactive.Linq;
using ReactiveUI;
namespace OutputProperties
{
public class MainWindowViewModel : ReactiveObject
{
private string _firstName;
private string _lastName;
private string _favoriteColor;
@TheAngryByrd
TheAngryByrd / ImportNugetCertsOnLinux.sh
Last active August 6, 2018 19:20
Need to import the nuget certs on a linux machine to restore packages
sudo mozroots --import --machine --sync
sudo certmgr -ssl -m https://go.microsoft.com
sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net
sudo certmgr -ssl -m https://nuget.org
@TheAngryByrd
TheAngryByrd / BuildMono-4.0.0.sh
Last active August 29, 2015 14:18
BuildMono-4.0.0.sh
#!/bin/bash
set -ex
PREFIX=$@
if [ -z $PREFIX ]; then
PREFIX="$HOME/mono/4.0.0"
fi
# Ensure you have write permissions to PREFIX
@TheAngryByrd
TheAngryByrd / RxSpawnChildProcess.fs
Last active August 29, 2015 14:21
Rx Spawn Child Process
let tryDontCare f =
try
f()
with | _ -> ()
let observableFromProcess program args =
Observable.Create(fun (obs : IObserver<string>) ->
let pInfo = ProcessStartInfo(program,args)
pInfo.RedirectStandardOutput <- true
@TheAngryByrd
TheAngryByrd / FSharpAsyncToObservableBenchmarks.fs
Last active August 29, 2015 14:22
F# Async to Observable Benchmarks
namespace AsyncToObservableBenchmarks
open Xunit
open System.Threading.Tasks
open System.Reactive.Linq
open System
open System.Threading
module Algorithm1 =
let private oneAndDone (obs : IObserver<_>) value =
@TheAngryByrd
TheAngryByrd / bootstrapper.bat
Last active August 29, 2015 14:24
Setup Mono on Windows
@ECHO OFF
SET CYG_BASH=C:\tools\cygwin\bin\bash
::get chocoloately for great good
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
::to pretend we're linux
choco install cygwin -x86 -y
::get mono 4.0.2
choco install mono -version 4.0.2 -y
::need checks, the mirror sometimes forgets to install packages
#!/bin/bash
#
# Copyright (c) 2011-2012, Mihail Szabolcs
#
# Released into the public domain. For more information see http://unlicense.org/ .
#
# Bootstraps an environment that makes it possible to cross-compile libraries like SDL,
# or pretty much anything else in an easy and unobstrusive manner.
#
# Requirements:
@TheAngryByrd
TheAngryByrd / package.sh
Last active August 29, 2015 14:27 — forked from shilrobot/package.sh
Making mkbundle work on Windows
#!/bin/bash
# If this doesn't work, ensure you have UNIX line endings in this file
# (\n, not \r\n.) You can use Notepad++ to switch them.
# Cygwin package requirements: gcc-mingw, pkg-config
# If you want to pass -z to mkbundle: mingw-zlib1, mingw-zlib-devel
# crash immediately if anything bad happens
set -o errexit
set -o nounset