Skip to content

Instantly share code, notes, and snippets.

@mikeraynham
mikeraynham / machine.js
Last active March 30, 2021 13:33
Generated by XState Viz: https://xstate.js.org/viz
const updateName = {
target: "editingName",
actions: ["assignName"],
}
const loadKeywordFromEvent = {
target: "loadingKeyword",
actions: "assignKeywordId",
};
@mikeraynham
mikeraynham / clear_exim_queue.sh
Created April 10, 2018 11:07
Clear exim queue
exiqgrep -i | xargs exim -Mrm
@mikeraynham
mikeraynham / icalendar.pl
Created April 6, 2018 08:31
iCalendar event with VTIMEZONE, using Perl, DateTime, and Data::ICal
#!/usr/bin/env perl
use v5.14;
use strict;
use warnings;
use utf8;
use open qw<:encoding(UTF-8) :std>;
use Data::ICal::Entry::Event;
use Data::ICal::Entry::TimeZone::Daylight;
@mikeraynham
mikeraynham / install-vim.md
Created October 13, 2016 11:40
Install latest Vim with Python 2.7 on CentOS 6.6

Note: this requires Python 2.7 (python27-devel) to be installed from your favourite repo (e.g., IUS).

Remove existing vim package, if any:

yum remove -y vim-enhanced

Get latest Vim repo:

@mikeraynham
mikeraynham / install-tmux.md
Last active March 15, 2018 06:40
Install tmux 2.3 on CentOS 6.6
@mikeraynham
mikeraynham / github_pull_request.md
Last active August 29, 2015 14:23
Create a GitHub pull request
  • Go to the GitHub page of the repo for which you want to create a pull request.
  • Click Fork to create your own fork of the repository.
  • Go to the GitHub page of your fork of the repository.
  • Copy the Git clone URL.
  • Clone the repo on your machine, e.g.:
git clone git@github.com:mikeraynham/puppet-supervisord.git

Prefix key

Ctrl-b

Split screen (panes)

Creation

Vertical: %

set nocompatible
execute pathogen#infect()
syntax on
autocmd BufEnter * :syntax sync fromstart
filetype plugin indent on
set tags=./.tags,.tags
set guifont=DejaVu\ Sans\ Mono:h12