Skip to content

Instantly share code, notes, and snippets.

@rdebeasi
rdebeasi / grpc-client-server.md
Last active Jan 10, 2019
Research on client-server communication with gRPC
View grpc-client-server.md
View phone-troubleshooting.md
@rdebeasi
rdebeasi / event-storming.md
Last active May 17, 2018
Notes for running an event storming workshop
View event-storming.md

From a whiteboard that someone wrote in Boston:

  1. Establish goal & context
  2. Users/functional roles
  3. Important steps on timeline? (step)
  4. What does the button say? (command)
  5. What does the button do? (event)
  6. What data do you need to successfully press the button? (aggregate)
  7. Is there a UI for this? (view)
@rdebeasi
rdebeasi / posts-to-taxonomies.sh
Created Oct 27, 2017
Convert Hugo posts to taxonomies
View posts-to-taxonomies.sh
#!/bin/bash
# Run this in the directory containing the content type that you'd like to move.
# This script moves each markdown file into a new directory of the same name and renames the file to _index.md.
# You'll also need to add the taxonomy to config.toml.
FILES=*.md
for file in $FILES
do
filename="${file%%.*}"
if [ "$filename" == "_index" ]; then
@rdebeasi
rdebeasi / fastly-debug.sh
Created Nov 4, 2015
Use curl to debug fastly
View fastly-debug.sh
curl -svo /dev/null -H "Fastly-Debug: true" http://www.statnews.com/feed/
@rdebeasi
rdebeasi / download-page.sh
Created Oct 16, 2015
Download web page, rewriting URLs to be sane and downloading assets
View download-page.sh
wget [url] -p -k -E --restrict-file-names=windows
@rdebeasi
rdebeasi / sshtail.sh
Last active Oct 1, 2015 — forked from hirozed/sshtail.sh
Bash Script to feed a remote log via ssh to a local file.
View sshtail.sh
#!/bin/bash
#
# Usage:
#
# server logfile/path output/path
# example sshtail.sh user@ssh.server /var/log/apache2/error.log ~/tmp/error.local.log
[ "$1" == "--help" ] && { printf "Usage: server logfile/path output/path\n"; exit; }
# Delete the file so we don't output anything until after we connect
@rdebeasi
rdebeasi / shelve
Last active May 16, 2016
Simple equivalent of "git stash" for Subversion
View shelve
#!/bin/sh
# Simple equivalent of "git stash" in Subversion.
# This doesn't require creating branches (which can get messy) or using patches
# (which doesn't work if a visual diff tool is configured).
# More ideas: http://stackoverflow.com/q/1554278/925475
# If any comamand fails, abort the script.
set -e
View wp-scss-lint.yml
# This file follows the WordPress CSS standards as closely as possible. For any
# linters that aren't listed in this file, we're accepting the default settings.
# https://make.wordpress.org/core/handbook/best-practices/coding-standards/css/
# Linter documentation: http://git.io/vG7gu
# See also: http://sass-guidelin.es/
linters:
Comment:
You can’t perform that action at this time.