Publishing artifacts with AWS Codeartifact and GitHub Packages
- Blog Post: Publishing artifacts with AWS Codeartifact and GitHub Packages
- GitHub repository with full code details: reach-now/codeartifact-packages-publishing
aws cli
name: Lothar Schulz | |
mail: mail@lotharschulz.info | |
work: Director Engineering at BuildingMinds | |
site: https://www.lotharschulz.info | |
code: https://github.com/lotharschulz && https://codeberg.org/lotharschulz | |
linkedin: https://www.linkedin.com/in/lotharschulz/ | |
threads: https://www.threads.net/@lothar___schulz | |
xing: https://www.xing.com/profile/Lothar_Schulz | |
slide decks: https://speakerdeck.com/lothar/ && https://www.lotharschulz.info/talks/ | |
mastodon: lotharschulz@mastodon.technology |
#!/bin/bash | |
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
set -euo pipefail | |
IFS=$'\n\t' | |
################################### | |
# BREW uninstall script for osx_bootstrap.sh script | |
################################### | |
SUDO_USER=$(whoami) |
#!/bin/bash | |
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
set -euo pipefail | |
IFS=$'\n\t' | |
# inspired by | |
# https://gist.github.com/codeinthehole/26b37efa67041e1307db | |
# https://github.com/why-jay/osx-init/blob/master/install.sh | |
# https://github.com/timsutton/osx-vm-templates/blob/master/scripts/xcode-cli-tools.sh |
aws cli
Repository Archiving & Unarchiving with GitHub GRAPHQL API sample code.
query FindRepoID {
A kotlin script producing a fibunacci range inspired by clovisai's contribution to kotlin discussion: Project Loom will make coroutines obsolete.
val fibonacci = sequence {
yield(1)
var cur = 1
var next = 1
while (true) {
query FindRepoID { | |
repository(owner:"[github user or org]", name:"[repository]"){ | |
id, | |
isArchived, | |
} | |
} |
{ | |
"query": "mutation UnArchiveRepository ($mutationId: String!, $repoID: String!) {unarchiveRepository(input:{clientMutationId:$mutationId, repositoryId:$repoID}) {repository { isArchived, description } } }", | |
"variables": { | |
"mutationId": "true", | |
"repoID": "[repo id]" | |
} | |
} |
#run the code | |
./gradlew run | |
# output: | |
dotdotRange: a,b,c,d | |
untilRange: a,b,c | |
untilRange new 1.7.20: a,b,c | |
rangeTo: a,b,c,d | |
downTo: d,c,b,a |
val A_UNTIL_D = ('a' until 'd') | |
// a,b,c | |
@OptIn(ExperimentalStdlibApi::class) | |
val A_NEW_UNTIL_D = ('a' ..< 'd') | |
// a,b,c |