Skip to content

Instantly share code, notes, and snippets.

View matthewboman's full-sized avatar

Matthew Boman matthewboman

  • asheville, north carolina
View GitHub Profile
@matthewboman
matthewboman / stem_download.sh
Created May 12, 2021 13:54
xor stem download
#!bin/bash
STEMS=('s1' 's2' 's4')
for STEM in "${STEMS[@]}";
do
curl -s "https://exclusive-or.io/stems/$STEM.tar.xz" | tar -xJv
done
@matthewboman
matthewboman / sheet_todo.gs
Created February 13, 2019 19:50
Add tasks from Google spreadsheet to Todoist
/**
* Assign column numbers according to your spreadsheet
*/
var clientCol = 0
var dueDateCol = 1
var typeCol = 2
var descriptionCol = 3
/**
@matthewboman
matthewboman / CustomDrushCommands.php
Last active March 8, 2021 15:01
drush 9 command to rebuild Drupal 8.4+ field mappings
<?php
namespace Drupal\custom_drush_commands\Commands;
use Drush\Commands\DrushCommands;
use Drush\Exceptions\UserAbortException;
/**
* Custom drush commands
*/
@matthewboman
matthewboman / Observable.js
Created August 28, 2018 16:56
An ES6 Observable example
class Observable {
constructor(fn) {
this.fn = fn
}
subscribe(next, error, complete) {
if (typeof next === "function") {
return this.fn({
next,
error: error || (() => {}),
@matthewboman
matthewboman / php_seven.sh
Last active July 27, 2018 00:52
Installing PHP 7.2 on Debian 9 (Strech)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apt-transport-https lsb-release ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt-update
sudo apt-get install php7.2
sudo apt-get install php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline php7.2-xml php7.2-zip