Skip to content

Instantly share code, notes, and snippets.

Avatar

Will Boyd lonekorean

View GitHub Profile
@lonekorean
lonekorean / gist:2347245
Last active Oct 2, 2015
Media queries example
View gist:2347245
h1 { font-size: 2em; }
@media only screen and (min-width: 640px)
{
h1 { font-size: 3em; }
}
@lonekorean
lonekorean / gist:4750532
Last active Dec 12, 2015
Addhost v1.2 Windows batch script
View gist:4750532
@echo off
rem Addhost v1.2 by Will Boyd
set sitename=Default Web Site
set hostfilepath=%windir%\System32\drivers\etc\hosts
set appcmdpath=%windir%\system32\inetsrv\appcmd
echo Checking privileges...
net session >nul 2>&1
if not %ERRORLEVEL% == 0 (
@lonekorean
lonekorean / gist:5828148
Last active Dec 18, 2015
List all files, including hidden ones
@lonekorean
lonekorean / gist:5828153
Last active Dec 18, 2015
List only hidden files
@lonekorean
lonekorean / gist:5828160
Last active Dec 18, 2015
Show hidden files in Finder
View gist:5828160
defaults write com.apple.Finder AppleShowAllFiles YES
@lonekorean
lonekorean / gist:5828161
Last active Dec 18, 2015
Fix Asepsis after a system update
View gist:5828161
asepsisctl uninstall_wrapper
asepsisctl install_wrapper
@lonekorean
lonekorean / gist:5828162
Last active Dec 18, 2015
Delete all .DS_Store files on your system
View gist:5828162
sudo find / -name ".DS_Store" -depth -exec rm {} \;
@lonekorean
lonekorean / gist:7759870
Last active Dec 30, 2015
Gradient animation workaround
View gist:7759870
button {
background-image: linear-gradient(#5187c4, #1c2f45);
background-size: auto 200%;
background-position: 0 100%;
transition: background-position 0.5s;
/* ...and various other button styles */
}
button:hover {
@lonekorean
lonekorean / gist:7847270
Last active Dec 30, 2015
Alpha transparency colors
View gist:7847270
color: rgba(0, 0, 0, 0.4); /* semi-transparent black */
color: rgba(255, 255, 255, 0.4) /* semi-transparent white */
@lonekorean
lonekorean / gist:7847287
Last active Dec 30, 2015
Colorful buttons
View gist:7847287
button:nth-child(1) { background-color: #773c92; }
button:nth-child(2) { background-color: #3c6492; }
button:nth-child(3) { background-color: #58923c; }
button:nth-child(4) { background-color: #926a3c; }
button:nth-child(5) { background-color: #923c4e; }