Skip to content

Instantly share code, notes, and snippets.

View fabiante's full-sized avatar
🤓
Looking for Software Devs in Hamburg :)

fabiante fabiante

🤓
Looking for Software Devs in Hamburg :)
View GitHub Profile
@fabiante
fabiante / Dockerfile
Last active July 13, 2023 15:11
Poppler Build Dockerfile
# Credits: https://stackoverflow.com/a/74313286/3647782
FROM ubuntu:22.10 as ubuntu-base
RUN apt update && apt upgrade -y
FROM ubuntu-base as build
RUN apt install -y \
wget \
@fabiante
fabiante / client-lock.go
Created April 9, 2023 13:31
MS Graph SDK Go Client Lock
package ms
import (
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
msgraphsdkgo "github.com/microsoftgraph/msgraph-sdk-go"
"sync"
)
// graphServiceClientFactoryLock is used to ensure that only one instance of any msgraphsdkgo.GraphServiceClient
// is created at a time. This is necessary because the standard constructor functions do not seem to be thread safe.
@fabiante
fabiante / ingress-test.yml
Last active February 28, 2022 21:02
Kubernetes Ingress Test
apiVersion: apps/v1
kind: Deployment
metadata:
name: ingress-test
labels:
app: ingress-test
spec:
replicas: 1
selector:
matchLabels:
@fabiante
fabiante / ubl-invoice.xslt
Last active February 9, 2022 21:58
XRechnung XSLTs
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xr="urn:ce.eu:en16931:2017:xoev-de:kosit:standard:xrechnung-1"
xmlns:Invoice="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns:saxon="http://saxon.sf.net/"
@fabiante
fabiante / .env
Created November 18, 2019 09:19
Firefly 3 Docker-Compose
# You can leave this on "local". If you change it to production most console commands will ask for extra confirmation.
# Never set it to "testing".
APP_ENV=local
# Set to true if you want to see debug information in error screens.
APP_DEBUG=false
# This should be your email address
SITE_OWNER=mail@example.com
@fabiante
fabiante / docker-compose.yml
Created November 18, 2019 09:18
Gitea + Jenkins Docker-Compose
version: "3"
services:
gitea:
image: gitea/gitea:latest
environment:
- USER_UID=1000
- USER_GID=1000
ports:
- "3000:3000"
@fabiante
fabiante / docker-compose.yml
Created August 1, 2019 12:36 — forked from odinserj/docker-compose.yml
ProGet using docker compose
version: '2'
services:
nginx:
image: jwilder/nginx-proxy
container_name: nginx-proxy
environment:
- DEFAULT_HOST=nuget.hangfire.io
links:
- proget
ports:
@fabiante
fabiante / gist:d59e877a15a7e6fb054c9c524742d6da
Created November 21, 2018 12:35
Elasticsearch - Dynamic Template for Java util.Map fields
PUT /archive_document
{
"mappings": {
"document": {
"dynamic_templates": [
{
"map_string": {
"match_mapping_type": "string",
"path_match": "fields.*",
"mapping": {
@fabiante
fabiante / chmodrec.sh
Created November 3, 2018 18:13
Change Linux Folder An File Permission Recursively
#!/bin/sh
# syntax: setperm.s destdir
#
if [ -z $1 ] ; then echo "Requires single argument: <directoryname>" ; exit 1 ; fi
destdir=$1
dirmode=0700
filemode=0600
gource --start-position 0.9 --seconds-per-day 2 --file-idle-time 0 --hide filenames