Skip to content

Instantly share code, notes, and snippets.

@npalm
npalm / keybase.md
Created August 9, 2018 11:24
keybase signature

Keybase proof

I hereby claim:

  • I am npalm on github.
  • I am niekpalm (https://keybase.io/niekpalm) on keybase.
  • I have a public key ASAa0_NeuU8Jg0UPSwxQiUZzbxL6DC1AzIeBuhZV8NWkmQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am npalm on github.
  • I am npalm (https://keybase.io/npalm) on keybase.
  • I have a public key ASCRDxB-c0sgTXfWFv9BY69jN2nXLVKpdsV5-j6gNLg7cwo

To claim this, I am signing this object:

@npalm
npalm / seed.js
Created September 23, 2019 17:58
seed
const csv = require('csvtojson')
const { prisma } = require('./generated/prisma-client')
async function loadPersons(data) {
const createPersonRequests = data.map(element => prisma.createPerson(element));
await Promise.all(createPersonRequests);
}
async function loadConferences(data) {
#!/usr/bin/env bash
# Copyright 2017 Jesse Wang
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF
@npalm
npalm / provider.yml
Created May 13, 2021 14:56
crossplane-composite-vpc
---
apiVersion: v1
kind: Secret
metadata:
name: aws-account-creds
namespace: crossplane-system
type: Opaque
data:
credentials: secret
---
@npalm
npalm / lunch.txt
Created February 23, 2022 22:36
GitHub Actions AWS OpenID connect demo
_....._
_.:`.--|--.`:._
.: .'\o | o /'. '.
// '. \ o| / o '.\
//'._o'. \ |o/ o_.-'o\\
|| o '-.'.\|/.-' o ||
||--o--o-->|
@npalm
npalm / _get_github_oidc_thumbprint.sh
Created October 20, 2022 05:39 — forked from guitarrapc/_get_github_oidc_thumbprint.sh
Get Thumbprint of GitHub OIDC, updated on 2022/01/13.
$ openssl s_client -servername token.actions.githubusercontent.com -showcerts -connect token.actions.githubusercontent.com:443 < /dev/null 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sed "0,/-END CERTIFICATE-/d" > certificate.crt
$ openssl x509 -in certificate.crt -fingerprint -noout | cut -f2 -d'=' | tr -d ':' | tr '[:upper:]' '[:lower:]'
6938fd4d98bab03faadb97b34396831e3780aea1
{
"meta": {
"version": "1.0.0",
"lastModified": "2021-02-28T12:00:00.000Z",
"theme": "even"
},
"basics": {
"name": "Niek Palm",
"label": "Principal Engineer at Philips",
"image": "https://raw.githubusercontent.com/npalm/npalm/master/gravatar/niek512.jpg",