Skip to content

Instantly share code, notes, and snippets.

View kucerarichard's full-sized avatar

Richard kucerarichard

View GitHub Profile
@kucerarichard
kucerarichard / export-all-bitbucket.py
Created December 14, 2021 18:21
How to export your crap from Atlassian Bitbucket
#!/usr/bin/python3
#
# @author Jason LeMonier
# @thiever Richard Kucera
#
# Clone ALL Projects & Repositories for a given stash url
#
# Loop through all projects: [P1, P2, ...]
# P1 > for each project make a directory with the key "P1"
# Then clone every repository inside of directory P1
@kucerarichard
kucerarichard / export-all-notes.bas
Created December 14, 2021 18:18
How to export your crap from Lotus Notes
Sub Initialize
Dim arrAttachmentNames As Variant
Dim session As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Dim attachment As NotesEmbeddedObject
Set db = session.CurrentDatabase
@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