Skip to content

Instantly share code, notes, and snippets.

@benallfree
benallfree / iconify
Last active May 28, 2020
electron-react-boilerplate icon generation
View iconify
#!/bin/bash
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"/..
RSC="$ROOT/resources"
SRC="${RSC}/icons/1024x1024.png"
echo $SRC
if [ ! -f "$SRC" ]; then
echo "Please create resources/icons/1024x1024.png before running this script."
@benallfree
benallfree / fields-form.js
Created Mar 20, 2019
Toolset types plugin allow duplicate labels across repeating field groups
View fields-form.js
/* ./vendor/toolset/types/resources/js/fields-form.js */
/**
* Static Data
*/
var fieldFormStaticData;
/**
* fields edit
*/
jQuery(document).ready(function($){
View mailchimp_rss.html
<div>*|FEEDBLOCK:http://ctoguy.com/feed.rss?pw=asdf|*<br />
*|FEEDITEMS:[$count=4]|*
<h4><a href="*|FEEDITEM:URL|*">*|FEEDITEM:TITLE|*</a></h4>
<div style="clear: both; word-break: keep-all"><a href="*|FEEDITEM:URL|*"><img src="*|FEEDITEM:ENCLOSURE_URL|*" style="border: 0px initial;
width: 250px;
margin: 0px;
border-radius: 3px;
float: left;
margin-right: 15px;
@benallfree
benallfree / trellis-tools.sh
Created Jul 15, 2017
Command line tools installation
View trellis-tools.sh
# If you need HomeBrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Yarn
brew install yarn
# Install Hugo
brew install hugo
# Sublime command line shortcut
@benallfree
benallfree / iOS Compile & Debug
Created Nov 6, 2015
AppleScript to launch iOS Simulator and Safari debugger using iTerm
View iOS Compile & Debug
#!/usr/bin/osascript
# AppleScript to automatically compile Cordova and open the Safari debugger
set maxWait to 20
set hasClicked to false
set x to 0
set device_name to "Simulator"
# delay fix for yosemite
@benallfree
benallfree / open-webinspector.applescript
Created Oct 30, 2015 — forked from uniphonic/open-webinspector.applescript
This is an AppleScript to automatically compile Cordova and open the Safari debugger. You can also use Automator to assign this script to a shortcut key.
View open-webinspector.applescript
#!/usr/bin/osascript
# AppleScript to automatically compile Cordova and open the Safari debugger
set maxWait to 20
set hasClicked to false
set x to 0
set device_name to "iOS Simulator"
# delay fix for yosemite
@benallfree
benallfree / masonry.patch
Created Jun 2, 2015
Pretty Pinterest Pins Masonry layout patch
View masonry.patch
Index: pretty-pinterest-pins.php
===================================================================
--- pretty-pinterest-pins.php (revision 1172836)
+++ pretty-pinterest-pins.php (working copy)
@@ -4,7 +4,7 @@
* @version 1.3
*/
/*
-Plugin Name: Pretty Pinterest Pins
+Plugin Name: Pretty Pinterest Pins Custom
@benallfree
benallfree / initial-laravel-setup.md
Last active Aug 29, 2015
Initial Laravel setup
View initial-laravel-setup.md

Add hostname to bootstrap/start.php:

'local' => array('homestead', 'Bens-MacBook-Pro.local'),

Install Dotenv:

"require": {
@benallfree
benallfree / bootstrap-and-responsive-laravel.md
Last active Aug 3, 2016
Add Bootstrap theme & responsive support to Laravel
View bootstrap-and-responsive-laravel.md

Add bootstrapper to composer.json and follow setup instructions and documentation

"require": {
    "patricktalmadge/bootstrapper": "dev-develop"
}

Add to app/config/app.php providers:

@benallfree
benallfree / laravel-database-query-logging.md
Last active Aug 29, 2015
Add database query logging to Laravel
View laravel-database-query-logging.md

In app/config/database.php:

'log'=>$_ENV['DB_LOGGING'],

In .env

DB_LOGGING=1