Skip to content

Instantly share code, notes, and snippets.

View petrenkorf's full-sized avatar
🤔
Reflecting about contributions

Petris Rodrigo Fernandes petrenkorf

🤔
Reflecting about contributions
  • E-Core
  • Balneário Camboriú, SC, Brazil
View GitHub Profile
@petrenkorf
petrenkorf / self-signed-certificate-with-custom-ca.md
Last active February 16, 2025 19:58 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

First we need OpenSSL installed, I'm using version OpenSSL 3.0.13

Create the Root Certificate

The first step is create a root CA (Certified Authority). -- DESCRIBE WHY--

The following command will create a key used to sign it:

openssl genrsa -des3 -out rootCA.key 4096
@petrenkorf
petrenkorf / animations.cljs
Created April 22, 2024 22:23 — forked from acobster/animations.cljs
Reagent animations with framer-motion
(ns app.motion
(:require
[framer-motion :refer (motion AnimatePresence useSpring useMotionValue useTransform useViewportScroll) :as motion]
[cljs-bean.core :refer [bean ->clj ->js]]))
(def div
(.-div motion))
(def span
(.-span motion))
(def li
(.-li motion))
@petrenkorf
petrenkorf / Capybara.md
Created June 4, 2021 03:00 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@petrenkorf
petrenkorf / install.sh
Created November 25, 2016 14:48 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"