This file contains 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
# Download & install marports http://www.macports.org/install.php | |
$ sudo port selfupdate | |
$ sudo port install nginx | |
$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist | |
$ sudo port install php5 +fastcgi fcgi | |
$ sudo mkdir /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
$ cd /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
$ mate org.macports.php-fastcgi.plist # or vim org.macports.php-fastcgi.plist |
This file contains 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
FileETag none | |
<IfModule mod_headers.c> | |
Header unset etag | |
</IfModule> | |
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresByType text/plain "access plus 1 week" | |
ExpiresByType text/css "access plus 1 week" | |
ExpiresByType text/javascript "access plus 1 week" |
This file contains 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
#/bin/bash | |
SAVEIFS=$IFS | |
while read -u 3 line | |
do | |
case "$line" in \#*) continue ;; esac | |
target=`IFS=$(echo -en "\n\b") ; echo $line | cut -d'>' -f1 | sed 's/ *$//g' | sed 's/^ *//g'` | |
src=`IFS=$(echo -en "\n\b") ; echo $line | cut -d'>' -f2 | sed 's/ *$//g' | sed 's/^ *//g'` | |
This file contains 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
/* Install the Jetpack Custom CSS module, then go Appearance→Edit CSS and add this: */ | |
.sml_emailinput { | |
width: 80%; | |
} | |
/* If that doesn't work, try adding !important like this: */ | |
.sml_emailinput { | |
width: 80% !important; | |
} |
This file contains 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
<?php /* Only show excerpts for Standard post format OR Chat format, | |
when this is not both the very first standard post and also a Sticky post AND | |
when excerpts enabled or One-Sentence Excerpts enabled AND | |
this is not the very first standard post when Show Full Content First Post enabled */ | |
?> | |
<?php if ( ( ! get_post_format() || 'chat' === get_post_format() ) && | |
( ! ( independent_publisher_is_very_first_standard_post() && is_sticky() ) ) && | |
( independent_publisher_use_post_excerpts() || independent_publisher_generate_one_sentence_excerpts() ) && | |
( ! ( independent_publisher_show_full_content_first_post() && independent_publisher_is_very_first_standard_post() && is_home() ) ) | |
) : |
This file contains 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
pushd() | |
{ | |
if [ $# -eq 0 ]; then | |
DIR="${HOME}" | |
else | |
DIR="$1" | |
fi | |
builtin pushd "${DIR}" > /dev/null | |
ls -al |
This file contains 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
cd_pwd() | |
{ | |
if [ $# -eq 0 ]; then | |
DIR="${HOME}" | |
else | |
DIR="$1" | |
fi | |
cd "${DIR}" | |
pwd |
This file contains 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
#menu-social ul li { | |
float: right; | |
} | |
@media only screen and (max-width: 1200px) { | |
#menu-social ul li { | |
float: none; | |
} | |
} |
This file contains 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
.linktable {margin-top: 15px;} | |
.linktable a {text-decoration:none} | |
table.linklisttable { | |
width:100%; | |
border-width: 0px 0px 0px 0px; | |
border-spacing: 5px; | |
/* border-style: outset outset outset outset; | |
border-color: gray gray gray gray; */ |
This file contains 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
" Settings | |
" https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh?hl=en | |
" Mappings | |
unmap r "Unmaps the 'r' key for Refresh, since that's used for other things, like GitHub R reply shortcut |
OlderNewer