Skip to content

Instantly share code, notes, and snippets.

View doytsujin's full-sized avatar
🎯
Private Account

Alexander Chernov doytsujin

🎯
Private Account
View GitHub Profile
@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.

################### INSTALL METRICSBEAT ######################
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo 'deb https://artifacts.elastic.co/packages/oss-6.x/apt stable main' | sudo tee /etc/apt/sources.list.d/beats.list
sudo apt-get update && sudo apt-get install metricbeat
sudo metricbeat keystore create
echo "${elastic_pw}" | sudo bin/metricbeat-keystore add ES_PASSWORD
# echo "setup.dashboards.enabled: true" >> /etc/metricbeat/metricbeat.yml
cat <<EOT >> /etc/metricbeat/metricbeat.yml
output.elasticsearch:
@doytsujin
doytsujin / root-app.yaml
Created March 15, 2022 14:42 — forked from kusznerr/root-app.yaml
Sample root application for ArgoCD to enable app-of-apps pattern
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: root-app
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: argocd
@doytsujin
doytsujin / app-of-apps.yaml
Created March 15, 2022 14:42 — forked from mikesparr/app-of-apps.yaml
Argo CD App of Apps config
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: applications
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: argocd