Skip to content

Instantly share code, notes, and snippets.

@DennisTerrell
DennisTerrell / install_python.ps1
Created September 26, 2016 16:05 — forked from carlosfunk/install_python.ps1
Powershell scripts for setting up a Python environment under Windows
# To run this file you will need to open Powershell as administrator and first run:
# Set-ExecutionPolicy Unrestricted
# Then source this script by running:
# . .\install_python.ps1
$save_dir=Resolve-Path ~/Downloads
$project_dir = "C:\Projects"
$virtualenv_dir = $project_dir + "\virtualenvs"
$client = New-Object System.Net.WebClient
@DennisTerrell
DennisTerrell / Get-Traceroute.ps1
Created January 25, 2016 05:08 — forked from tylerapplebaum/Get-Traceroute.ps1
MTR for Powershell
#Requires -version 4
[CmdletBinding()]
param(
[Parameter(mandatory=$True, HelpMessage="Specify the IP Address to run a traceroute to")]
[Alias("ip")]
[ValidateScript({If ($_ -match "\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b") {
$True
}
Else {
Throw "$_ is not an IPV4 Address!"
@DennisTerrell
DennisTerrell / launch_sublime_from_terminal.markdown
Last active August 29, 2015 14:25 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation