Skip to content

Instantly share code, notes, and snippets.

View rogeruiz's full-sized avatar

Roger Steve Ruiz rogeruiz

View GitHub Profile
rogeruiz /
Created February 24, 2024 00:34 — forked from roalcantara/
XDG cheat sheet

XDG - Base Directory Specification



The intended use-case for BaseDirectories is to query the paths of user-invisible standard directories that have been defined according to the conventions of the operating system the library is running on.

rogeruiz / gruvbox-material-alacritty.yml
Created September 19, 2023 13:05 — forked from ttys3/gruvbox-material-alacritty.yml
Gruvbox Material for Alacritty
View gruvbox-material-alacritty.yml
# The definition of color schemes.
gruvbox_material_hard_dark: &gruvbox_material_hard_dark
background: '0x1d2021'
foreground: '0xd4be98'
black: '0x32302f'
red: '0xea6962'
green: '0xa9b665'
rogeruiz /
Created April 21, 2023 20:11 — forked from bbqtd/
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):

rogeruiz /
Created January 22, 2023 23:03 — forked from eddiewebb/
Hugo JS Searching with Fuse.js
rogeruiz / dms_nonmasteruser.sql
Last active October 7, 2022 19:07
AWS DMS NonMasterUser documentation revisted
View dms_nonmasteruser.sql
-- ███████╗██████╗ ██████╗ ███╗ ███╗ ████████╗██╗ ██╗███████╗
-- ██╔════╝██╔══██╗██╔═══██╗████╗ ████║ ╚══██╔══╝██║ ██║██╔════╝
-- █████╗ ██████╔╝██║ ██║██╔████╔██║ ██║ ███████║█████╗
-- ██╔══╝ ██╔══██╗██║ ██║██║╚██╔╝██║ ██║ ██╔══██║██╔══╝
-- ██║ ██║ ██║╚██████╔╝██║ ╚═╝ ██║ ██║ ██║ ██║███████╗
-- ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝
-- ██████╗ ███████╗███████╗██╗ ██████╗██╗ █████╗ ██╗ █████╗ ██╗ ██╗███████╗
-- ██╔═══██╗██╔════╝██╔════╝██║██╔════╝██║██╔══██╗██║ ██╔══██╗██║ ██║██╔════╝
-- ██║ ██║█████╗ █████╗ ██║██║ ██║███████║██║ ███████║██║ █╗ ██║███████╗
rogeruiz / log.txt
Created September 7, 2022 03:27
running a Nix update on Intel Mac with BitDefender enabled
View log.txt
replacing old 'mymove-packages'
installing 'mymove-packages'
these derivations will be built:
these paths will be fetched (37.58 MiB download, 169.98 MiB unpacked):



The incident management steps I have in mind when being on-call and getting an alert are:

  • Verify the issue
  • Triage
  • Communicate and scalate if needed
  • Mitigate
rogeruiz / .envrc.local-for_milmove
Last active August 26, 2022 15:29
My super simple MilMove local .envrc
View .envrc.local-for_milmove
# It takes me a little longer to open 1Pass to get my MFA number.
# Create a DB_URL that I can consume in scripts and things
export DB_URL="postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}"
rogeruiz /
Created June 8, 2022 13:38 — forked from ef4/
Webpack 5 Node Polyfills Upgrade Cheatsheet

Webpack 5 Node Polyfills Upgrade Cheatsheet

Webpack 4 automatically polyfilled many Node APIs in the browser. This was not a great system, because it could lead to surprisingly giant libraries getting pulled into your app by accident, and it gave you no control over the exact versions of the polyfills you were using.

So Webpack 5 removed this functionality. That means you need to make changes if you were relying on those polyfills. This is a quick reference for how to replace the most common patterns.

List of polyfill packages that were used in webpack 4

For each automatically-polyfilled node package name on the left, this shows the name of the NPM package that was used to polyfill it on the right. Under webpack 5 you can manually install these packages and use them via resolve.fallback.

rogeruiz /
Last active September 18, 2023 20:36
MB-12251 Prime Actions using HTTPie (

MB-12251 Prime Action to validate

Using this set of scripts, run the first. Run this file from inside of the transcom/mymove repo. Then after that, open the request-payload.json file and edit the moveTaskOrderID to match a GUID for a Move that the Prime will create an MTO shipment for. After saving request-payload.json, run the to modify the Move. You should see a 200 response in the terminal.

Running the scripts

All scripts are run by calling bash first before typing the path to the script. Do not run this script within the transcom/mymove repository as it will download certificates into your repository.