Skip to content

Instantly share code, notes, and snippets.

View benrowe's full-sized avatar
😀
building things!

Ben Rowe benrowe

😀
building things!
View GitHub Profile
@benrowe
benrowe / README.md
Created November 7, 2023 05:04
Convert aws SSM params to .env file

Usage

./script.sh us-east-1 /my/param/prefix/ example.env

@benrowe
benrowe / HASS_SNIPPETS.md
Created August 21, 2023 02:54
A collection of snippets for HASS

Hass YAML snippets

@benrowe
benrowe / README.md
Created November 16, 2021 00:51
Find missing Foreign Key constraints

Find missing Foreign Key constraints in a MySQL database

This sql script can help identify FK columns in databases that are missing a constraint.

@benrowe
benrowe / README.md
Last active July 26, 2020 08:40
Run laravel tests with mysql

Run laravel tests efficiently with mysql

Injects a command into the phpunit bootstrap to seralise the migrated database state to an sql file.

Then on every test case, reset the database using the generated file.

Everytime phpunit runs, the test:bootstrap command is executed.

This will check for the existance of a sql file and if not, it creates a temporary database, migrates into the database and dumps the final migration to a sql file.

tap "eugenmayer/dockersync"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/core"
tap "miderwong/flutter"
brew "openssl@1.1"
brew "asdf"
brew "aws-google-auth"
brew "aws-iam-authenticator"
@benrowe
benrowe / .editorconfig
Created January 28, 2020 20:17
editorconfig
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
@benrowe
benrowe / docker commands.md
Created October 30, 2019 04:04
Handy docker commands

Handy Docker Commands

Stop all running docker containers

docker stop $(docker ps -q)
@benrowe
benrowe / konami.js
Created June 5, 2019 06:08
old konami jquery plugin
$.fn.konami = function (options) {
var enterKey = 13;
if (typeof options == 'function') {
options = { callback: options };
}
options = options || {};
options = $.extend({
@benrowe
benrowe / .zshrc
Created November 20, 2018 20:34
oh my zsh config
export ZSH=/Users/ben/.oh-my-zsh
ZSH_THEME="af-magic"
plugins=(git)
plugins=(zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
export GOPATH=$HOME/go
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin