This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# --------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: operators.coreos.com/v1 | |
kind: OperatorGroup | |
metadata: | |
name: operatorgroup | |
namespace: <TODO-EXISTING_NAMESPACE> | |
spec: | |
targetNamespaces: | |
- <TODO-EXISTING_NAMESPACE> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}' | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== 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 |
NewerOlder