Skip to content

Instantly share code, notes, and snippets.

View x80486's full-sized avatar

x80486

  • Cuba
  • 01:54 (UTC -04:00)
View GitHub Profile
@x80486
x80486 / .build.yml
Created July 25, 2020 03:00
Maven Pipeline
#
# https://man.sr.ht/builds.sr.ht/manifest.md
# https://man.sr.ht/builds.sr.ht/compatibility.md
---
image: alpine/3.12
arch: x86_64
environment:
MAVEN_CONFIG: --no-transfer-progress
MAVEN_OPTS: -Dmaven.repo.local=/home/build/java-vertx2/.m2/repository/
packages:
@x80486
x80486 / .build.yml
Created July 24, 2020 23:58
Rust Pipeline
#
# https://man.sr.ht/builds.sr.ht/manifest.md
# https://man.sr.ht/builds.sr.ht/compatibility.md
---
image: alpine/3.12
arch: x86_64
packages:
- rustup=1.21.1-r0
secrets:
- 6fcdccf5-1268-42b7-bef3-1e136b2a47a0
@x80486
x80486 / gradle.build.kts
Created May 14, 2020 00:56
Flyway Prefix
//
// Tasks
register("flywayPrefix") {
description = "Prefixes new SQL scripts (migrations) according to the specified scheme/format"
doLast {
val formatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS")
val regex = Regex("^[V]\\d+__.*.sql\$")
fileTree("${project.rootDir}/src/main/resources/database/migrations")
.filterNot { it.name.matches(regex) }
.forEach {
--
conky.config = {
alignment= 'top_right',
background = true,
double_buffer = true,
font = 'FreeSans:style=medium:size=10',
gap_x = 30,
gap_y = 55,
maximum_width = 300,
minimum_height = 10,
@x80486
x80486 / build.gradle.kts
Last active April 29, 2020 14:30
Kotlin DSL Multi-Project
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("com.github.johnrengelman.shadow").version("5.2.0").apply(false)
id("io.gitlab.arturbosch.detekt").version("1.8.0").apply(false)
id("org.gradle.eclipse")
id("org.gradle.idea")
id("org.jetbrains.kotlin.jvm").version("1.3.72").apply(false)
}
@x80486
x80486 / .editorconfig
Last active April 19, 2020 13:54
balenaEtcher Flatpak Manifest
# EditorConfig helps developers define and maintain consistent coding styles
# between different editors and IDEs (editorconfig.org)
root = true
[*]
continuation_indent_size = 4
indent_size = 2
indent_style = space
max_line_length = 120
@x80486
x80486 / check_updates.sh
Created September 17, 2019 09:42
Bash – Check for Updates
#!/usr/bin/env bash
GREEN=$(tput setaf 10)
NONE=$(tput sgr0)
PROMPT="${GREEN}==>${NONE}"
confirm () {
local _prompt _response
if [ "${1}" ]; then _prompt="${1}"; else _prompt="Are you sure"; fi
_prompt="${_prompt} [Y/n]? "
@x80486
x80486 / check_flatpak_updates.py
Last active December 25, 2019 20:21
Flatpak – Check for Updates
#!/usr/bin/env python
import hashlib
import json
import tempfile
import urllib.request
blue = lambda value: f"\033[0;34m{value}\033[0m"
green = lambda value: f"\033[0;32m{value}\033[0m"
red = lambda value: f"\033[0;31m{value}\033[0m"
@x80486
x80486 / gist:cede21947d432d44e86b82aec7cd50b7
Created September 28, 2018 01:18
Wire Flatpak fails on building from sources
[31] .debug_aranges compressed -> .zdebug_aranges (519120 => 123040 23.70%)
[32] .debug_info compressed -> .zdebug_info (393418069 => 191780597 48.75%)
[33] .debug_abbrev compressed -> .zdebug_abbrev (4669724 => 859830 18.41%)
[34] .debug_line compressed -> .zdebug_line (22770554 => 6323306 27.77%)
[35] .debug_str compressed -> .zdebug_str (26582830 => 3231767 12.16%)
[36] .debug_loc compressed -> .zdebug_loc (90443275 => 12900694 14.26%)
[37] .debug_ranges compressed -> .zdebug_ranges (27941456 => 2694549 9.64%)
[40] Updating section string table
...
Committing stage build-nodejs to cache
@x80486
x80486 / log_dump
Created August 9, 2018 23:11
intellij idea ultimate cannot preview markdown/asciidoc in linux
Graphics Device initialization failed for : es2, sw
Error initializing QuantumRenderer: no suitable pipeline found
java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found
at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280)
at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:221)
at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:205)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209)
at org.asciidoc.intellij.editor.javafx.JavaFxHtmlPanel$2$1.run(JavaFxHtmlPanel.java:156)
at sun.awt.SunToolkit.unsafeNonblockingExecute(SunToolkit.java:644)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)