Skip to content

Instantly share code, notes, and snippets.

@kdisneur
kdisneur / secret_gen.rb
Created June 4, 2021 07:06 — forked from janakamarasena/secret_gen.rb
Sign In with Apple Client Secret Generator
require "jwt"
key_file = "Path to the private key"
team_id = "Your Team ID"
client_id = "The Service ID of the service you created"
key_id = "The Key ID of the private key"
validity_period = 180 # In days. Max 180 (6 months) according to Apple docs.
private_key = OpenSSL::PKey::EC.new IO.read key_file
#!/bin/sh
# put the following line in `~/.config/build_changelog/config`:
# OAUTH_TOKEN=<github-personal-token>
source ~/.config/build_changelog/config
start=${1}
end=${2:-"develop"}
repo=$(git remote show origin \
| grep "Fetch URL" \
def project do
[
#... other informations
docs: [extras: ["README.md"], main: "README"]
#... other informations
]
end
def project do
[
#... other informations
docs: [extras: ["README.md"]]
#... other informations
]
end
def project do
[
#... other informations
docs: [logo: "path/to/project-logo.png"]
#... other informations
]
end
def project do
[
#... other informations
homepage_url: "http://awesome-project-name.com",
#... other informations
]
end
def project do
[
#... other informations
source_url: "https://github.com/username/project-url",
#... other informations
]
end
def project do
[
#... other informations
name: "My Awesome App",
#... other informations
]
end
# mix.exs
defp deps do
[
{:ex_doc, "~> 0.9.0", only: :dev},
{:earmark, ">= 0.0.0", only: :dev}
]
end
# test/flip_test.exs
defmodule FlipTest do
use ExUnit.Case
doctest Flip
end