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 / Personal-Homebrew-Tab-Instructions.md
Created June 20, 2025 18:58
Steps to create a personal Homebrew tap with working CI

Steps for creating your own personal homebrew tap

These instructions reference the durdraw tool

  1. Create a new repo in github. It MUST be named "homebrew-durdraw" for the brew tap command to work as intended
  2. Install homebrew. It works well with linux and macos, for both x86_64 and arm64
  3. Create the tap locally: brew tap-new --branch main --github-packages leviable/durdraw
    a. Note the instructions it spits out at the end. Copy and save those elsewhere so you can reference them later if needed.
  4. cd into the new directory. You can get the file path with brew tap-info leviable/durdraw
  5. You may need to set your remote git remote set-url origin [email protected]:leviable/homebrew-durdraw.git and your master/main branch origin
@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