This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Algorithmic extension methods | |
/// </summary> | |
public static class AlgorithmExtensions { | |
private static readonly ThreadLocal<Random> Rng = new ThreadLocal<Random>(() => new Random()); | |
private static readonly ThreadLocal<CryptoRandom> RngCrypto = new ThreadLocal<CryptoRandom>(() => new CryptoRandom()); | |
/// <summary> | |
/// Shuffle a sequence using Fisher-Yates shuffle algorithm. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2015-07-22 13:35:19" build="150716"> | |
<value name="ColorTable00" type="dword" data="00362b00"/> | |
<value name="ColorTable01" type="dword" data="0000bfa8"/> | |
<value name="ColorTable02" type="dword" data="00009985"/> | |
<value name="ColorTable03" type="dword" data="0098a12a"/> | |
<value name="ColorTable04" type="dword" data="00164bcb"/> | |
<value name="ColorTable05" type="dword" data="00c4716c"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ERROR READS ## | |
Assertion in C:\Users\ColeChamberlain\local\conemu\ConEmu64.exe | |
[150716] | |
nNewWidth>0 && nNewHeight>0 | |
at | |
RealBuffer.cpp:1796 | |
## PASTE FROM ERROR POPUP ## | |
Assertion in C:\Users\ColeChamberlain\local\conemu\ConEmu64.exe [150716] | |
Exception 0x80000003 triggered in CRealConsole::MonitorThreadWorker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# | |
# THIS FILE IS FOR USER SPECIFIC SETTINGS ONLY | |
export ZDOTDIR="${ZDOTDIR:-"$HOME/.zsh"}" | |
export GIT_USERNAME="cchamberlain" | |
export GIT_NPM_ID="npm/npm" | |
export GIT_ZDOTDIR_ID="cchamberlain/zdotdir" | |
export GIT_ZPREZTO_ID="cchamberlain/prezto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Reflection; | |
using System.Runtime.Caching; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# | |
# Defines Environment Variables | |
# RESET ZSHENV FILE VIA ENVIRONMENT VARIABLE | |
export USR_ZSHENV_PATH="$HOME/.zshenv" | |
if [[ $USR_ZSHENV_RESET -eq 1 ]]; then | |
unset USR_ZSHENV_RESET | |
if [[ -z "$GIST_USR_ZSHENV_ID" ]]; then | |
export GIST_USR_ZSHENV_ID="ad8ae7ce3ef2a965295d" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
""" SYNTAX """ | |
syntax on | |
syntax enable " enable syntax processing | |
""" SETTINGS """ | |
set tabstop=2 " number of visual spaces per tab when opened | |
set expandtab " use spaces instead of tabs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
This script will disable luafv on your system and likely make Windows versions of git faster after restarting. | |
### DISCLAIMER: THIS WILL MODIFY HOW SECURITY WORKS ON YOUR SYSTEM AND I WOULD ONLY USE ON A DEV MACHINE ### | |
### USE AT YOUR OWN RISK ### | |
#> | |
Push-Location | |
Set-Location HKLM:\SYSTEM\CurrentControlSet\Services\luafv | |
Set-ItemProperty . Start 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# A word about this shell script: | |
# | |
# It must work everywhere, including on systems that lack | |
# a /bin/bash, map 'sh' to ksh, ksh97, bash, ash, or zsh, | |
# and potentially have either a posix shell or bourne | |
# shell living at /bin/sh. | |
# | |
# See this helpful document on writing portable shell scripts: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |