Skip to content

Instantly share code, notes, and snippets.

View possebon's full-sized avatar

Jose Fernando Possebon Junior possebon

View GitHub Profile
@possebon
possebon / .traefik-cloudflare-tunnel
Created May 9, 2024 12:11 — forked from mattdy/.traefik-cloudflare-tunnel
Traefik on Docker Swarm accessed via Cloudflare Tunnel
Please see https://mattdyson.org/blog/2024/02/using-traefik-with-cloudflare-tunnels for a detailed write-up of this configuration
USE [msdb]
GO
/****** Object: Job [SQL Audit Logs to S3] Script Date: 9/3/2022 3:33:46 PM ******/
BEGIN TRANSACTION
DECLARE @ReturnCode INT
SELECT @ReturnCode = 0
/****** Object: JobCategory [Database Maintenance] Script Date: 9/3/2022 3:33:46 PM ******/
IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N'Database Maintenance' AND category_class=1)
BEGIN
USE [master]
GO
/****** Object: Audit [LetsBank_Audit] Script Date: 9/3/2022 3:34:34 PM ******/
CREATE SERVER AUDIT [LetsBank_Audit]
TO FILE
( FILEPATH = N'F:\SQL Audit\'
,MAXSIZE = 1024 MB
,MAX_ROLLOVER_FILES = 10
,RESERVE_DISK_SPACE = ON
@possebon
possebon / rancher2ha_selfsigned_layer4lb.md
Created January 3, 2019 18:15 — 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)

Warning: the RKE install method is only supported up to v2.0.8!

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

Keybase proof

I hereby claim:

  • I am possebon on github.
  • I am possebon (https://keybase.io/possebon) on keybase.
  • I have a public key ASBMk2Vnu8Cq8ZLJexvVRboJrhxXBtv2cOIZ8nts6eCqbwo

To claim this, I am signing this object: