Skip to content

Instantly share code, notes, and snippets.

View jpickwell's full-sized avatar

Jordan David Pickwell jpickwell

View GitHub Profile
@jpickwell
jpickwell / README.md
Last active April 18, 2018 16:34
gen_ssl_cert

gen_ssl_cert

This script generates a self-signed SSL certificate which can be used for developing web applications on your local machine. The certificate will be generated using RSA-4096 and SHA512.

Installation

Copy these two files somewhere convenient; e.g. ~/bin.

Edit openssl.cnf if you have any particular requirements.

@jpickwell
jpickwell / README.md
Last active September 18, 2020 05:09
Remove old casks from Homebrew-Cask.
@jpickwell
jpickwell / install-redis.sh
Last active May 14, 2024 07:38 — forked from khelll/install-redis.sh
Installing Redis 5.0.0 on Amazon Linux
#!/bin/bash
###############################################
# To use:
# chmod +x install-redis.sh
# ./install-redis.sh
###############################################
version=5.0.0
@jpickwell
jpickwell / README.md
Created September 1, 2018 00:28
Capistrano set_mtimes Task

This Capistrano task will loop through all of the repository files for the specified branch, and set the atime and mtime to the most recent (relative to each file) commit author date.

I wrote this to get around a limitation in Webpacker 3.5.5 when deploying. Because of how Capistrano works, Webpacker would recompile every deploy even if no Webpack code had changed.

@jpickwell
jpickwell / .editorconfig
Created April 28, 2022 15:44
Editor Config
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = tab
insert_final_newline = true
max_line_length = off
tab_width = 4
@jpickwell
jpickwell / collapse_string.sh
Created November 28, 2023 17:46
POSIX Shell collapse_string function.
#!/usr/bin/env sh
# Disable this error because ShellCheck doesn't understand the conditional
# usage of positional arguments.
# shellcheck disable=SC2120
collapse_string() {
{
if [ $# -gt 0 ]; then
# Use positional arguments.
echo "$@"