Skip to content

Instantly share code, notes, and snippets.

View kitos9112's full-sized avatar
💭
#AutomateEveything

Marcos Soutullo Rodriguez kitos9112

💭
#AutomateEveything
  • Reading, UK
View GitHub Profile
@kitos9112
kitos9112 / install-docker-rpi.sh
Last active July 1, 2019 17:24
This small Bash script will install the latest version of Docker on your Raspberry pi - It works on Raspberry Pi 4 B+ - Just run --> curl -fsSL http://bit.ly/2xm7kxb | sh
#!/bin/bash
##################################################
#- version ${SCRIPT_NAME} 0.0.1
#- author Marcos Soutullo
#- license GNU General Public License
# DESCRIPTION
# This small bash script will install Docker on your RaspberryPi for you without human interaction.
# If your Raspbian version it's not currently available on get.docker.com
# It will download use the latest Debian stable version defined in variable DOCKER_STABLE
# EXECUTION
@kitos9112
kitos9112 / self-signed-certificate-with-custom-ca.md
Last active September 20, 2023 12:54 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place! - Ensure you have installed OpenSSL in your system either Windows or Linux, here we're just using neutral OpenSSL commands.

openssl genrsa -des3 -out rootCA.key 4096
@kitos9112
kitos9112 / README-Template.md
Created January 9, 2018 15:27 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@kitos9112
kitos9112 / handlers.py
Created November 22, 2017 13:38 — forked from hectcastro/handlers.py
A Python log handler for Papertrail.
import logging
import socket
class PapertrailHandler(logging.Handler):
"""An RFC 5425 log handler that has been tested to interact
with Papertrail.
"""
# RFC 5424 Severities
LOG_EMERG = 0