Skip to content

Instantly share code, notes, and snippets.

# 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
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"
/* 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;
}
<?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() ) )
) :
pushd()
{
if [ $# -eq 0 ]; then
DIR="${HOME}"
else
DIR="$1"
fi
builtin pushd "${DIR}" > /dev/null
ls -al
cd_pwd()
{
if [ $# -eq 0 ]; then
DIR="${HOME}"
else
DIR="$1"
fi
cd "${DIR}"
pwd
@raamdev
raamdev / gist:33d257520050189aa421
Created May 28, 2014 21:24
fix social button alignment for sgclark.com
#menu-social ul li {
float: right;
}
@media only screen and (max-width: 1200px) {
#menu-social ul li {
float: none;
}
}
@raamdev
raamdev / gist:45e8fca98365269f0cee
Created June 5, 2014 23:51
Custom Stylesheet for Link Library running on raamdev.com/resources/
.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; */
" 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