I hereby claim:
- I am duffn on github.
- I am duffn (https://keybase.io/duffn) on keybase.
- I have a public key whose fingerprint is 8F29 B3DB 69FE 0961 A8E4 4AC5 3459 9F4A AC3B 4C9E
To claim this, I am signing this object:
Eleventy:cmd command: eleventy { _: [], quiet: null, version: false, watch: false, dryrun: false, help: false, serve: false, incremental: false, 'ignore-initial': false } +0ms | |
Eleventy:EventBus Setting up global EventBus. +0ms | |
Eleventy:UserConfig Resetting EleventyConfig to initial values. +0ms | |
Eleventy:UserConfig Adding universal filter 'slug' +2ms | |
Eleventy:UserConfig Adding universal filter 'slugify' +0ms | |
Eleventy:UserConfig Adding universal filter 'url' +0ms | |
Eleventy:UserConfig Adding universal filter 'log' +0ms | |
Eleventy:UserConfig Adding universal filter 'serverlessUrl' +0ms | |
Eleventy:UserConfig Adding universal filter 'getCollectionItemIndex' +0ms | |
Eleventy:UserConfig Adding universal filter 'getCollectionItem' +0ms |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
labels: | |
k8s-app: metrics-server | |
name: metrics-server | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole |
[ | |
{ | |
"name": "Leia Organa", | |
"profession": "Princess" | |
}, | |
{ | |
"name": " Luke Skywalker", | |
"profession": "Jedi Knight" | |
}, | |
{ |
# https://thebrainfiles.wearebrain.com/prettify-ecto-errors-b85e9a7977f6 | |
defmodule EdgeBuilder.EctoHelper do | |
@moduledoc """ | |
Provides helper functions | |
""" | |
@doc """ | |
Prettifies changeset error messages. | |
By default `changeset.errors` returns errors as keyword list, where key is name of the field |
export STAGING=staging | |
export MASTER=master | |
export REPO=https://github.com/yourorg/yourrepo/pull/ | |
git log --oneline $(git log -n 1 --pretty=format:"%H" $STAGING)...$(git log -n 1 --pretty=format:"%H" $MASTER) | grep -E '#[0-9]+' | gawk -v REPO="$REPO" 'match($0, /#([0-9]+)/, arr) {$1=""; print substr($0,2) "\t" REPO arr[1]}' |
// Update the PeriodicFolderTrigger of each job inside of a Cloudbees folder. | |
// Useful for updating individual repos as you cannot do this through the UI. | |
// https://stackoverflow.com/questions/57077851/jenkins-github-plugin-scan-organization-triggers | |
import com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger | |
import jenkins.model.Jenkins | |
import jenkins.branch.OrganizationFolder | |
println "Multibranch Items\n-------" | |
Jenkins.instance.getAllItems(org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject.class).each { it.triggers | |
.findAll { k,v -> v instanceof com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger } |
.blob-code-inner { | |
font-family: 'Hack', Menlo, monospace; | |
font-size: 16px; | |
} | |
.blob-code-inner span.pl-k { | |
color: #FF79C6; | |
} | |
.blob-code-inner span.pl-c1, |
{ | |
"Version": "2012-10-17", | |
"Statement": [{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": ["s3:GetObject"], | |
"Resource": ["arn:aws:s3:::example.com/*"] | |
}] | |
} |
I hereby claim:
To claim this, I am signing this object:
# MySQL in Docker | |
docker run --name=mysql01 -p 3306:3306 mysql/mysql-server:latest | |
docker exec -it mysql01 mysql -uroot -p | |
# Enter the one time password generated from the docker run command | |
# and then change the root password | |
ALTER USER 'root'@'localhost' IDENTIFIED BY 'mypassword'; | |
# Create a user with your host IP address so it can connect from Buffalo | |
# outside the container | |
create user 'root'@'172.17.0.1' with password 'mypassword'; | |
GRANT ALL PRIVILEGES ON * . * TO 'root'@'172.17.0.1'; |