Skip to content

Instantly share code, notes, and snippets.

View ericcourville's full-sized avatar

Eric Courville ericcourville

View GitHub Profile
yMj/DGhaleDaWC3EmUgUmt+/4rqpUVURaJ5xz3vxbUEZ73YWFTCIxg7lF+9R8tWtUL+AfOHqji90SefD058ikw==
@ericcourville
ericcourville / organicit-bs.txt
Last active August 29, 2015 14:20
orgit-boxStarter
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst sublimetext2
cinst console2
cinst keepass.install
cinst fiddler4
cinst scriptcs
cinst visualstudiocode
cinst sourcetree
#!/usr/bin/env bash
# script: watch
# author: Mike Smullin <mike@smullindesign.com>
# license: GPLv3
# description:
# watches the given path for changes
# and executes a given command when changes occur
# usage:
# watch <path> <cmd...>
#
@ericcourville
ericcourville / new-pomodoro
Last active March 13, 2019 17:21
Pomodoro PowerShell Function
function New-Pomodoro ()
{
add-type -AssemblyName System.speech
$notification = New-Object System.Speech.Synthesis.SpeechSynthesizer
#http://stackoverflow.com/questions/13333223/write-progress-for-10-minutes-powershell
$time = (60*25) # seconds, use you actual time in here
foreach($i in (1..$time)) {
$percentage = $i / $time
$remaining = New-TimeSpan -Seconds ($time - $i)
#!/opt/local/bin/php
<?php
/*
1) replace the shebang (first line) with the path to your php binary
(probably something like /usr/bin/php)
2) move the file to /usr/local/bin/datauri.php
(this should be in your PATH)
3) chmod ugo+rx /usr/local/bin/datauri.php
(make the script executable for everyone)
@ericcourville
ericcourville / gist:5057402
Created February 28, 2013 15:08
remove leading 0 from ip address
'010.10.005.012' -replace '\b0*','' #returns 10.10.005.012 reference 2/28/2013 powershell.com email tip