Skip to content

Instantly share code, notes, and snippets.

View starbelly's full-sized avatar
🤔
I used to do code. I still do, but I used to, too.

Bryan Paxton starbelly

🤔
I used to do code. I still do, but I used to, too.
View GitHub Profile
@starbelly
starbelly / composite_cache_example.yml
Created September 17, 2023 18:52
simple example for caching with a composite action
# .github/actions/setup/action.yaml
name: "mix cache"
description: "Setup an elixir mix project and restore cache"
inputs:
cache-version:
description: "Optional cache version. Any string is valid. Default to '0'"
required: false
default: 0
@starbelly
starbelly / inet_db_test.erl
Created August 22, 2023 12:00
inet_db_test.erl
Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
Eshell V14.0.2 (press Ctrl+G to abort, type help(). for help)
1> inet_res:gethostbyname("rebar3.s3.amazonaws.com").
hostent_by_domain: "rebar3.s3.amazonaws.com"
hostent_by_domain: "rebar3.s3.amazonaws.com.local"
res_hostent_by_domain: "rebar3.s3.amazonaws.com" - [{dns_rr,
"rebar3.s3.amazonaws.com",
cname,in,0,42821,
"s3-1-w.amazonaws.com",
@starbelly
starbelly / recover_wip.patch
Created November 16, 2019 22:48
recovery_wip
From ea1390c4b78175077b52e268842bcbae9af4fea5 Mon Sep 17 00:00:00 2001
From: Bryan Paxton <[email protected]>
Date: Mon, 11 Nov 2019 14:22:02 -0600
Subject: [PATCH] wip
---
lib/hexpm/accounts/recovery.ex | 38 ++++++--------
lib/hexpm/accounts/recovery_code.ex | 6 +--
lib/hexpm/accounts/user.ex | 1 -
...91015010144_create_user_recovery_codes.exs | 8 +--
@starbelly
starbelly / les_echos_yves_morieux.md
Created April 7, 2019 02:41
les echos interview with Yves Morieux

Google transalation of interview with Yves Morieux conducted by François Vidal et Jean-Marc Vittori Source: https://www.lesechos.fr/idees-debats/editos-analyses/les-entreprises-adoptent-des-organisations-de-moins-en-moins-efficaces-1002730#Xtor=AD-6000

Yves Morieux: "Companies adopt less and less effective organizations"

INTERVIEW - Companies have not yet adapted their organization to digital technologies, says consultant Yves Morieux, director of the BCG Institute for Organization. They have complicated their organization to the detriment of their effectiveness. To change the game, we must put the managers in the heart of the action.

Growth has slowed down in recent decades in advanced countries. What is your explanation?

Economist Paul Krugman explains that "productivity is not everything, but in the long run it's almost everything". In France in the 1960s, it grew by 7% per year, which caused the doubling of the standard of living in ten years. Today, it increases by less than 1% per year. At th

@starbelly
starbelly / rebar3_hex_todo.md
Last active February 28, 2019 02:34
rebar3_hex TODO
  • owner commands do not binarify and maybe need to set the api_key
  • fix rebar crashes caused from bad/unexpected return
  • retire fails due to validation errors
  • key is not implemented, should probably be a sub-command of user
  • deauth is not implemented (only needs to write an empty config)
  • have not tested docs, pretty sure orgs/repos aren't supported
  • implement org sub-commands (key list, deauth, etc.)
  • maybe rename revert to delete
  • need docs
@starbelly
starbelly / rebar3_private_repo_packages_test_steps.md
Last active November 18, 2021 14:11
How to test fetching and publishing private packages with rebar3 and a local hexpm instance.
@starbelly
starbelly / pre_match.md
Created February 22, 2019 08:41
plug.router: storing the matched route before dispatch
defmodule MatchMaker do
  use Plug.Router

  plug :match
  plug :post_match
  plug :dispatch

  def start_link do
    {:ok, _} = Plug.Adapters.Cowboy.http(__MODULE__, [], port: 4000)

Keybase proof

I hereby claim:

  • I am starbelly on github.
  • I am starbelly (https://keybase.io/starbelly) on keybase.
  • I have a public key ASACf-wQ0WwNHHQDb6WAg8U08HkKZbJdN7qCDIwWph8Zogo

To claim this, I am signing this object: