Skip to content

Instantly share code, notes, and snippets.

@doytsujin
doytsujin / docker-maven-ghactions-release.md
Created September 23, 2022 13:46 — forked from faph/docker-maven-ghactions-release.md
Automated Docker releases using Maven and GitHub Actions

Automated Docker releases using Maven and GitHub Actions

Life is too short for tedious, manual release processes.

Here, we will use Maven's [Release plugin][maven-release] to execute releases. Instead of triggering the release process manually, we will use a [GitHub Actions][gh-actions] workflow on the master branch. All development work is done on the dev branch (or feature branches) and a release is done when (and only when) the dev branch is merged with the master branch.

@doytsujin
doytsujin / gist:99867a5ddee93e4ff8c02b3aad11cdde
Created September 19, 2022 22:19 — forked from yamamushi/gist:dd7e7f5791ce497e68a4
Setting up a modern C++ development environment on Linux with Clang and Emacs
This was mirrored from the snapshot of earthserver.com available on archive.org
--------------------------------------------------------------------------------
Setting up a modern C++ development environment on Linux with Clang and Emacs
I am an independent game developer and this is my personal wiki.
Please feel free to email [email protected], and to follow @Earthserver
(Redirected from Setting up a C++11 development environment on Linux with Clang and Emacs)
@doytsujin
doytsujin / privatednszones.tf
Created August 11, 2022 15:42 — forked from liamfoneill/privatednszones.tf
Creates Azure Private DNS Zones for all of the Azure PaaS Services that (currently) support Private Endpoints. NOTE: For some services, like AKS the DNS Zones need to be regionalised so you will need 1 zone for each region. I have included North and West Europe as examples. If you are using DNS Servers to resolve these records you will also need…
resource "azurerm_resource_group" "dnsprivatezones" {
name = "connectivity-dnsprivatezones-001"
location = "West Europe"
tags = {
"Usage" = "Azure Private DNS Zones for Private Endpoints"
}
}
resource "azurerm_private_dns_zone" "azureautomation" {
name = "privatelink.azure-automation.net"
resource_group_name = azurerm_resource_group.dnsprivatezones.name
@doytsujin
doytsujin / #_overview.md
Created August 11, 2022 15:30 — forked from torumakabe/#_overview.md
Sample Terraform codes for Azure Container Apps with Dapr
@doytsujin
doytsujin / full-example-watcher-ml-alert.json
Created July 29, 2022 01:00 — forked from jorgelbg/full-example-watcher-ml-alert.json
Full example on a generic elastic Watcher alert
{
"trigger": {
"schedule": {
"interval": "5m"
}
},
"input": {
"chain": {
"inputs": [
{
@doytsujin
doytsujin / tmux_local_install.sh
Created June 29, 2022 16:21 — forked from rothgar/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
TMUX_VERSION="2.1"
LIBEVENT_VERSION="2.0.20"
NCURSES_VERSION="6.0"
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
@doytsujin
doytsujin / README.md
Created June 27, 2022 13:09 — forked from miguelmota/README.md
Multiple accounts with Mutt E-Mail Client (gmail example)

How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/
@doytsujin
doytsujin / mutt_mbsync_multipleaccounts.md
Created June 27, 2022 13:09 — forked from chandraratnam/mutt_mbsync_multipleaccounts.md
Mutt + isync mbsync + gmail + multiple accounts.

Mutt + isync multiple accounts Unfinished

This is the setup that I use for mutt, I have two google domain account (read as gmail) and an institution where I work and study account. This means I have two gmail accounts and one outlook 365 account that i want to sync and read via mutt.

I want to store all my email locally as I travel a lot and will be in countries without easy internet access. For this I use mbsync (iSync). As it can handle multiple account types easily and efficently.

The setup works this way

[Remote Mail Servers] <= mbsync => [Local Mail Folders]

@doytsujin
doytsujin / html2canvasAndjsPDF.vue
Created May 20, 2022 13:59 — forked from bertoni/html2canvasAndjsPDF.vue
html2canvas and jsPDF in action
<template>
<div id="app">
<img src="./assets/logo.png">
<router-view/>
<button @click="download">Download</button>
<div id="pdf"></div>
</div>
</template>
<script>
@doytsujin
doytsujin / curl.md
Created May 2, 2022 18:06 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.