Skip to content

Instantly share code, notes, and snippets.

🖖

Raam Dev raamdev

🖖
Block or report user

Report or block raamdev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View macports.nginx.txt
# 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
View browser-caching.conf
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"
View mac_setup_create_symlinks.sh
View sml_emailinput.css
/* 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;
}
View gist:ad36b0efb1b2effdbcd4
<?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() ) )
) :
View gist:8513448439b24264e9a2
pushd()
{
if [ $# -eq 0 ]; then
DIR="${HOME}"
else
DIR="$1"
fi
builtin pushd "${DIR}" > /dev/null
ls -al
View gist:ad88784311bb7f58ff2f
cd_pwd()
{
if [ $# -eq 0 ]; then
DIR="${HOME}"
else
DIR="$1"
fi
cd "${DIR}"
pwd
@raamdev
raamdev / gist:33d257520050189aa421
Created May 28, 2014
fix social button alignment for sgclark.com
View gist:33d257520050189aa421
#menu-social ul li {
float: right;
}
@media only screen and (max-width: 1200px) {
#menu-social ul li {
float: none;
}
}
@raamdev
raamdev / gist:45e8fca98365269f0cee
Created Jun 5, 2014
Custom Stylesheet for Link Library running on raamdev.com/resources/
View gist:45e8fca98365269f0cee
.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; */
View cVimrc
" 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
You can’t perform that action at this time.