Skip to content

Instantly share code, notes, and snippets.

View AndrewGearhart's full-sized avatar
🛠️

Andrew Gearhart AndrewGearhart

🛠️
View GitHub Profile
@AndrewGearhart
AndrewGearhart / d7adminrubik.drecipe
Last active August 29, 2015 14:16
Recipe for setting the admin page to use the Rubik theme
{
"name": "Drupal 7 Admin Page - Rubik",
"drush_recipes_api": "1.0",
"weight": "0",
"core": "7",
"recipe": [
{
"command": "pm-enable",
"arguments": [
"tao,rubik",
version: '2'
services:
solr6:
image: solr:6.6
volumes:
- ./docker/solr/schema.xml:/opt/solr/example/solr/collection1/conf/schema.xml:Z
- ./docker/solr/solrconfig.xml:/opt/solr/example/solr/collection1/conf/solrconfig.xml:Z
- data-solr:/opt/solr
volumes:
data-solr-2:
@AndrewGearhart
AndrewGearhart / bashTemplate.sh
Last active June 16, 2023 12:35
Bash Script Template
#!/usr/bin/env bash
# set -euo pipefail
IFS=$'\n\t'
#/ Usage:
#/ Version:
#/ Description:
#/ Examples:
#/ Options:
#/ --help: Display this help message
@AndrewGearhart
AndrewGearhart / slackpost
Last active November 17, 2017 17:23 — forked from dopiaza/slackpost
Post a message to a Slack channel
#!/usr/bin/env bash
# Usage: slackpost "<webhook_url>" "<channel>" "<username>" "<message>"
# also (echo $RANDOM; echo $RANDOM) |slackpost "<channel>" "<username>"
# ------------
webhook_url=$1
if [[ $webhook_url == "" ]]
then
echo "No webhook_url specified"

Keybase proof

I hereby claim:

  • I am andrewgearhart on github.
  • I am andrewgearhart (https://keybase.io/andrewgearhart) on keybase.
  • I have a public key ASCILFoldgZCabQBDPNk-Pu-GF6LB3Wq-BVNxW_ZaooBNwo

To claim this, I am signing this object: