Skip to content

Instantly share code, notes, and snippets.

View leviable's full-sized avatar

Levi Noecker leviable

  • Wylie, Tx, USA, Earth
  • LinkedIn in/levinoecker
View GitHub Profile
@leviable
leviable / feature-file-align.md
Last active January 13, 2021 12:59
VIM + Tabularize recipe to align Cucumber Feature Files on the space after the Step keyword

Map commands in .vimrc to align Cucumber complient Feature File steps on the space after the keywords:

" Use Tabularize to set shortcute `,as` to align on feature file step keywords
let mapleader=','
nmap <Leader>as :Tab /^\W*[Given\|When\|Then\|And][a-zA-Z]*\zs\W/r0c0l0<CR>
vmap <Leader>as :Tab /^\W*[Given\|When\|Then\|And][a-zA-Z]*\zs\W/r0c0l0<CR>

So this:

(.venv) ➜ circle-bad-volume python failures.py
Found one for volume 171808 on build 135345
Current Stats for 171808:
Succes: 0
Failed: 1
Failed daemon: 1
Total builds evaluated: 4
List of volumes with daemon failure: ['171808']
Elapsed time: 0:00:04.850986
@leviable
leviable / Circle CI Volume Stats
Created October 21, 2018 00:50
Circle CI Volume Stats
from collections import defaultdict
from datetime import datetime as dt
import os
from circleci.api import Api
import requests
def get_builds(cci):
for offset in range(100):
@leviable
leviable / gist:e26bc857f96931c4e03bfdaf930fe8d3
Last active January 16, 2018 15:08
Setting up a new Macbook