This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Here are a couple of recipes to download and archive an entire Web site, starting with the given page and recursing down. | |
# | |
# Pitfalls | |
# As of 2008, WGet doesn't follow @import links in CSS. | |
# | |
# Credit to http://lifehacker.com/software/top/geek-to-live--mastering-wget-161202.php | |
# And http://www.veen.com/jeff/archives/000573.html | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Easier navigation: .., ..., ...., ....., ~ and - | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias ~="cd ~" # `cd` is probably faster to type though | |
alias -- -="cd -" | |
# Shortcuts | |
alias ggl="cd ~/Google\ Drive" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /var/www/html \( -name '.DS_Store' -or -name '._*' \) -delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.element:before { | |
content: ''; | |
width: 0; | |
height: 0; | |
border-style: solid; | |
border-width: 0 50px 50px 0; | |
border-color: transparent grey transparent transparent; | |
position: absolute; | |
top: 0; | |
right: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input::placeholder { | |
color: #222222; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This should only be run on your production environment to pull in commited changes. | |
# DO NOT USE THIS ON YOUR DEVELOPMENT BUILD OR YOU WILL LOSE ANY CHANGES SINCE YOUR LAST PUSHED COMMIT! | |
git fetch --all && git reset --hard origin/master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{HTTPS} off [OR] | |
RewriteCond %{HTTP_HOST} ^domainname\.com* | |
RewriteRule ^(.*)$ https://www.domainname.com/$1 [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en" class="no-js no-touch" itemscope itemtype="http://schema.org/Article"> | |
<head> | |
<meta charset="utf-8" > | |
<meta name="description" content="Visual style guide used by this site."> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1"> | |
<meta itemprop="name" content="Visual Style Guide — Web Starter Kit"> | |
<meta itemprop="description" content="Visual style guide used by this site."> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('jekyll', function(){ | |
return require('child_process').spawn('jekyll', ['serve', '--watch'], { stdio: 'inherit' }); | |
}); | |
gulp.task('default', ['jekyll']); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// allow command-click and control-click to open new tab | |
if (event.metaKey || event.ctrlKey) { | |
return; | |
} else { | |
event.preventDefault(); | |
} |