Skip to content

Instantly share code, notes, and snippets.

View kucerarichard's full-sized avatar

Richard kucerarichard

View GitHub Profile
@kucerarichard
kucerarichard / teams-chat-post.sh
Last active October 10, 2019 15:32 — forked from chusiang/teams-chat-post-for-workflows.sh
Post a message to Microsoft Teams with bash script.
#!/bin/bash
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post.sh
# Modified: 2018-03-28 15:04
# Description: Post a message to Microsoft Teams.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
#
@kucerarichard
kucerarichard / request_validation.py
Created September 3, 2019 21:24 — forked from amol-/request_validation.py
Test TurboGears request.validation in minimal mode
from wsgiref.simple_server import make_server
import tg
from tg import RestController, expose, validate, MinimalApplicationConfigurator
from formencode import validators
class RootController(RestController):
@expose('json')
@kucerarichard
kucerarichard / 00-cloud-config.yml
Created July 25, 2019 14:24 — forked from janeczku/00-cloud-config.yml
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher
@kucerarichard
kucerarichard / restart_your_minion.sls
Created September 5, 2018 15:58 — forked from vernondcole/restart_your_minion.sls
SaltStack state to restart a minion (using the minion you are restarting)
---
# salt state file for restarting a minion under its own control
{% set delay = salt['config.get']('minion_restart_in_seconds', 5) %}
restart-the-minion:
file.managed:
- name: /tmp/run_command_later.py
- source: salt://run_command_later.py
- mode: 775
@kucerarichard
kucerarichard / rancher2ha_selfsigned_layer4lb.md
Created August 29, 2018 14:31 — forked from superseb/rancher2ha_selfsigned_layer4lb.md
Install Rancher 2.0 HA by using self signed certificates (+ intermediate) and Layer 4 Loadbalancer (TCP)

Install Rancher 2.0 HA by using self signed certificates (+ intermediate) and Layer 4 Loadbalancer (TCP)

This gist describes how to setup Rancher 2 HA, by using self signed certificates (with intermediate) and a Layer 4 Loadbalancer (TCP)

Requirements

  • Linux OS
  • OS Binaries
    • wget
  • openssl