Skip to content

Instantly share code, notes, and snippets.

View bigdawggi's full-sized avatar

Matthew Richmond bigdawggi

  • Bigdawggi Co
  • Island Park, ID
View GitHub Profile
@bigdawggi
bigdawggi / composer.sh
Created May 19, 2021 23:30
Docker for Composer and Yarn
#!/bin/bash
# Go to script location
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR
# Specify our version of node to run
composerVer="1.6.5"
# This is a little magic that makes it possible to forward an SSH agent into docker
@bigdawggi
bigdawggi / index.js
Created October 19, 2022 21:39
JavaScript Bookmarklet for Adding a cookie to your current domain
javascript: (() => {
const COOKIE_NAME = 'FOOBAR';
const COOKIE_VALUE = 1;
/**
* Should we show the alert popup after setting the cookie?
*/
const SHOULD_ALERT = true;
var date = new Date();
date.setYear(date.getFullYear() + 1);