Skip to content

Instantly share code, notes, and snippets.

View gearsandcode's full-sized avatar
🎧

Jesse Clark gearsandcode

🎧
  • Couple of Blocks, LLC
  • Seattle, WA
  • 14:25 (UTC -12:00)
View GitHub Profile
@gearsandcode
gearsandcode / github-action-run-deleteion-with-options.md
Last active February 15, 2025 10:04
Delete GitHub Action runs with options

GitHub Workflow Run Deletion Guide

A utility script for managing GitHub Actions workflow runs. Provides flexible options for bulk deletion of workflow runs with safety features.

Features

  • Delete all workflow runs in a repository
  • Delete workflow runs with a specific name
  • Keep N most recent workflow runs and delete the rest
  • Dry run mode to preview deletions
@gearsandcode
gearsandcode / delete-workflow-runs.md
Created February 15, 2025 07:28
Batch delete GitHub Action runs

Delete GitHub Workflow Runs

This command will batch delete all workflow runs in your repository.

Install GitHub CLI

For Mac OSX, use Brew

brew install gh
@gearsandcode
gearsandcode / .gitignore
Created January 11, 2022 01:31
.gitignore
node_modules/*
.vscode/settings.json
.DS_Store
@gearsandcode
gearsandcode / material-design-breakpoints.css
Created April 25, 2017 00:34 — forked from eyecatchup/material-design-breakpoints.css
CSS media queries based on the breakpoint guidance published by the Material Design team. http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoint
/* Material Design Adaptive Breakpoints */
/*
Below you'll find CSS media queries based on the breakpoint guidance
published by the Material Design team. You can choose to use, customise
or remove these breakpoints based on your needs.
http://www.google.com/design/spec/layout/adaptive-ui.html#adaptive-ui-breakpoints
*/
/* mobile-small */
@gearsandcode
gearsandcode / android_studio-sim-remote_debug-OSX.md
Last active March 28, 2017 17:06
Android Studio + Simulator + remote debug w/ devtools on OSX

For this example we'll add a Virtual Device for a Samsung Galaxy 5 aka 'the main culprit'. You will not have access to Network activity with a virtual device, you'd need to plug in the physical device.

Setup Simulator

  1. Download Android Studio here: https://developer.android.com/studio/install.html and follow the installation instructions.
  2. Download the Galaxy S5 emulator skin from the top of the page here: http://developer.samsung.com/technical-doc/view.do?v=T000000215 then save it and extract it to a directory for use in a later step
  3. Start Android Studio, you may have to browse to it
  4. Start a New Project.
    • Make sure that Phone and Tablet are checked and use the latest API 25+
    • Use default activity and click through and Finish
  • Wait for build..
@gearsandcode
gearsandcode / ng1-partition-array.filter.js
Last active June 22, 2016 02:13
partition array filter - distribute an array into columns #angularjs #array #partition #columns
Example usage: <!-- ngRepeat: thing in things | limitTo:6 | partition:3 -->
limitTo = max items to return
partition = how many arrays
.filter('partition', [ '$cacheFactory', function($cacheFactory) {
var arrayCache = $cacheFactory('partition');
var filter = function(arr, size) {
if (!arr) { return; }
var newArr = [];