Find review comments for a specific user on the current branch's PR.
/ayt/list-review-comments [username]
If no username is provided, defaults to "jcdarwin".
| #!/bin/bash | |
| # Git Worktree Setup Script for Conductor | |
| # Sets up a new git workspace for the askyourteam repo (https://github.com/askyourteam-nz/askyourteam) | |
| # under Conductor (https://docs.conductor.build/). | |
| # This script should be run from within a new git worktree directory | |
| # It symlinks necessary files and directories from the main worktree | |
| # This allows us to use git worktrees, sharing the folders from the main directory that | |
| # are not under version control (e.g. node_modules). |
This is how to generate a hash for use in a script-src CSP header
When https://www.googletagmanager.com/gtm.js?id=GTM-KSNK298 loads an inline script, it doesn't correctly include a nonce on the inline script, and so we get a CSP violation and the inline script cannot run.
Hence we need to generate a hash of the inline script and include it in our script-src CSP header.
a.insertBefore(g, null));g at the console, and save the contents inside the <script ...> tag (but not the script tag itself) to inline.js| " Use Vundle for plugin management | |
| " https://github.com/VundleVim/Vundle.vim | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required |
| ##################################################### | |
| # Paths | |
| ##################################################### | |
| # Add paths for epub_tools | |
| export PATH=$PATH:/scripts/epub_tools:/scripts/epub_tools/epub_tools:/scripts/epub_tools/epubcheck:/scripts/epub_tools/epubify:/scripts/epub_tools/epubify_toc:/scripts/epub_tools/epubinfo:/scripts/epub_tools/generate_ncx:/scripts/epub_tools/kindlegen.mac:/scripts/epub_tools/kindlestrip:/scripts/epub_tools/manifester:/scripts/epub_tools/mobi_unpack:/scripts/epub_tools/mobify:/scripts/epub_tools/mobify_toc:/scripts/epub_tools/sequence_ncx | |
| # Add paths for PHP ind PEAR in AMPPs | |
| export PATH=/Applications/AMPPS/php/lib/pear:$PATH | |
| export PATH=/Applications/AMPPS/php/bin:$PATH |
| Vagrant::configure('2') do |config| | |
| config.vm.define :dokku, autostart: false do |box| | |
| box.vm.box = 'trusty' | |
| box.vm.box_url = 'https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box' | |
| box.vm.hostname = 'dokku.me' | |
| box.vm.provider :aws do |aws, override| | |
| aws.access_key_id = ENV['AWS_ACCESS_KEY_ID'] | |
| aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] | |
| aws.keypair_name = 'aws' |
This is a description of how we've setup our home directory on this machine.
We use Mathias Bynen's dotfiles to give us a number of default settings.
| Find and replace in Microsoft Word, using wildcards (Word's form of regular expressions), to find something like: | |
| going | |
| home | |
| to | |
| going home | |
| In the Find box: |
| // Bookmarklet to listen for 'analytics' events and report them to the console. | |
| // Created with http://chriszarate.github.io/bookmarkleter/ | |
| <a href="javascript:void%20function(){jQuery%26%26jQuery(document).bind(%22analytics%22,function(n){console.log('I%20just%20saw%20an%20%22analytics%20event:%20%22',n)})}();">Drag this link to your browser bookmarks bar</a> |
| # The following goes in your config.rb | |
| module Sass::Script::Functions | |
| def inline_svg_image(path) | |
| real_path = File.join(Compass.configuration.images_path, path.value) | |
| svg = data(real_path) | |
| encoded_svg = CGI::escape(svg).gsub('+', '%20') | |
| data_url = "url('data:image/svg+xml;charset=utf-8," + encoded_svg + "')" | |
| Sass::Script::String.new(data_url) | |
| end |