View install-sage.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
themedir="web/app/themes/" | |
echo "Enter the site name. \n | |
This will be used to clone your site locally to /{User}/pantheon-local-copies/{site_name) and to interact with your site." | |
read $sitename | |
echo "Enter your theme name. \n |
View loader.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Pantheon MU Plugin Loader | |
* Description: Loads the MU plugins required to run the site | |
* Author: Pantheon Systems | |
* Author URI: https://pantheon.io | |
* Version: 1.0 | |
*/ | |
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) { |
View delete-multidevs.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This assumes all of your multidevs are named similarly, e.g. dev-1, dev-2, dev-3, etc. By default, Pantheon only allows | |
# 10 concurrent multidevs, so if you're making a lot for debugging purposes, you might want to clear them all out in one | |
# go so you can create more. All of this could be done in a single line of bash if you really wanted to; it's broken out | |
# here for readability, but you could do something like this instead of what follows: | |
# | |
# for i in {1..10}; do; terminus multidev:delete site-name.site-prefix-$i --yes; done; | |
# | |
# Uncomment the following lines with your site name and multidev-prefix. | |
# Again, your multidevs MUST be named with the same prefix or this script won't work! | |
# $SITE_NAME=your-site-name |
View batch_unzip.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls *.zip > filelist | |
for FILENAME in `cat filelist` | |
do | |
unzip $FILENAME | |
rm $FILENAME | |
done | |
rm filelist |
View settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files.trimTrailingWhitespace": true, | |
"[markdown]": { | |
"files.trimTrailingWhitespace": false | |
} | |
} |
View stupid-ascii-header.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Stupid header ASCII art | |
* Plugin URI: https://jazzsequence.com | |
* Description: Displays a stupid ASCII art in the html header. | |
* Version: 1.0 | |
* Author: Chris Reynolds | |
* Author URI: https://github.com/jazzsequence | |
* License: GPLv3 | |
*/ |
View end.gcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Ender 5 Custom End G-code | |
G4 ; Wait | |
M220 S100 ; Reset Speed factor override percentage to default (100%) | |
M221 S100 ; Reset Extrude factor override percentage to default (100%) | |
G91 ; Set coordinates to relative | |
G1 F1800 E-3 ; Retract filament 3 mm to prevent oozing | |
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely | |
G90 ; Set coordinates to absolute | |
G1 X0 Y220 F1000 ; Move Heat Bed to the front for easy print removal | |
M106 S0 ; Turn off cooling fan |
View addCharacter.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add a character line. | |
*/ | |
function addCharacter() { | |
const addChar = document.querySelectorAll( '[id^="add-tmp-char-"]' ); | |
// Loop through added character inputs. | |
for ( const tmpCharButton of addChar ) { | |
// Add a click handler for this particular input. | |
tmpCharButton.addEventListener( 'click', () => { |
View class-taxonomy-base.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Encompass Health Blog Taxonomy Base Class | |
* | |
* Base class for creating and modifying all taxonomies for Encompass Health Blog. | |
* | |
* @package EH\Taxonomies | |
* @author Chris Reynolds <chris@humanmade.com> | |
*/ |
View remove-empty-ps.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove Empty Ps | |
* | |
* Deletes empty <p> tags on save. | |
* This can be included as a standalone plugin. | |
*/ | |
namespace Gist\EmptyPs; |
NewerOlder