Skip to content

Instantly share code, notes, and snippets.

@joepvd
joepvd / README.md
Last active December 10, 2023 19:23
ocp-urls: Spits out GitHub Dockerfiles from image configurations from ocp-build-data

ocp-urls

Spits out urls from image configurations from ocp-build-data files given as arguments.

Usage

ocp-urls <options> <files>

Options

@joepvd
joepvd / README.md
Last active November 6, 2023 19:31
review-plashet-logs

review plashet logs

@joepvd
joepvd / README.md
Last active February 20, 2024 02:54
open-urls: Open a bunch of links in a new browser window

open-urls

Open a bunch of links in a new browser window

@joepvd
joepvd / review-release-config
Last active November 21, 2024 09:36
Review release configuration
#!/usr/bin/env python
import requests
from ruamel import yaml
import sys
versions = ["4.12", "4.13", "4.14", "4.15", "4.16", "4.17", "4.18", "4.19"]
yml = yaml.YAML(typ='safe', pure=True)
@joepvd
joepvd / README.md
Last active July 11, 2024 12:04
git-update

git update

For automatically rebasing current branch to freshly fetched origin branch, and rebase local branches with upstream changes.

Usage:

git update

Installation

#!/usr/bin/env bash
home_monitor() {
echo "Setting single monitor">/dev/stderr
xrandr \
--output DP-1 --primary --mode 3840x2160 --pos 0x0 --rotate normal \
--output eDP-1 --off \
--output HDMI-1 --off \
--output DP-2 --off \
--output HDMI-2 --off
@joepvd
joepvd / pre-commit
Created November 19, 2021 13:30
Pre commit hook for ocp-build-data
#!/usr/bin/env bash
set -euo pipefail
# git remote prune origin
originating_branch() {
local i branch
i=0
branch=""
@joepvd
joepvd / keybase.md
Created March 20, 2019 19:27
keybase.md

Keybase proof

I hereby claim:

  • I am joepvd on github.
  • I am jvd (https://keybase.io/jvd) on keybase.
  • I have a public key ASB4IUFMBtQ7BO6tcK67Dh6luXEjqvDvLOekTQnL6nIH4go

To claim this, I am signing this object:

#!/bin/sh
# No more peck and hunt with xev!
# By Joep van Delft, github.com/joepvd
xev |
awk '
BEGIN {
FS="[ (),]+"
fmt = "%-7s %-4s %-6s %s\n"
printf fmt, "action", "code", "sym", "name"
printf fmt, "-------", "----", "------", "----"
@joepvd
joepvd / update-rbenv-rubygems.sh
Last active September 5, 2017 10:27 — forked from gshutler/update-rbenv-rubygems.sh
Update Rubygems for all rbenv rubies
#! /usr/bin/env bash
set -e
eval "$(rbenv init -)"
for version in `rbenv whence gem`; do
rbenv shell "$version"
echo "Updating rubygems for $version"
gem update --system --no-rdoc --quiet