Skip to content

Instantly share code, notes, and snippets.

View tmmvn's full-sized avatar
🤠
Wrangling loose bytes

Tommi tmmvn

🤠
Wrangling loose bytes
View GitHub Profile
@tmmvn
tmmvn / buildspec.yml
Created February 17, 2022 21:27
AWS CodeBuild and buildah/podman with Amazon Linux image
# This build is for a CodeBuild that builds an image with buildah or podman and pushes it to ECR.
# You will get whatever buildah / podman is/was the last supported one for CentOS 7. So the version won't be the latest.
# This is mainly useful to get your first custom image pushed to ECR so you can switch to that.
# Note: this config is for ARM images. Check pkgs org for the paths to other builds if needed.
version: 0.2
env:
shell: /bin/sh
phases:
@tmmvn
tmmvn / settings.gradle.kts
Created February 10, 2022 13:30
Add .gitignore contents to Gradle file ignores
// Add this to your settings.gradle.kts
// It should likely go after the plugin settings block, which is said to have to be first thing, and before any of your
// includes.
// NOTE: By default, gradle ignores .gitignore. If you plan on using this for zipping or such, you probably want to do
// org.apache.tools.ant.DirectoryScanner.removeDefaultExclude("**/.gitignore")
// too to get the .gitignore in.
try {
val file = File(".gitignore")
val fr = java.io.FileReader(file)
val br = java.io.BufferedReader(fr)
@tmmvn
tmmvn / .space.kts
Created February 9, 2022 21:30
JetBrains Space Gradle Build and Publish with Chat Notifications
/**
* JetBrains Space Automation
* This Kotlin-script file lets you automate build activities
* For more info, see https://www.jetbrains.com/help/space/automation.html
*/
import kotlinx.coroutines.runBlocking
import circlet.pipelines.script.ScriptApi
class Chatter constructor(scriptAPI: ScriptApi) {
val api = scriptAPI