Skip to content

Instantly share code, notes, and snippets.

@shaunfink
shaunfink / roll20-macros.md
Last active May 23, 2020 12:20
Roll20 Macros

Roll20 Macros for Call of Cthulhu

Just a wee collection of useful macros for Roll20 Call of Cthulhu games

Initiative

Uses Dex for the selected token, and adds to the combat tracker

/w gm &{template:default} {{name=Initiative for @{selected|token_name}}} {{Initiative=?{Initiative|
 Normal,Normal ([[ @{selected|dex} &{tracker} ]])|
#!/usr/bin/ruby
require 'net/http'
require 'json'
class GetGitRelease
# Set the Gut API URL
@@git_api_url = "https://api.github.com"
# Initialize the object
def initialize(owner, repo, vtag, osarch)
### Homebrew Stuff
echo "\n### Updating Homebrew ###\n"
brew update
brew upgrade
brew doctor
brew cleanup
### Ruby Gem Stuff
echo "\n### Updating Ruby Gems ###\n"
gem update
" Set compatibility to Vim only.
set nocompatible
" Helps force plug-ins to load correctly when it is turned back on below.
filetype off
" Turn on syntax highlighting.
syntax on
" For plug-ins to load correctly.
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
@shaunfink
shaunfink / .gitconfig
Last active September 29, 2019 11:13
[credential]
helper = osxkeychain
[alias]
reboot = reset --hard
unstage = reset HEAD --
last = log -1 HEAD
new = checkout -b
st = status
co = checkout
ci = commit
#!/bin/sh -ex
codenvy_path=~/Workspace/docker/codenvy
if [[ ( ! -d ${codenvy_path} ) && ( ! -d ${codenvy_path}/data ) ]]; then
mkdir -p ${codenvy_path}
mkdir -p ${codenvy_path}/data
fi
cd ${codenvy_path}
#!/bin/sh
# Install CF Plugins
cf_plugins=(\
'log-stream' \
'report-memory-usage' \
'report-disk-usage' \
'log-cache' \
'app-autoscaler-plugin' \
'autopilot' \
'cfdev' \
#!/bin/bash
# https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
# http://usabilityetc.com/articles/ruby-on-mac-os-x-with-rvm/
# http://railsapps.github.io/installrubyonrails-mac.html
# https://gist.github.com/denji/8706676
# Import GPG Keys for Ruby
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
command curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -