This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """LAB-251 — cheap per-study pin-landing ledger for all 67 seeded studies. | |
| For each of the 67 registry studies: run the REAL curated seed + REAL selection path against an | |
| EMPTY organic pool (the strictest case — the pin must stand alone), and record whether it lands | |
| technique-direct, or is excluded with a stated reason (fetch_failed / retracted / citation_mismatch). | |
| This answers AC1 (how many reach the page) and AC2 (each present or excluded-with-reason) for all 67 | |
| WITHOUT the throttle-bound organic-pool graph walk: for a vocab-gap technique the organic pool is | |
| ~entirely GRADE-indirect and dropped by the topical-relevance gate before the cap (verified on | |
| TECH_023: 552/553 dropped), so the pin lands alone regardless of pool. The empty-pool run is that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import civis | |
| from base64 import b64decode | |
| # from json import loads | |
| import logging | |
| import os | |
| def get_credential_id(email): | |
| credentials = client.credentials.list() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [thing] | |
| stuff=flibbleAndPtang | |
| foo=bar!@$@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RELEASE := p4-rocketchat | |
| NAMESPACE ?= rocketchat | |
| CHART_NAME ?= stable/rocketchat | |
| CHART_VERSION ?= 0.3.4 | |
| fnord: | |
| helm upgrade --install --force --wait $(HELM_RELEASE) \ | |
| --namespace=$(NAMESPACE) \ | |
| --version $(CHART_VERSION) \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| printf "%d < %d" "$1" "$2" | |
| if [[ $1 -lt $2 ]] | |
| then | |
| echo " = true" | |
| exit 0 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Helm init | |
| helm init | |
| # Apply | |
| kc apply -f https://gist.githubusercontent.com/27Bslash6/97d4b9ad55a87e8c9880d9f425b1d4ab/raw/0c25adf337fe181689dbf7d7be2741e00f06a8b1/helm-tiller-rbac.yaml | |
| # Create cluster-admin cluster role binding for Helm in namespace kube-system | |
| kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
| # Patch a running deployment to confirm access rights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: tiller | |
| namespace: kube-system | |
| --- | |
| kind: ClusterRoleBinding | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| metadata: | |
| name: tiller-clusterrolebinding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kube-lego Mar 8, 2018, 4:03:55 PM log: exiting because of error: log: cannot create log: open /tmp/kube-lego.kube-lego-75cf85bd4b-2g888.unknownuser.log.ERROR.20180308-050355.1: no such file or directory | |
| kube-lego Mar 8, 2018, 4:03:55 PM E0308 05:03:55.315662 1 reflector.go:214] github.com/jetstack/kube-lego/pkg/kubelego/watch.go:104: Failed to list *extensions.Ingress: ingresses.extensions is forbidden: User "system:serviceaccount:kube-lego:default" cannot list ingresses.extensions at the cluster scope: Unknown user "system:serviceaccount:kube-lego:default" | |
| kube-lego Mar 8, 2018, 4:03:55 PM E0308 05:03:55.315662 1 reflector.go:214] github.com/jetstack/kube-lego/pkg/kubelego/watch.go:104: Failed to list *extensions.Ingress: ingresses.extensions is forbidden: User "system:serviceaccount:kube-lego:default" cannot list ingresses.extensions at the cluster scope: Unknown user "system:serviceaccount:kube-lego:default" | |
| kube-lego Mar 8, 2018, 4:03:55 PM time="2018-03-08T05:03:55Z" level=info msg="server listening on h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -eu | |
| # ---------------------------------------------------------------------------- | |
| # Find real file path of current script | |
| # https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within | |
| # ---------------------------------------------------------------------------- | |
| source="${BASH_SOURCE[0]}" | |
| while [[ -h "$source" ]] | |
| do # resolve $source until the file is no longer a symlink | |
| dir="$( cd -P "$( dirname "$source" )" && pwd )" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -ea | |
| # ---------------------------------------------------------------------------- | |
| # Pretty printing | |
| TERM="${TERM:-'dumb'}" | |
| if test -t 1 | |
| then |
NewerOlder