Skip to content

Instantly share code, notes, and snippets.

View rprouse's full-sized avatar
:octocat:
Working from home

Rob Prouse rprouse

:octocat:
Working from home
View GitHub Profile
@rprouse
rprouse / WindView.java
Created September 3, 2014 01:11
A simple Android View to show the weather direction
package net.alteridem.sunshine.views;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
public class WindView extends View {
@rprouse
rprouse / ChocolateyInstall.ps1
Last active December 15, 2019 23:13
Boxstarter Computer Setup
#====================================================
# Setting up a new machine using BoxStarter
# 1.Install Windows 8.1 on a new machine.
# 2.Login.
# 3.Open a command prompt and enter the following:
# START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/rprouse/184f55de1e8cfe549d4b/raw/eab3ea82ce33963e2222507c9802e9012f556b7c/ChocolateyInstall.ps1
#====================================================
#====================================================
# Boxstarter options
@rprouse
rprouse / ChocolateyInstallLite.ps1
Last active August 29, 2015 14:09
A lightweight BoxStarted for a Virtual Machine
#====================================================
# Setting up a new machine using BoxStarter
# 1.Install Windows 8.1 on a new machine.
# 2.Login.
# 3.Open a command prompt and enter the following:
# START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/rprouse/b47abc4ebb2db572effe/raw/9df9b13f481de611fc030215bd2f717c60667cf9/ChocolateyInstallLite.ps1
#====================================================
#====================================================
# Boxstarter options
@rprouse
rprouse / Microsoft.PowerShell_profile.ps1
Last active September 13, 2017 14:57
PowerShell Profile for Windows Development
$OutputEncoding = [ System.Text.Encoding]::UTF8
# Set up modules
Import-Module posh-git
Import-Module PSReadLine
Set-PSReadlineOption -HistorySaveStyle SaveAtExit
Import-Module PSLineEndings
Import-Module PsUrl
Import-Module PSColor
Import-Module PsGoogle
@rprouse
rprouse / Program.cs
Created November 19, 2014 14:33
TcpListener Example
static void Main(string[] args)
{
TcpListener listener = new TcpListener(IPAddress.Any , 8000);
TcpClient client;
listener.Start()
while (true) // Add your exit flag here
{
client = listener.AcceptTcpClient();
ThreadPool.QueueUserWorkItem(ThreadProc, client);
@rprouse
rprouse / .gitconfig
Last active March 8, 2023 22:20
My Windows GitConfig
[user]
name = Rob Prouse
email = r.prouse@valsoftcorp.com
signingkey = E9EEEB0C19C1EC22
[core]
autocrlf = input
excludesfile =
editor = \"C:\\Users\\RobProuse\\AppData\\Local\\Programs\\Microsoft VS Code\\bin\\code\" --wait
[alias]
ignore = update-index --assume-unchanged
@rprouse
rprouse / Son_Of_ObsidianStyle.json
Created August 21, 2015 16:27
Son of Obsidian theme ported to Xamarin Studio. Copy to C:\Users\{USERNAME}\AppData\Roaming\XamarinStudio-5.0\HighlightingSchemes\Son_Of_ObsidianStyle.json on Windows then set in Tools | Options | Text Editor | Syntax Highlighting.
{
"name":"Son Of Obsidian",
"version":"1.1",
"description":"A theme based on the classic Obsidian.",
"originator":"",
"colors":[
{"name": "Background(Read Only)", "color":"#222829" },
{"name": "Search result background", "color":"#005F60" },
{"name": "Search result background (highlighted)", "color":"#007F80" },
{"name": "Fold Square", "color":"#255B6F" },
@rprouse
rprouse / .gitconfig
Last active August 29, 2017 15:37
My Mac/Linux .gitconfig
[user]
name = Rob Prouse
email = rob@prouse.org
[core]
autocrlf = input
safecrlf = true
[alias]
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
unstage = reset -q HEAD --
@rprouse
rprouse / quotes.txt
Created September 15, 2015 01:30
Quotes for the Encourage Visual Studio Extension collected from around the Internets. I make no claim to being the author of any of this, they just make me smile when I saves my codes. https://visualstudiogallery.msdn.microsoft.com/1f3afebb-06c7-4b77-a54f-eb2f0784008d
One of my most productive days was throwing away 1000 lines of code
When in doubt, use brute force
Deleted code is debugged code
Controlling complexity is the essence of computer programming
Way more than 90% of code is crap
A data structure is just a stupid programming language
Life is too short to run proprietary software
XML is like violence: if it doesn’t solve your problem, you aren’t using enough of it
It’s not that Perl programmers are idiots, it’s that the language rewards idiotic behavior
Out-of-band == should be on a separate channel…
@rprouse
rprouse / Install-ContainerHost.ps1
Created March 11, 2016 16:44
Docker install for Windows Server Core 2016 Hyper-V host machine. Applied fix suggested in MicrosoftDocs/Virtualization-Documentation#162
############################################################
# Script assembled with makeps1.js from
# Install-ContainerHost-Source.ps1
# ..\common\ContainerHost-Common.ps1
# Install-ContainerHost-Docker.ps1
# Install-ContainerHost-Main.ps1
############################################################
<#