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

Keybase proof

I hereby claim:

  • I am raamdev on github.
  • I am raamdev ( on keybase.
  • I have a public key whose fingerprint is 851B E08D AF38 F6A3 81D1 DF09 92A5 D3E8 7AF3 AA99

To claim this, I am signing this object:

raamdev /
Created Dec 30, 2014
Updates a WordPress theme with the latest code from GitHub
# -------------------------------------------------------------------
# This script updates a WordPress theme with the latest code from
# GitHub. You can set it to run as a cronjob to automatically update
# a WordPress theme with the latest code from the master branch (or
# any branch that you want).
# Be sure to chmod +x this file so that it can be executed via Cron.
View htmlc-test.php
ini_set('display_errors', TRUE);
/* --- Config. section. ----------------------------------------------------------------------- */
$url = ''; // Swap this out when testing.
// Install the HTML Compressor locally, and change the following path as necessary.
require_once $_SERVER['WEBSHARK_HOME'].'/websharks/html-compressor/html-compressor/stub.php';
raamdev / raamdev-journal-s2-customizations.php
Created Sep 9, 2014
s2Member Pro-Form customizations that hide the username field and then auto-generate a username based on the email address. This was used for the Paid Journal subscription I ran on between 2011 and 2014.
View raamdev-journal-s2-customizations.php
add_action ("login_head", "s2_customize_login", 1000);
function s2_customize_login ()
<script type = "text/javascript">
function getParameterByName(name)
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
View gist:e9a49c6d0ec1b443d996
Verifying myself: My Bitcoin username is +raamdev.
raamdev / test-ws-connection.php
Created Jul 12, 2014
Test connection to Pro Plugin Updater; result of running this file should be "{"error":"Missing `data`."}"
View test-ws-connection.php
ini_set('display_errors', TRUE);
function curl_download($Url){
// is cURL installed yet?
if (!function_exists('curl_init')){
die('Sorry cURL is not installed!');
View cVimrc
" Settings
" Mappings
unmap r "Unmaps the 'r' key for Refresh, since that's used for other things, like GitHub R reply shortcut
raamdev / gist:45e8fca98365269f0cee
Created Jun 5, 2014
Custom Stylesheet for Link Library running on
View gist:45e8fca98365269f0cee
.linktable {margin-top: 15px;}
.linktable a {text-decoration:none}
table.linklisttable {
border-width: 0px 0px 0px 0px;
border-spacing: 5px;
/* border-style: outset outset outset outset;
border-color: gray gray gray gray; */
raamdev / gist:33d257520050189aa421
Created May 28, 2014
fix social button alignment for
View gist:33d257520050189aa421
#menu-social ul li {
float: right;
@media only screen and (max-width: 1200px) {
#menu-social ul li {
float: none;
View gist:ad88784311bb7f58ff2f
if [ $# -eq 0 ]; then
cd "${DIR}"
You can’t perform that action at this time.