Skip to content

Instantly share code, notes, and snippets.

@jdabs
jdabs / helper-step-2.html
Created February 21, 2021 15:49
/_includes/layout/base/helper-step-2.html
{% comment %}
This file is licensed under the MIT License (MIT) available on
http://opensource.org/licenses/MIT.
{% endcomment %}
<div class="helper-accordion js-helper-accordion" data-number="2" data-type="user">
<div class="helper-header">
<div class="helper-header-row">
<h2 id="wizardUserTitle" class="helper-title">{% translate wizard-user-title choose-your-wallet %}</h2>

Keybase proof

I hereby claim:

  • I am jabs on github.
  • I am major_key_alert (https://keybase.io/major_key_alert) on keybase.
  • I have a public key whose fingerprint is D10B 6743 E22C 455E 1905 8239 89FF 5D47 57C7 5078

To claim this, I am signing this object:

@jdabs
jdabs / static-html.php
Created January 13, 2019 12:48
freeside atlant
<?php
/**
* Template Name: Jud Static HTML
*/
?>
<!doctype html>
<html class="no-js" lang="">
<!-- boilerplate html modified from https://github.com/h5bp/html5-boilerplate/blob/master/src/index.html -->
<head>
<meta charset="utf-8">
@jdabs
jdabs / geth-chainlink-node.bash
Last active May 27, 2018 14:49 — forked from boxhock/geth-chainlink-node.bash
A startup script for VPS providers such as Vultr to automatically set up geth and chainlink
function price(coin) {
const info = {
request: {
}
}
}
@jdabs
jdabs / cron.php
Last active May 6, 2018 21:30
cron job file for cleaning up camera folders
<?php
class util {
public static function deleteDir($dirPath) {
if (! is_dir($dirPath)) {
throw new InvalidArgumentException("$dirPath must be a directory");
}
if (substr($dirPath, strlen($dirPath) - 1, 1) != '/') {
$dirPath .= '/';
}
@jdabs
jdabs / vote.js
Last active March 29, 2018 21:12
pseudo javascript for utxo weighted voting
// we on the webserver here
var total = 0; // current amount of votes as a dollar figure (or coin amount?)
var spentAddresses = [];
var vote = sentvote;
var walletAddr = vote.Addr;
var voteWithWeight= walletAddr.utxo;
@jdabs
jdabs / wp_mail.md
Created October 6, 2017 18:23 — forked from johnbillion/wp_mail.md
WordPress Emails

WordPress Emails

This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.

This is accurate as of WordPress 4.8, and includes some upcoming changes in WordPress 4.9.

There are a few TODOs left. Please bear with me.

@jdabs
jdabs / verify-wp-core-checksums
Created September 28, 2017 14:02
verify-wp-core-checksums with file last modified date shown
<?php
/**
* Verify WP Core files md5 checksums, outside WordPress.
* Use this script to verify md5 checksums of WordPress core files.
*
* Follow me on Twitter: @HertogJanR
* Please donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J24FGGU96YSUY
*/
/*if ( version_compare( PHP_VERSION, '5.6.29', '<' ) ) {
@jdabs
jdabs / WordPress Shortcode with ob_start()
Created September 26, 2017 14:53 — forked from azizultex/WordPress Shortcode with ob_start()
WordPress Shortcode with ob_start()
function custom_query_shortcode($atts) {
// EXAMPLE USAGE:
// [loop the_query="showposts=100&post_type=page&post_parent=453"]
// Defaults
extract(shortcode_atts(array(
"the_query" => ''
), $atts));