Skip to content

Instantly share code, notes, and snippets.

View alphaone's full-sized avatar

Torsten Mangner alphaone

View GitHub Profile
;; creates a JSON Web Token to be used in requests to Apple's App Store Connect API
;; You need:
;; * your private key as file
;; * the corresponding key id
;; * your issuer id
;; (all can be found in the AppStoreConnect web UI under: "Users and Access", and then the "API Keys" tab
(ns core
(:require [buddy.sign.jwt :as jwt]
[buddy.core.keys :as keys]

Keybase proof

I hereby claim:

  • I am alphaone on github.
  • I am diegofrings (https://keybase.io/diegofrings) on keybase.
  • I have a public key ASDSIb2PyFlhQrnhpDUUDqLIY0MXknVRZHnWjx1Ys84ntQo

To claim this, I am signing this object:

@alphaone
alphaone / gist:1063264
Created July 4, 2011 11:54 — forked from dhh/gist:1014971
Use concerns to keep your models manageable
# autoload concerns
module YourApp
class Application < Rails::Application
config.autoload_paths += %W(
#{config.root}/app/controllers/concerns
#{config.root}/app/models/concerns
)
end
end