Skip to content

Instantly share code, notes, and snippets.

@bradrydzewski
bradrydzewski / generate_docker_cert.sh
Last active May 27, 2024 15:59
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@timmolderez
timmolderez / pom.xml
Last active June 25, 2024 01:46
Adding dependencies to local .jar files in pom.xml
If you'd like to use a .jar file in your project, but it's not available in any Maven repository,
you can get around this by creating your own local repository. This is done as follows:
1 - To configure the local repository, add the following section to your pom.xml (inside the <project> tag):
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/libs</url>
@nicolemon
nicolemon / asciigifs
Created December 10, 2019 23:45
asciigifs
#!/usr/bin/env bash
# Convert your asciinema cast into a gif
# https://github.com/asciinema/asciicast2gif#docker-image
# https://brunswyck.blog/2017/05/17/record-your-bash-shell-and-upload-as-a-gif-file/
# usage: in directory containing .cast file and this script: ./asciigifs <file name without .cast extension>
command -v docker >/dev/null 2>&1 || (echo "docker must be installed" && exit 1)