Skip to content

Instantly share code, notes, and snippets.

View benallfree's full-sized avatar

Ben Allfree benallfree

  • Reno, NV
View GitHub Profile

Upstream Anchoring: A Versioning Strategy for Forked Packages

Introduction

Upstream Anchoring is a versioning strategy designed to align forked package versions with their upstream counterparts while allowing for independent patch revisions. It ensures clarity, compatibility, and ease of tracking changes, making it ideal for maintaining synchronization without introducing version conflicts.

How it works

  • Version Structure: Keep the MAJOR and MINOR versions identical to the upstream package.
  • Patch Calculation:
@benallfree
benallfree / iconify
Last active May 28, 2020 12:10
electron-react-boilerplate icon generation
#!/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 March 20, 2019 12:43
Toolset types plugin allow duplicate labels across repeating field groups
/* ./vendor/toolset/types/resources/js/fields-form.js */
/**
* Static Data
*/
var fieldFormStaticData;
/**
* fields edit
*/
jQuery(document).ready(function($){
<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 July 15, 2017 01:18
Command line tools installation
# 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 November 6, 2015 14:43
AppleScript to launch iOS Simulator and Safari debugger using iTerm
#!/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 October 30, 2015 13:27 — 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.
#!/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 June 2, 2015 14:35
Pretty Pinterest Pins Masonry layout 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 August 29, 2015 14:05
Initial Laravel setup

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 August 3, 2016 06:42
Add Bootstrap theme & responsive support to Laravel

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

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

Add to app/config/app.php providers: