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 keybase.md

Keybase proof

I hereby claim:

  • I am raamdev on github.
  • I am raamdev (https://keybase.io/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
raamdev / update-wp-child-theme-from-github.sh
Created Dec 30, 2014
Updates a WordPress theme with the latest code from GitHub
View update-wp-child-theme-from-github.sh
#!/bin/bash
# -------------------------------------------------------------------
#
# 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
<?php
error_reporting(-1);
ini_set('display_errors', TRUE);
/* --- Config. section. ----------------------------------------------------------------------- */
$url = 'http://yoursite.com/'; // 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 / 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 raamdev.com between 2011 and 2014.
View raamdev-journal-s2-customizations.php
<?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. https://onename.io/raamdev
@raamdev
raamdev / test-ws-connection.php
Created Jul 12, 2014
Test connection to WebSharks-Inc.com Pro Plugin Updater; result of running this file should be "{"error":"Missing `data`."}"
View test-ws-connection.php
<?php
error_reporting(-1);
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
" 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
@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; */
@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;
}
}
View gist:ad88784311bb7f58ff2f
cd_pwd()
{
if [ $# -eq 0 ]; then
DIR="${HOME}"
else
DIR="$1"
fi
cd "${DIR}"
pwd
You can’t perform that action at this time.