Skip to content

Instantly share code, notes, and snippets.

View oneblackcrayon's full-sized avatar

Frederick Polk oneblackcrayon

View GitHub Profile
@oneblackcrayon
oneblackcrayon / googleplusnavbar.html
Created July 11, 2011 21:55
My Google+ Black Nav Bar Experiment
<!DOCTYPE html>
<html lang="en">
<head>
<title>Google Nav Bar</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
</head>
<style type="text/css">
@oneblackcrayon
oneblackcrayon / StripeTutorialPage.html
Created January 2, 2012 03:16
Stripe Tutorial Payment Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Getting Started Form</title>
<script type="text/javascript" src="https://js.stripe.com/v1/"></script>
<!-- jQuery is used only for this example; it isn't required to use Stripe -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
// this identifies your website in the createToken call below
@oneblackcrayon
oneblackcrayon / cm-jumpstart.html
Created April 11, 2012 03:23
Campaign Monitor Multiple Layout Jumpstart Code
<!-- use this code to jumpstart your multiple layouts supported email template for Campaign Monitor -->
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<repeater>
<layout label="one">
<!-- HTML code goes here -->
</layout>
<layout label="two">
@oneblackcrayon
oneblackcrayon / mc-jumpstart.html
Created April 11, 2012 03:33
Mailchimp Variable Content Jumpstart Code
<!-- use this code to jumpstart your variable content block supported email template for Mailchimp -->
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" mc:repeatable="first-repeater" mc:variant="one">
<tr>
<td>
<!-- HTML code goes here -->
@oneblackcrayon
oneblackcrayon / css-styling.txt
Created April 12, 2012 18:57
My CSS styling
This is how I write my CSS:
.class {
background: #FFF;
color: #383838;
display: block;
font: 12px/18px 'HelveticaNeue', sans-serif;
margin: 0 auto;
padding: 20px;
position: relative;
@oneblackcrayon
oneblackcrayon / CreatePreyRecovery.sh
Created August 16, 2012 00:08 — forked from oschrenk/CreatePreyRecovery.sh
Secure MacBook w/ FileVault 2 and Prey
#!/bin/bash
#
# source: https://groups.google.com/d/msg/prey-security/vBv3BGI8Qeg/5xIy0LZjzXAJ
#
# Mount the recovery partition
/usr/bin/sudo /usr/sbin/diskutil mount Recovery\ HD
#
# Backup the recovery boot image
/usr/bin/sudo /bin/cp /Volumes/Recovery\ HD/com.apple.recovery.boot/BaseSystem.dmg ~/Desktop/
#
@oneblackcrayon
oneblackcrayon / .htaccess protection
Created August 16, 2012 01:02 — forked from jonathonbyrdziak/.htaccess protection
htaccess Security :: A compilation of .htaccess commands to make your website more secure.
#################################
## FORCE SERVER TO RUN PHP5
#Action php5-script /gs-bin/php-5.1.6-6
#AddHandler php5-script .php
AddType x-mapp-php5 .php
##############################################################
## Authorization required to access the entire website
## This authorization eliminates anybody from being able to access the website
@oneblackcrayon
oneblackcrayon / s-maintenance-mode.php
Created August 16, 2012 21:56 — forked from mjangda/s-maintenance-mode.php
Custom WordPress maintenance mode that allows super admins access to the Dashboard
<?php
add_action( 'init', 'x_maintenance_mode' );
function x_maintenance_mode() {
if ( defined( 'X_MAINTENANCE_MODE' ) && true === X_MAINTENANCE_MODE ) {
if ( is_super_admin() && is_admin() )
return;
die( 'Site is currently under maintenance' );
<?php
/**
* Define type of server
*
* Depending on the type other stuff can be configured
* Note: Define them all, don't skip one if other is already defined
*/
define( 'DB_CREDENTIALS_PATH', dirname( ABSPATH ) ); // cache it for multiple use
@oneblackcrayon
oneblackcrayon / Golden-Rule-Typography-with-EMs-Demo.html
Last active October 9, 2015 10:57
Golden Rule Typography with EMs Demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<style type="text/css">
/* @ HTML Style */
html {
background: #F7F7F7;