Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Description: Using Docker (requires docker to be installed http://www.docker.io/gettingstarted/ ), spawn a postgresql instance and a dynamically configured treeio instance
# Author: Adam Awan
# Email: adam@tree.io
# Create a PostgreSQL Instance
echo "Retrieving jpetazzo/pglite PostgreSQL Container..."
docker pull jpetazzo/pglite
echo "Running jpetazzo/pglite PostgreSQL Container..."
PGID=$(docker run -d jpetazzo/pglite)
@johnkraczek
johnkraczek / gist:9266136
Created February 28, 2014 06:06
StackTrace
Thread [AWT-EventQueue-0] (Suspended)
owns: WeakHashMap<K,V> (id=55)
NoSuchMethodException(Throwable).<init>(String) line: 264
NoSuchMethodException(Exception).<init>(String) line: not available
NoSuchMethodException(ReflectiveOperationException).<init>(String) line: not available
NoSuchMethodException.<init>(String) line: not available
Class<T>.getDeclaredMethod(String, Class<?>...) line: not available
Component.isCoalesceEventsOverriden(Class<?>) line: not available
Component.access$500(Class) line: not available
Component$3.run() line: not available
#!/bin/bash
#this script should help me provision my new vagrant box with nodejs and some other dependancies.
@johnkraczek
johnkraczek / CF.html
Created September 23, 2019 21:19
ClickFunnels Dynamic Text.
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-sheetrock/1.1.4/dist/sheetrock.min.js"></script>
<script>
var ssDate = 'https://docs.google.com/spreadsheets/d/1WadaxMr90B4LKoLGdS2tupf_ScKWq6VqvcZTfBygUnE/edit#gid=0';
var useEventData = function(err, opt, res) {
if (!err) {
var reEvent = res.rows[1].cellsArray[0];
$('#headline-26391 div')[0].innerHTML = reEvent;
$('#button-25965 span.elButtonSub')[0].innerHTML = reEvent;
}
}
<?php
/**
* Child Theme or plugin
* @since 1.0.0
*/
// include the post not found class.
require get_stylesheet_directory() . '/post_not_found_content.php';
// ... other function code ...
@johnkraczek
johnkraczek / circleturtle.lua
Last active March 5, 2023 10:38
circleturtle.lua
args = { ... }
D = true
if (args[2] == "--up") then
D = false
end
X = 1
@johnkraczek
johnkraczek / moveturtle.lua
Created March 5, 2023 17:38
turtle location
args = { ... }
X = 0
Y = 0
Z = 0
R = 0
R = tonumber(args[1])
Fx = 1