Skip to content

Instantly share code, notes, and snippets.

View betweenbrain's full-sized avatar
🎯
Focusing

Matt Thomas betweenbrain

🎯
Focusing
View GitHub Profile
DIY Natural Flea & Tick Spray For DOGS ONLY
INGREDIENTS
4 Tbsp. raw apple cider vinegar
2 Tbsp. aloe vera gel
1 tsp. vegetable glycerin (optional – helps to moisturize your dogs hair and skin and to further carry the essential oils.)
1 Tbsp. sweet almond oil (or some other carrier oil. Almond oil is a great choice because of its sulfur content; ticks hate almond oil!)
4 drops MRH sweet orange essential oil or PT sweet orange eo
4 drops MRH lemon essential oil or PT lemon eo
@betweenbrain
betweenbrain / nuts.md
Last active April 20, 2018 22:39
Network UPS Tools Setup
Foo
@betweenbrain
betweenbrain / app.component.ts
Created February 2, 2018 18:53
Use JavaScript library with Angular v4+
import {Component} from '@angular/core';
import * as MobileDetect from '../../node_modules/mobile-detect/mobile-detect';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
md: any;
@betweenbrain
betweenbrain / elastic.php
Created January 22, 2018 14:10
Joomla Elasticsearch CLI
<?php
/**
* @package ${NAMESPACE}
* @subpackage
*
* @copyright A copyright
* @license A "Slug" license name e.g. GPL2
*/
// CLI execution only
@betweenbrain
betweenbrain / custom-joomla-custom-field.md
Last active March 11, 2023 03:26
Developing a custom Joomla custom field plugin

Anatomy of a custom form field

fields
  |
  -- fieldName.php
language
  |
  -- en-GB
    |
 -- en-GB.plg_fields_fieldName.ini
@betweenbrain
betweenbrain / linux-combine-files.md
Created October 13, 2017 13:27
Linux combine multiple files

$ find . -type f -name '*.sql' -exec cat {} + &gt;&gt; ../combined.sql

@betweenbrain
betweenbrain / mac-ftp.md
Created October 13, 2017 13:26
Start Mac FTP server

$ sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist

@betweenbrain
betweenbrain / gist:a3fd6e5613b88d52a5a3b3442a4a7a1b
Created August 17, 2017 17:52
Fix mocha module './options' not found
From https://github.com/mochajs/mocha/issues/2423#issuecomment-261574980
`npm uninstall -D mocha && npm i -D mocha`
@betweenbrain
betweenbrain / apache-docker.md
Last active May 2, 2017 16:14
PHP 5.6 Apache Docker container

Start container interactively, forwarding port 80 to localhost 8080

$ docker run -p 8080:80 -v /Users/kingbob/Sites:/var/www/html -it --name php5-6 php:5.6.30-apache bash

Start Apache2
$ service apache2 start

Start container interactively

$ docker start -i php5-6