Skip to content

Instantly share code, notes, and snippets.

View amaisano's full-sized avatar

Adamo Maisano amaisano

  • MBTA
  • Boston, MA
View GitHub Profile
@amaisano
amaisano / ha-websocket-reader.sh
Created April 27, 2023 14:25
Reads the HA websocket API for updates to certain devices from command line
#!/bin/bash
# Requires jq binary
# Requires websocat binary
source ~/.profile
SERVER="wss://XXXXXX.ui.nabu.casa/api/websocket"
ENTITY1="input_boolean.adamo_meeting"
ENTITY2="input_boolean.work_auto_lock"
@amaisano
amaisano / birds_of_paradise_alt.json
Created August 22, 2020 15:34
Birds of Paradise alternative colors (vs code theme)
{
"$schema": "vscode://schemas/color-theme",
"type": "dark",
"colors": {
"editor.background": "#372725",
"editor.foreground": "#e6e1c4",
"editor.lineHighlightBackground": "#281c1c66",
"editor.selectionBackground": "#a40042",
"editorCursor.foreground": "#dddddd",
"editorError.foreground": "#ff2600",
@amaisano
amaisano / install.php
Last active April 24, 2020 22:15
Drupal 8 deploy trick
<?php
/**
* @file
* Allow post config updates to run.
*/
/**
* Implements hook_install().
*/
@amaisano
amaisano / MBTA_CMS_API.md
Last active February 4, 2020 21:10
A snapshot of MBTA's CMS API Endpoints
@amaisano
amaisano / readme.md
Last active April 29, 2019 13:14
Adding Build Tools to an existing Pantheon Drupal Site

Disclaimer

This is very loose and not official. I leaned heavily on the excellent documentation on Pantheon (linked in various spots below). Written quickly, after the fact. Ping me if something doesn't go right, and always remember to backup your work :)

Pre-requisites:

  1. Have a Pantheon account/site
  2. Have a CircleCI account authorized to work with GitHub
  3. Have a GitHub account/repo

Notes

The premise of this is pretending you're making a brand new, squeakly clean, Build-Tools based Pantheon D8 site from scratch. Once it's setup, we start integrating/copying things to our existing D8 site/repo. So if you have an existing D8 site called "mysite," use "mysite2" for everything in the official directions.