Skip to content

Instantly share code, notes, and snippets.

View lonekorean's full-sized avatar

Will Boyd lonekorean

View GitHub Profile
@lonekorean
lonekorean / gist:2347245
Last active October 2, 2015 23:38
Media queries example
h1 { font-size: 2em; }
@media only screen and (min-width: 640px)
{
h1 { font-size: 3em; }
}
@lonekorean
lonekorean / gist:4750532
Last active December 12, 2015 09:19
Addhost v1.2 Windows batch script
@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 December 18, 2015 18:49
List all files, including hidden ones
ls -a
@lonekorean
lonekorean / gist:5828153
Last active December 18, 2015 18:49
List only hidden files
ls -ld .??*
@lonekorean
lonekorean / gist:5828160
Last active December 18, 2015 18:49
Show hidden files in Finder
defaults write com.apple.Finder AppleShowAllFiles YES
@lonekorean
lonekorean / gist:5828161
Last active December 18, 2015 18:49
Fix Asepsis after a system update
asepsisctl uninstall_wrapper
asepsisctl install_wrapper
@lonekorean
lonekorean / gist:5828162
Last active December 18, 2015 18:49
Delete all .DS_Store files on your system
sudo find / -name ".DS_Store" -depth -exec rm {} \;
@lonekorean
lonekorean / gist:7759870
Last active April 21, 2023 07:33
Gradient animation workaround
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 December 30, 2015 15:19
Alpha transparency colors
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 December 30, 2015 15:19
Colorful buttons
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; }