To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT
- Get PAT (personal access token)
Personal Settings > Developer settings > Personal access tokens
| ARG MICRODIR=/microdir | |
| ARG PACKAGES_TO_INSTALL="java-17-openjdk-devel" | |
| FROM registry.access.redhat.com/ubi8-micro@sha256:eb4245271537034f69ee336a4a2b31d3fbae4048ec1db53ff89de749c35cf537 AS BASE | |
| FROM registry.access.redhat.com/ubi8@sha256:83c0e63f5efb64cba26be647e93bf036b8d88b774f0726936c1b956424b1abf6 AS BUILD | |
| ARG MICRODIR | |
| ARG PACKAGES_TO_INSTALL | |
| RUN mkdir ${MICRODIR} | |
| COPY --from=BASE / ${MICRODIR} |
| #!/bin/sh | |
| # | |
| # sort a "du" listing by directory size | |
| # usage: du | dusort | |
| FILES= | |
| TFORM=0 | |
| while test $# -ge 1; do | |
| case $1 in | |
| -t) TFORM=1; ;; |
| // ~/docker/config.json | |
| { | |
| "credsStore": "desktop", | |
| "credHelpers": { | |
| "docker.pkg.github.com": "gh", | |
| "ghcr.io": "gh" | |
| } | |
| } |
| #!/usr/bin/env bash | |
| # This script should help facilitate setting up a new worktree, including: | |
| # - creating a new worktree | |
| # - installing dependencies | |
| # - creating a new branch | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT |
To push container images to ghcr, you need peronal access token (PAT) - see how to create PAT
Personal Settings > Developer settings > Personal access tokens
Following commands disables Microsoft AutoUpdate launch agent from launching at boot and periodicaly checking for updates.
sudo defaults write /Library/LaunchAgents/com.microsoft.update.agent.plist Disabled -bool YES
sudo defaults write /Library/LaunchAgents/com.microsoft.update.agent.plist RunAtLoad -bool NO
sudo chflags schg /Library/LaunchAgents/com.microsoft.update.agent.plist| # The top level settings are used as module | |
| # and system configuration. | |
| # A set of users which may be applied and/or used by various modules | |
| # when a 'default' entry is found it will reference the 'default_user' | |
| # from the distro configuration specified below | |
| users: | |
| - default | |
| # If this is set, 'root' will not be able to ssh in and they |
Minimal YAML configuration for enabling Dependabot within a Golang based repository.
Place dependabot.yaml at .github/dependabot.yaml within a target repository and you should be good to go.
Configuration dependabot-grouped.yaml implements package grouping, in this example all packages related to AWS Golang SDK with updates will be rolled up into a single Dependabot pull request.
| # The code for my article with the same name. You can find it at the URL below: | |
| # https://www.mvanga.com/blog/basic-music-theory-in-200-lines-of-python | |
| # MIT License | |
| # | |
| # Copyright (c) 2021 Manohar Vanga | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights |