Skip to content

Instantly share code, notes, and snippets.

View andrielfn's full-sized avatar
🏠
Working from home

Andriel Nuernberg andrielfn

🏠
Working from home
View GitHub Profile
@andrielfn
andrielfn / nginx.conf
Created February 12, 2017 20:11
Best Nginx config for security.
# Best Nginx configuration for security.
#
# Score A in https://securityheaders.io.
# Score A+ in https://www.ssllabs.com/ssltest.
#
# References
#
# - https://letsecure.me/secure-web-deployment-with-lets-encrypt-and-nginx/
# - https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html
# - https://gist.github.com/plentz/6737338
@andrielfn
andrielfn / compare_bike_view.ex
Created April 13, 2019 14:20
Bike comparison with Phoenix Live View
defmodule GoBikesWeb.CompareSelectBikeView do
use Phoenix.LiveView
alias GoBikesWeb.Router.Helpers, as: Routes
alias GoBikes.Bikes
def render(assigns) do
GoBikesWeb.CompareView.render("show.html", assigns)
end
@andrielfn
andrielfn / 1-setup.md
Created July 17, 2024 22:30 — forked from troyfontaine/1-setup.md
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.