Skip to content

Instantly share code, notes, and snippets.

@lotharschulz
lotharschulz / aboutme
Last active January 16, 2024 13:12
aboutme
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
@lotharschulz
lotharschulz / PublishingArtifactsWithAWSCodeartifactAndGitHubPackages.md
Last active May 22, 2023 07:41
How to publish software artifacts with AWS Codeartifact and GitHub Packages
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