Skip to content

Instantly share code, notes, and snippets.

View afischer211's full-sized avatar

Alexander Fischer afischer211

View GitHub Profile
@afischer211
afischer211 / dailyNoteTemplate.txt
Created July 31, 2023 16:21 — forked from bennewton999/dailyNoteTemplate.txt
My current Daily Note Template in Obsidian utilizing Templater and DataView Plugins
---
creation date: <% tp.file.creation_date() %>
tags: DailyNote <% tp.file.title.split('-')[0] %>
---
modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %> // This doesn't currently work in front matter, hoping that gets fixed.
# <% tp.file.title %>
<< [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>>
---
tags:
- software/obsidian
- software/markdownload
- what/post
- status/wip
- what/my_setup
---
> [!Notes]
@afischer211
afischer211 / serial_stages.groovy
Last active March 4, 2021 15:44
Multiple sequential stages #Jenkins #Pipeline #Groovy
#!groovy
pipeline {
agent { label 'docker' }
stages {
stage('Multiple Stages') {
steps {
script {
def stages = readYaml text:"""
stages:
@afischer211
afischer211 / dynamicStages.groovy
Created March 3, 2021 17:19
Dynamic stages based on yaml-file #Jenkins #Pipeline
stage('Build Modules') {
agent { any }
steps {
script {
// def modules = readYaml file: "${env.YAML_FILE}"
def modules = readYaml text:"""
build:
path: 'release'
modules:
"mod1":
@afischer211
afischer211 / scanForJavaIssues.groovy
Last active December 3, 2020 14:30
Scan for Java issues #Jenkins #Pipeline
def call(String id){
def java = scanForIssues tool: java()
def javadoc = scanForIssues tool: javaDoc()
def checkstyle = scanForIssues tool: checkStyle(pattern: '**/target/checkstyle-result.xml,**/reports/checkstyle.xml')
def pmd = scanForIssues tool: pmdParser(pattern: '**/target/pmd.xml')
def tasks = scanForIssues tool: taskScanner(highTags: 'FIXME', ignoreCase: true, includePattern: '**/*.java,**/*.xtend', normalTags: 'TODO')
publishIssues issues: [java, javadoc,checkstyle,pmd,tasks],id: "${id}"
}
@afischer211
afischer211 / isNullOrEmpty.groovy
Last active December 3, 2020 14:31
Check for null or empty strings #Jenkins #Pipeline
def call(String someString){
return (!someString?.trim())
}