Skip to content

Instantly share code, notes, and snippets.

View peterwooley's full-sized avatar

Peter Wooley peterwooley

View GitHub Profile
@peterwooley
peterwooley / mintty.reg
Created February 20, 2012 23:15
Assuming chere is insalled, this adds an "Open mintty Here" context menu option for Windows Explorer drives and folders.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\mintty]
@="Open mintty Here"
[HKEY_CLASSES_ROOT\Directory\shell\mintty\command]
@="c:\\cygwin\\bin\\mintty.exe -e /bin/xhere /bin/bash.exe \"%L\""
[HKEY_CLASSES_ROOT\Drive\shell\mintty]
@="Open mintty Here"
@peterwooley
peterwooley / cygup.bat
Created May 23, 2012 17:08
Grab the latest Cygwin setup.exe and run it
cd %TEMP% && wget -O setup.exe http://cygwin.org/setup.exe && setup.exe
@peterwooley
peterwooley / dabblet.css
Created May 30, 2012 00:35 — forked from anonymous/dabblet.css
Diagonal Striped Progress Bar
/**
* Diagonal Striped Progress Bar
*/
body { background:#222; }
.bar {
background: linear-gradient(rgba(0,0,0,.26), rgba(255,255,255,.26) 50%), linear-gradient(315deg, #78a804 25%, #669a04 25%, #669a04 50%, #78a804 50%, #78a804 75%, #669a04 75%, #669a04);
background-size:16px 16px;
height:8px;
width:500px;
overflow:hidden;
/**
* Diagonal Striped Progress Bar
*/
body { background:#222; }
.bar {
background: linear-gradient(rgba(0,0,0,.26), rgba(255,255,255,.26) 50%), linear-gradient(315deg, #78a804 25%, #669a04 25%, #669a04 50%, #78a804 50%, #78a804 75%, #669a04 75%, #669a04);
background-size:16px 16px;
height:8px;
width:500px;
overflow:hidden;
/**
* Curtains
*/
.screen, .curtains {
background:#ccc;
width:400px;
height:300px;
}
.curtains {
background:none;
@peterwooley
peterwooley / week9links.txt
Created May 31, 2012 04:18
Links from WDIM262 Week 9
@peterwooley
peterwooley / dabblet.css
Created June 4, 2012 06:19
Gradient-y button
/**
* Gradient-y button
*/
body { background:#444; }
button {
background: #686d76 linear-gradient(90deg, rgba(0,0,0,.26), rgba(255,255,255,.26));
border:none;
border-radius:5px;
padding:10px 0;
# ~/.gitconfig from @boblet
# initially based on http://rails.wincent.com/wiki/Git_quickstart
[color]
ui = auto
interactive = auto
[repack]
usedeltabaseoffset = true # >git 1.5
[alias]
s = status
@peterwooley
peterwooley / cygup
Created August 12, 2012 07:46
Run the latest Cygwin setup.exe to install or upgrade Cygwin
# Run the latest Cygwin setup.exe to install or upgrade Cygwin
# Make sure to run `Set-ExecutionPolicy RemoteSigned` in PowerShell
# prior to the execution of this script.
$file = "$env:temp\setup.exe"
(new-object System.Net.WebClient).DownloadFile("http://cygwin.com/setup.exe", $file)
& $file