Skip to content

Instantly share code, notes, and snippets.

View hyeomans's full-sized avatar
🏠
Working from home

Hector Yeomans hyeomans

🏠
Working from home
View GitHub Profile
@hyeomans
hyeomans / bst.cs
Created August 29, 2014 23:40
Binary Search Tree
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Trees
{
class Program
{
# http://boxstarter.org/package/url?
#####################
# BEGIN CONFIGURATION
#####################
#region Initial Windows Config
Install-WindowsUpdate -AcceptEula
Update-ExecutionPolicy Unrestricted
; Change your hotkey here
^1::
DetectHiddenWindows, on
IfWinExist ahk_class Console_2_Main
{
IfWinActive ahk_class Console_2_Main
{
WinHide ahk_clasas Console_2_Main
WinActivate ahk_class Shell_TrayWnd
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Update-ExecutionPolicy Unrestricted
cinst IIS-WebServerRole -source windowsfeatures
cinst IIS-HttpCompressionDynamic -source windowsfeatures
cinst IIS-ManagementScriptingTools -source windowsfeatures
cinst IIS-WindowsAuthentication -source windowsfeatures
@hyeomans
hyeomans / gist:8016133
Created December 18, 2013 01:56
Creating a symlink for folders in Windows
Open VS CMD I don't know why in powershell doesn't work
mklink /D "C:\Users\Steve\Documents\Dropbox\DesiredFolder" "C:\Path\To\DesiredFolder"
@hyeomans
hyeomans / gist:7995798
Created December 16, 2013 22:42
Installing erlang
sudo apt-get install yaws
erlang-dev and erlang-parsetools.
@hyeomans
hyeomans / profile.ps1
Last active December 27, 2015 12:49
My powershell profile.
# Executables
function subl { &"C:\Program Files\Sublime Text 2\sublime_text.exe" $args }
function visual { &"${Env:ProgramFiles}\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" $args }
#Directories
function development {
Set-Location 'C:\development'
}
#Files
@hyeomans
hyeomans / gist:7328640
Created November 6, 2013 00:09
Removing obj and bin folders
function remove_bin_obj_force {
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse }
}
@hyeomans
hyeomans / my_profile.ps1
Created September 12, 2013 14:48
My PS profile
# Executables
function subl { &"${Env:ProgramFiles}\Sublime Text 2\sublime_text.exe" $args }
function visual { &"${Env:ProgramFiles}\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" $args }
#Directories
function open-table { Set-Location 'C:\Users\Hector\Documents\Visual Studio 2012\Projects\OpenTable' }
#Files
function hosts { subl C:\Windows\System32\drivers\etc\hosts }
Option Infer On
Option Compare Text
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports EnvDTE90a
Imports EnvDTE100
Imports System.Diagnostics