Skip to content

Instantly share code, notes, and snippets.

@ricog
ricog / dependabot-deployment-strategies.md
Created November 10, 2025 20:29
Dependabot PR Deployment Strategies: Skip vs Deploy-and-Verify - A comprehensive comparison of CI/CD approaches for automated dependency updates

Dependabot PR Deployment Strategies: Skip vs Deploy-and-Verify

Overview

When dealing with Dependabot PRs in CI/CD pipelines, teams face a choice: should automated dependency update PRs trigger deployments, or should they skip deployment and only run tests?

This document compares two approaches:

  1. Approach A: Skip Deployment - Run build/lint/test checks but skip deployment for Dependabot PRs
  2. Approach B: Deploy-and-Verify - Deploy to preview environment and run E2E tests before auto-merge
@ricog
ricog / dependabot-auto-merge-setup.md
Created November 10, 2025 19:22
Dependabot Auto-Merge Setup Guide - Automatically approve and merge Dependabot PRs (patch/minor updates only)

Dependabot Auto-Merge Setup Guide

This guide provides a complete setup for automatically approving and merging Dependabot pull requests using GitHub Actions.

Prerequisites

  1. Dependabot already enabled and configured for your repository
  2. Admin access to the repository

Files Required

@ricog
ricog / AMD_NPU_INSTALL_UBUNTU_25.04.md
Created October 28, 2025 22:00
AMD NPU Driver and XRT Tools Installation Guide for Ubuntu 25.04

AMD NPU Setup Guide for Ubuntu 25.04

Quick installation guide for enabling AMD Ryzen AI NPU on Ubuntu 25.04 with Secure Boot.

System Requirements

  • Processor: AMD Ryzen AI processor (Strix/Phoenix series)
  • OS: Ubuntu 25.04
  • Kernel: 6.14+ (included in Ubuntu 25.04)
  • Secure Boot: Can remain enabled (requires MOK enrollment)
@ricog
ricog / git-done-alias.md
Last active August 20, 2025 18:08
Git 'done' alias for post-merge cleanup

Git "done" Alias

A convenient git alias for cleaning up after merged pull requests.

Installation

git config --global alias.done '!f() { current_branch=$(git rev-parse --abbrev-ref HEAD); if [ "$current_branch" = "main" ]; then echo "Already on main branch"; git fetch && git pull && git remote prune origin; else git fetch && git checkout main && git pull && git branch -d "$current_branch" && git remote prune origin; fi; }; f'
@ricog
ricog / 00-deploy-quasar-framework-using-aws-amplify-console.md
Last active May 5, 2024 21:20
Deploy Quasar Framework using AWS Amplify Console
  1. Modify build image settings to use the node:12 image (see screenshot below).
  2. Replace the amplify.yml file in the console with this one.

This will start the build using node:12, install Quasar CLI, run quasar build and speficy dist/spa as the output directory.

image

@ricog
ricog / Dockerfile
Created November 8, 2016 15:54
Docker wait for mysql to be ready and then load sql
FROM mysql:5.6
MAINTAINER Your Name <[email protected]>
COPY wait-for-mysql.sh /
CMD /wait-for-mysql.sh

Keybase proof

I hereby claim:

  • I am ricog on github.
  • I am ricog (https://keybase.io/ricog) on keybase.
  • I have a public key whose fingerprint is D7FA 65DA 4CA0 7552 CA59 4550 0DA3 010B 5ADA 2730

To claim this, I am signing this object:

@ricog
ricog / gist:9df21476cc7ff697aad3
Last active August 29, 2015 14:07
Disabling SSLv3 on HTTPS web servers
@ricog
ricog / gist:e5f468f24a475f89e9cf
Created October 8, 2014 17:20
Intro to Docker on OSX

Intro to Docker

Installing Docker on OSX (using boot2docker)

Look at Docker Installation or if you already have VirtualBox and Homebrew installed:

`brew update && brew install docker`

Running the Docker VM

-- Looking for records that will expire 3 or 9 months from today.
-- Original query.
-- DATE(NOW()) = DATE_SUB(`Dress`.`expiration_date`, INTERVAL 3 MONTH) OR
-- DATE(NOW()) = DATE_SUB(`Dress`.`expiration_date`, INTERVAL 9 MONTH)
-- Start a select query.
SELECT
-- PROBLEM