Skip to content

Instantly share code, notes, and snippets.

View nickboldt's full-sized avatar
💭
AFK Oct 25-Nov 3; don't assign me things, I won't see 'em

Nick Boldt nickboldt

💭
AFK Oct 25-Nov 3; don't assign me things, I won't see 'em
View GitHub Profile
@Zaperex
Zaperex / backstage-package-path.sh
Last active August 6, 2024 13:47
backstage package packing
#!/bin/bash
generate_backstage_package(){
PKG_NAME=$1
if [[ $PKG_NAME =~ ^plugin-(.*) ]]; then
cd ${SRC_REPO_PATH}/plugins/${PKG_NAME:7} || return 1
echo "Changed directory to $(pwd)"
else
cd ${SRC_REPO_PATH}/packages/${PKG_NAME} || return 1
echo "Changed directory to $(pwd)"
@nickboldt
nickboldt / untag.brew.image.sh
Last active March 3, 2022 14:54
untag brew image
# for future release
CRW_VERSION=2.yy
images_to_untag=$(brew list-tagged crw-${CRW_VERSION}-rhel-8-container-candidate | \
grep -E "operator-(bundle|metadata)" | grep freshmaker | sed -r -e "s@ +crw-.+-container-candidate freshmaker@@")
echo "Found these images to untag:"
echo $images_to_untag
brew untag crw-${CRW_VERSION}-rhel-8-container-candidate $images_to_untag
# ---------------
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: operatorgroup
namespace: <TODO-EXISTING_NAMESPACE>
spec:
targetNamespaces:
- <TODO-EXISTING_NAMESPACE>
@nickboldt
nickboldt / webtools.merge.servertools.sh
Last active July 6, 2017 19:05
merge webtools.servertools repos
#!/bin/bash
#
# merge servertools repos into a single repo
# based on https://paste.fedoraproject.org/paste/0tnkOZ4N0kP5AKLul2HLnA/raw
START_TIME=`date +%s`
# in case we have another alias for mv, like 'mv -i'
alias mv=mv
@nickboldt
nickboldt / spotify.install.sh
Last active May 6, 2017 14:52 — forked from olejon/Install Spotify 0.9 on Fedora 64-bit
Install Spotify (v1.0) on RHEL7 or Fedora 24 64-bit
# START GUIDE
# Make sure you copy the whole lines into Terminal. Each command is on one line.
# Open Terminal and become root
sudo su
# Enable necessary EPEL and RPMFusion repos from https://rpmfusion.org/Configuration if you haven't already
# then update
yum update
@nickboldt
nickboldt / devstudio-rpm-install-fedora.README
Last active January 14, 2017 10:01
How to install devstudio rpm on Fedora
1. Enable Red Hat VPN
2. AS ROOT, create a .repo file to pull dependencies from brew snapshots and released rel-eng repos:
sudo su
cat << EOF > /etc/yum.repos.d/rh-eclipse46-INTERNAL.repo
[rhscl-2.4-rh-eclipse46-rhel-7-build-latest]
name=rh-eclipse46-build
baseurl=http://download-node-02.eng.bos.redhat.com/brewroot/repos/rhscl-2.4-rh-eclipse46-rhel-7-build/latest/x86_64/
enabled=1
@joar
joar / jq-insert-var.sh
Last active July 25, 2024 00:55
Add a field to an object with JQ
# Add field
echo '{"hello": "world"}' | jq --arg foo bar '. + {foo: $foo}'
# {
# "hello": "world",
# "foo": "bar"
# }
# Override field value
echo '{"hello": "world"}' | jq --arg foo bar '. + {hello: $foo}'
{
@olejon
olejon / Install Spotify 0.9 on Fedora 64-bit
Last active September 17, 2022 08:34
Install Spotify 0.9 on Fedora 64-bit
# NOTES
# Spotify 0.9 vs 1.0 is stable, uses less resources overall and works well with Spotify Connect, SpotCommander, Local Files etc
# Tested and works on Fedora 29 64-bit with GNOME, but should work on previous versions as well
# The sources of the Dropbox files, which are hosted by me and the latest and greatest available, are listed above each one
# No system files will be overwritten by these or used by other programs since they depend on the later Fedora versions
# Make sure you copy the whole lines into Terminal
# Each command is on one line and might be long
# START GUIDE
@wolever
wolever / git-blast
Last active November 30, 2016 14:24
git-blast: show git branches sorted by last commit date
#!/usr/bin/env python
"""
Shows git branches sorted by last commit date, noting when branch has been
merged:
$ git blast
* master 33 minutes ago
david 4 days ago [M]
unholy-david-payments 4 days ago
handsontable-2 5 days ago
@nickboldt
nickboldt / Using GGit within Eclipse or JBDS
Created September 11, 2012 20:04
Using EGit within Eclipse or JBDS
=== Installation ===
Fire up JBDS. Install EGit and the github connector, eg., from Central > Software/Update. Restart when prompted
=== Checking out a new project ===
File > Import > Git > Projects from Git > Next
GitHub > Next > "nickboldt/freemarker" > Search > select repo > Next
Select branches to fetch > Next > Next > Next > Finish