Skip to content

Instantly share code, notes, and snippets.

Josh Pollock Shelob9

Block or report user

Report or block Shelob9

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 1.js
const attributes = {
defaultValue : {
type: 'string',
required: false,
default: 'Default Default Value'
},
blockId: {
type: 'string'
}
};
View docker-tldr.sh
# create webserver called webserver
docker run --detach --publish 80:80 --name webserver nginx
## http://blog.baudson.de/blog/stop-and-remove-all-docker-containers-and-images##
#List all containers (only IDs)
docker ps -aq
#Stop all running containers
docker stop $(docker ps -aq)
#Remove all containers
docker rm $(docker ps -aq)
View 1.js
import {Editor} from '../components/Editor';
export const block = {
//...
edit({attributes, setAttributes}) {
//Get attributes
const {
listId,
accountId
} = attributes;
View 1.js
const string = 'Hi Roy';
console.log(string);//logs a string
console.log(string.slice(4));//logs result of the slice method of string
View force-https.php
<?php
function forceHttps($url){
return preg_replace("/^http:/i", "https:", $url);
}
@Shelob9
Shelob9 / total-entries.php
Last active Apr 19, 2019
Get the total number of saved entry for a Caldera Forms form
View total-entries.php
<?php
$total = Caldera_Forms_Entry_Bulk::count( 'CF12456' );
View composer.json
{
"name": "shelob9/futurecapable",
"minimum-stability": "dev",
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
},
{
"type": "git",
View composer.json
{
"name": "shelob9/contact-form",
"license": "GPL-2.0",
"type": "wordpress-muplugin"
}
@Shelob9
Shelob9 / README.md
Created Mar 21, 2019
Caldera Forms.com -> wp-content/mu-plugins/edd_recurring_create_subscription_args.php
View README.md

I got this error with the EDD Authorize.net add-on Error: E00003: The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:name' element is invalid - The value 'Caldera Forms Pro Basic Monthly - Basic (Billed Monthly)' is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value.

The automatically generated subscription name was too long.

View .lando.yml
name: caldera
recipe: wordpress
config:
env: dev
xdebug: true
php: '7.2'
via: nginx
webroot: wordpress
proxy:
mailhog:
You can’t perform that action at this time.