Skip to content

Instantly share code, notes, and snippets.

@borndangerous
borndangerous / HD.txt
Last active August 29, 2015 14:11 — forked from lexrus/HD.txt
http://devstreaming.apple.com/videos/wwdc/2013/710xfx3xn8197k4i9s2rvyb/710/710-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/202xdx2x47ezp1wein/202/202-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/200xdx2x35e1pxiinm/200/200-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/413xdx5x97itb5ek4yex3r7/413/413-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/612xax4xx65z1ervy5np1qb/612/612-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/221xex4xxohbllf4hblyngt/221/221-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/220xbx4xipaxfd1tggxuoib/220/220-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/711xcx4x8yuutk8sady6t9f/711/711-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/404xbx2xvp1eaaqonr8zokm/404/404-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/505xbx4xrgmhwby4oiwkrpp/505/505-HD.mov?dl=1
body {
font-family: freight-sans-pro;
font-size: 40px;
font-weight: 100;
height: 100%;
line-height: 140%;
margin: 0;
overflow: auto;
padding: 0; }
body {
font-family: freight-sans-pro;
font-size: 40px;
font-weight: 100;
height: 100%;
line-height: 140%;
margin: 0;
overflow: auto;
padding: 0; }
@borndangerous
borndangerous / gist:949638
Created April 30, 2011 12:23
Twitter Tweet This
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="CheatSpeak">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
@borndangerous
borndangerous / gist:949633
Created April 30, 2011 12:09
AWeber Notification List
<!-- AWeber Web Form Generator 3.0 -->
<form method="post" class="af-form-wrapper" action="http://www.aweber.com/scripts/addlead.pl" >
<div style="display: none;">
<input type="hidden" name="meta_web_form_id" value="930334298" />
<input type="hidden" name="meta_split_id" value="" />
<input type="hidden" name="listname" value="chs-beta" />
<input type="hidden" name="redirect" value="http://cheatspeak.com/thanks/" id="redirect_385721cf14a494a1b78697132def73d6" />
<input type="hidden" name="meta_adtracking" value="CheatSpeak_Notification_List" />
<input type="hidden" name="meta_message" value="1" />

Here's the deal: I accidentally did a mass find/replace across an entire MySQL table. Specifically, the table containing hundreds of Wordpress posts & pages (wp_posts).

"D'oh" doesn't even begin to explain the moment after that fateful click. For the record, I blame poor user interface design. Here's a screenshot of what happened:

Consequently, this ruined all my Wordpress posts containing shortcodes (i.e: all of them). For instance...

[my_shortcode]Hello world.[/my_shortcode]

[my_image_shortcode]http://mydomain.com/image.png[/my_image_shortcode]

@borndangerous
borndangerous / SchemaHelp.md
Created December 5, 2010 22:06
Quick database question...

Hey, this should be an ultra basic database question, but I've never known the answer and would love an explanation or point in the right direction. So, here it is:

When setting up a database schema - for storing related data (such as descriptive tags) for a piece of content (such as an article or photo), which of the below is the smartest way?

tags Table Schema (Option A)

item_id   tags
1         alpha,beta,gamma
2         beta

3 alpha,gamma

<!-- BEGIN HEADER -->
<div id="header-wrap">
<div id="header" class="container_16 clearfix">
<div class="logo">
<h1><a href="/secure" title="M6 Method" id="logo">M6 Method</a></h1>
</div> <!-- close #logo -->
<div id="siteSearchForm">
<form action="" id="siteSearch" method="get">
/* SAMPLE AMEMBER STUFF */
<?php
session_start();
// is user logged in?
$user = $_SESSION['_amember_user'];
if ($user['member_id'] > 0){
print "Hello $user[name_f] $user[name_l]<br>\n";
$need_one_from = array(3);
if (array_intersect($need_one_from, $_SESSION['_amember_product_ids'])){
// they're good. keep loading.
Delivered-To: dvdwlsh@gmail.com
Received: by 10.204.112.202 with SMTP id x10cs434768bkp;
Tue, 2 Feb 2010 14:21:27 -0800 (PST)
Received: by 10.150.180.6 with SMTP id c6mr3913464ybf.82.1265149281559;
Tue, 02 Feb 2010 14:21:21 -0800 (PST)
Return-Path: <aweber@smtp-corp-01.aweber.com>
Received: from 65609.atlea.net ([72.3.245.93])
by mx.google.com with ESMTP id 16si10318259yxe.85.2010.02.02.14.21.21;
Tue, 02 Feb 2010 14:21:21 -0800 (PST)
Received-SPF: fail (google.com: domain of aweber@smtp-corp-01.aweber.com does not designate 72.3.245.93 as permitted sender) client-ip=72.3.245.93;