Skip to content

Instantly share code, notes, and snippets.

@chkpnt
chkpnt / build-root.gradle.kts
Created November 27, 2024 14:36
JasperReports BOM from POM in Gradle
// root project
// of course the filename is build.gradle.kts, but GH-gists requires unique filenames
plugins {
id("eu.rehost.jasperreports") version "0.14"
java
}
val jasperreportsVersion by extra("6.5.1")
@chkpnt
chkpnt / post-reconfigure.sh
Last active October 4, 2024 17:55
Automatically create a Personal Access Token in GitLab
#!/bin/bash
set -e
gitlab-rails runner - <<EOS
if user = User.find_by_username('root')
token = user.personal_access_tokens.find_by(name: 'Ansible')
if !token || token.expired?
token = user.personal_access_tokens.create(
scopes: ['api', 'admin_mode'],
@chkpnt
chkpnt / Test.java
Created January 20, 2021 17:34
jqwik Arbitrary for UUIDs
class Test {
@Provide
Arbitrary<UUID> uuids() {
return Arbitraries
.longs()
.tuple2()
.map(longs -> new UUID(longs.get1(), longs.get2()));
}
}
@chkpnt
chkpnt / PlaygroundView.swift
Created July 17, 2020 16:57
Persisting Color in SwiftUI
//
// PlaygroundView.swift
// PlaygroundApp
//
// Created by Gregor Dschung on 17.07.20.
//
import SwiftUI
struct PlaygroundView: View {
@chkpnt
chkpnt / gist:a415af679f53a880990cf38623786759
Created October 2, 2019 19:05
Compiling rspamd 1.9.4 using ragel 7
This file has been truncated, but you can view the full file.
[ 0s] Using BUILD_ROOT=/var/cache/obs/worker/root_3/.mount
[ 0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386
[ 0s] Doing kvm build in /var/cache/obs/worker/root_3/root
[ 0s]
[ 0s]
[ 0s] lamb18 started "build rspamd.spec" at Wed Oct 2 18:39:20 UTC 2019.
[ 0s]
[ 0s] Building rspamd for project 'home:chkpnt:mailserver' repository 'openSUSE_Leap_15.1' arch 'x86_64' srcmd5 'b3f3705db0783850e0709799266452d1'
[ 0s]
[ 0s] processing recipe /var/cache/obs/worker/root_3/.build-srcdir/rspamd.spec ...

Keybase proof

I hereby claim:

  • I am chkpnt on github.
  • I am chkpnt (https://keybase.io/chkpnt) on keybase.
  • I have a public key ASCX_krM2bgiIwGUFnAiF-SOutRQWFmSgqM5PuEoQWNmJQo

To claim this, I am signing this object: