Skip to content

Instantly share code, notes, and snippets.

View robbiegod's full-sized avatar
🧛‍♂️

Robert Fletcher robbiegod

🧛‍♂️
View GitHub Profile
@robbiegod
robbiegod / .gitignore
Created October 5, 2015 16:28 — forked from salcode/.gitignore
.gitignore file for WordPress - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@robbiegod
robbiegod / concrete5.common.code.md
Last active April 22, 2016 15:37
Concrete5 - common code

Concrete5 v5.5.2.1 Common Code Snippets 💥

==========================================

######Output path to theme location <?= $this->getThemePath(); ?>

######Load the required header file <?= Loader::element('header_required'); ?>

######Benefits

@robbiegod
robbiegod / menuInjection.html
Created October 21, 2015 18:53
hover function to load a submenu that is dynamically added into a standard menu.
<!-- Hidden for the contents of the submenu -->
<div id="groupsSubMenuContent" class="hidden">
<div class="subMenuGroups">
<h5>Top 5 Featured Groups</h5>
<ul>
<li><a href="#">LINK 1</a></li>
<li><a href="#">LINK 2</a></li>
<li><a href="#">LINK 3</a></li>
<li><a href="#">LINK 4</a></li>
@robbiegod
robbiegod / MultipleGoogleRecaptchas.html
Last active November 18, 2015 15:38
Load multiple Google reCaptchas 2.0 into a single page.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Multiple Google reCaptchas 2.0 w/ CaptchaCallback</title>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="//www.google.com/recaptcha/api.js?onload=CaptchaCallback&render=explicit" async defer></script>
</head>
<body>
@robbiegod
robbiegod / .htaccess
Created November 23, 2015 17:35
Wordpress .htaccess starter file for Rackspace Cloud Sites (possibly others)
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
@robbiegod
robbiegod / index.html
Last active November 23, 2015 17:56
jQuery Basic Tab Setup
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Basic jQuery Tabs Content</title>
</head>
<body>
<p>Be sure to load jquery into the page</p>
@robbiegod
robbiegod / config.json
Created November 24, 2015 16:18 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#428bca",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",

Mediatemple DV Hosting

TO DO LIST

  1. Enable root permission (BEWARE: there is no going back; only do this if you need complete control over the server)
  2. Install Developer Tools (this setting is located in the same section where you setup root access)
  3. Setup root password.
  4. Setup a domain or subdomain.
  5. Add a new ftp user and set "Access to the server over SSH" to "/bin/bash" (this will let you use putty and command line)
@robbiegod
robbiegod / install-imagemagick-mediatemple-dv-server.md
Last active March 14, 2016 04:14
How to install ImageMagick on MediaTemple DV Server

How to install ImageMagick on MediaTemple DV Server

This assumes that you have setup a DV server with root access and have already installed the developer tools in your mediatemple account. You must also create a user and give it SSH access.

SSH into your DV server using Putty

Perform the following commmands to successfully install imagemagick.

Install ImageMagick

yum install ImageMagick*

Create a Temp directory, set it as the temp_dir location and install imagick

@robbiegod
robbiegod / flashccprohtml5canvasanim.md
Last active October 9, 2020 19:20
Flash CC Pro HTML5 Canvas Loop Twice and then stop on the last frame

Flash CC Professional

HTML5 Canvas Animation that will play twice and then stop on the last frame.

Add a new layer called "actions". Insert a keyframe at the very beginning of your animation and then insert other keyframe at the very end.

Code for Frame 1
if(!this.loopsPlayed) {
	this.loopsPlayed = 0;