Skip to content

Instantly share code, notes, and snippets.

@magusd
magusd / Dockerfile
Last active February 14, 2023 14:24
elixir course
FROM elixir:1.11
RUN wget https://github.com/phoenixframework/archives/raw/master/phoenix_new-1.2.5.ez && mix archive.install --force ./phoenix_new-1.2.5.ez && rm ./phoenix_new-1.2.5.ez
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash \
&& . ~/.bashrc \
&& nvm install 16.0 \
&& nvm use 16.0
RUN mkdir -p /root/.ssh \
&& ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts

Keybase proof

I hereby claim:

  • I am magusd on github.
  • I am magusd (https://keybase.io/magusd) on keybase.
  • I have a public key ASC9tcmKRnDTx8bcTrG7qwJ5YBXsGRB-Vadfp5oHtl32DAo

To claim this, I am signing this object:

@magusd
magusd / gist:b9fe462a5b477d9b93b2f0c46b9dd06a
Created May 9, 2022 14:59
Github assume role trust policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::515979638763:oidc-provider/token.actions.githubusercontent.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {