Skip to content

Instantly share code, notes, and snippets.

View mpriscella's full-sized avatar

Mike Priscella mpriscella

View GitHub Profile
@mpriscella
mpriscella / kshell
Last active April 29, 2023 04:14
kshell helper function
#!/bin/bash
# Copy and paste this function into your .zshrc or .bashrc to use.
# This function assumes the following:
# 1. You have fzf (https://github.com/junegunn/fzf) installed
# 2. You have kubectl installed
# 3. Your helm managed deployments contain the label 'app.kubernetes.io/instance'
# where the value is the name of the helm release
# 4. Your active kubeconfig context is already pointing to the cluster
@mpriscella
mpriscella / drupal-install.sh
Created August 9, 2020 15:51
Drupal Install
#/bin/bash
git clone https://git.drupalcode.org/project/drupal.git
cd drupal
git checkout 9.0.3
curl https://gist.githubusercontent.com/mpriscella/be874acf4685e6bf3308732b0162be9b/raw/b4a97943cc99277c2fa2c55ee790c90ca363a247/devcontainer.patch | git apply -
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100755
index 0000000000..dfa8f2ae3e
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,51 @@
+FROM php:7.3-fpm-buster as php
+
+WORKDIR /var/www/html
+
@mpriscella
mpriscella / Makefile
Created December 28, 2018 03:42
Docker Compose file for Drupal
.PHONY: browser-test down drush install prune ps shell stop unit-test up
default: up
browser-test:
docker exec -ti $(shell docker ps --filter name='drupal_php' --format "{{ .ID }}") bash -c "cd /var/www/html/ && ./vendor/bin/phpunit -c phpunit.xml $(filter-out $@,$(MAKECMDGOALS))"
down: stop
drush:
@mpriscella
mpriscella / resume.md
Last active January 3, 2018 19:12
Resume
@mpriscella
mpriscella / tag_deploy
Created September 15, 2016 19:52
Tag Deploy
#! /bin/bash
dry_run=false
while [[ $# > 0 ]]; do
case "$1" in
-b|--build)
build="$2"
shift
;;
-v|--version)

Keybase proof

I hereby claim:

  • I am mpriscella on github.
  • I am mpriscella (https://keybase.io/mpriscella) on keybase.
  • I have a public key whose fingerprint is D9FE 83E7 9440 65A1 2F35 5E0D 3BF9 56BD 6269 93D8

To claim this, I am signing this object: