Skip to content

Instantly share code, notes, and snippets.

@lbroudoux
lbroudoux / asyncapi-ce.yaml
Last active July 8, 2024 20:17
CloudEvent AsyncAPI structured sample #yaml
asyncapi: '2.0.0'
id: 'urn:io.microcks.example.user-signedup'
info:
title: User signed-up CloudEvents API structured
version: 0.1.3
defaultContentType: application/json
channels:
user/signedup:
subscribe:
message:
@fonic
fonic / ubcd2usb.sh
Last active September 1, 2022 08:04
Create bootable device from Ultimate Boot CD ISO image
#!/usr/bin/env bash
# -------------------------------------------------------------------------
# -
# Create bootable device from Ultimate Boot CD ISO image -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 09/23/20 - 09/23/20 -
# -
# Based on: -
@wallyqs
wallyqs / cert-manager.yaml
Created June 25, 2020 20:56
NATS Helm Charts + Cert Manager
---
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: selfsigning
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
@lambdan
lambdan / irssi twitch.txt
Last active March 17, 2025 03:33
Twitch chat with irssi - October 2023
Tested working 15 Jun 2020, irssi version 1.2.2
(Update: still works October 2023!)
This is a TLDR version of https://blog.crunchprank.net/connecting-to-twitch-chat-via-irssi/
Get your OAuth token (password) here: https://twitchapps.com/tmi/
# Network setup:
/network add -nick YOUR_TWITCH_USERNAME Twitch
@skinny
skinny / 00_readme.md
Last active July 3, 2024 19:52
ArgoCD & Kapitan configuration

Using ArgoCD together with Kapitan is actually pretty easy and only requires the kapitan binary in the argo-repo-server and a ConfigManagement plugin in ArgocD (https://argoproj.github.io/argo-cd/user-guide/config-management-plugins/)

1. Edit argocd-cm configmap and add :

  configManagementPlugins: |
    - name: kapitan
      init:
        command: [sh]
        args: ["kapitan-base-compile.sh"]
@bramford
bramford / mikrotik-rb750gr3-dnsmasq-dhcp-bootp-tftp-install.sh
Last active November 25, 2025 08:52
Install OpenWRT on Mikrotik hEX (RB750Gr3) using dnsmasq to provide DHCP/BOOTP/TFTP server
# These instructions assume the user is following the TL;DR guide for Mikrotik install:
# https://openwrt.org/toh/mikrotik/common
# 'Step-By-Step OpenWrt Installation Process on Routerboard'
# 'TL;DR: simple way for all supported models'
# Complete steps 1-4 of the guide
# On Debian host (in my case, a Lenovo Thinkpad running Debian Buster)
## Ensure WiFi is connected (as assumed) to an existing network with a WAN connection
## Take down the Wired connection
@alexsoin
alexsoin / setting-pandoc.txt
Created July 8, 2019 12:43
Настройки pandoc для вывода русского текста в pdf
sudo apt install texlive-xetex
sudo apt-get install texlive-lang-all
pandoc test.md -s -o test.pdf --latex-engine=xelatex
---
title: Title text
geometry: margin=2cm
lang: ru
header-includes: |
@cowlicks
cowlicks / Dockerfile
Last active September 11, 2023 19:23
Safely share your SSH access while building a Dockerfile using socat to forward ssh-agent's SSH_AUTH_SOCK
FROM python:3-stretch
COPY . /app
WORKDIR /app
RUN mkdir -p /tmp
# install socat and ssh to talk to the host ssh-agent
RUN apt-get update && apt-get install git socat openssh-client \
# create variable called SSH_AUTH_SOCK, ssh will use this automatically
@gomesar
gomesar / gist:f9c32463a8abbe02470b9934eeb09db5
Last active September 28, 2018 13:26
tmuxToTmuxinatorLayout.sh
#!/bin/bash
# Scritp to list tmux windows and respectives layouts inputs to tmuxinator
# shows windows number, name and TmuxinatorLayout
tmux list-windows | sed -r 's/([0-9]+: .*) \([0-9]+ panes\).*layout (.*)] @.*/\1:\n layout: \2/g'
# tmux: https://github.com/tmux/tmux/wiki
# tmuxinator: https://github.com/tmuxinator/tmuxinator
# quick profile config guide: https://fabianfranke.de/2013/11/19/use-tmuxinator-to-recreate-tmux-panes-and-windows/
@antirez
antirez / lmdb.tcl
Created April 28, 2017 15:40
LMDB -- First version of Redis written in Tcl
# LVDB - LLOOGG Memory DB
# Copyriht (C) 2009 Salvatore Sanfilippo <[email protected]>
# All Rights Reserved
# TODO
# - cron with cleanup of timedout clients, automatic dump
# - the dump should use array startsearch to write it line by line
# and may just use gets to read element by element and load the whole state.
# - 'help','stopserver','saveandstopserver','save','load','reset','keys' commands.
# - ttl with milliseconds resolution 'ttl a 1000'. Check ttl in dump!