This file contains 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
#!/bin/bash | |
url="https://chromewebstore.google.com/detail/magical-ai-writer-autofil/iibninhmiggehlcdolcilmhacighjamp" | |
id=$(echo "$url" | sed -n 's/.*\/\([a-z]\{32\}\)$/\1/p') | |
if [ -z "$id" ]; then | |
echo "Invalid Chrome Web Store URL." | |
exit 1 | |
fi |
This file contains 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
# prelude-replay/tar/BUCK | |
export_file( | |
name="tar_file.py", | |
visibility=["PUBLIC"], | |
) |
This file contains 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
def _executable_package_impl(ctx): | |
srcs = {file.short_path: file for file in ctx.attrs.support_files} | |
srcs.update({exe.short_path: exe for name, exe in ctx.attrs.executables.items()}) | |
# First make a directory containing all of the executables and support files with symlinks into the source tree, so that | |
# we can refer to them and make them available to other rules. | |
out_dir = ctx.actions.symlinked_dir("out", srcs) | |
# Define an "artifact" for each one (basically a Starlark artifact object for each of the symlinks we just created), so | |
# that we can set up the proper action graph dependencies. |
This file contains 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
# Root BUCK file | |
http_archive( | |
name="dive", | |
urls=["https://github.com/wagoodman/dive/releases/download/v0.12.0/dive_0.12.0_linux_arm64.tar.gz"], | |
sha256="a2a1470302cdfa367a48f80b67bbf11c0cd8039af9211e39515bd2bbbda58fea", | |
strip_prefix='dive', | |
sub_targets=["dive"], | |
) |
This file contains 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
from checks import AgentCheck | |
from datadog_checks.base.utils.subprocess_output import get_subprocess_output | |
# Get number of processes from `vmstat` | |
class NumProcessesCheck(AgentCheck): | |
def check(self, instance): | |
out, err, retcode = get_subprocess_output(['vmstat', '1', '2'], self.log, raise_on_empty_output=True) | |
lines = out.strip().split("\n") | |
last_line = lines[-1] | |
words = list(filter(None, last_line.split(" "))) |
This file contains 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
load('ext://restart_process', 'docker_build_with_restart') | |
IMG = 'controller:latest' | |
### FILL OUT THESE FIELDS | |
NAME = '' # name of Go module | |
DOMAIN = '' # domain for CRD | |
GROUP = '' # group for CRD | |
VERSION = '' # version for CRD | |
KIND = '' # kind for CRD |
This file contains 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
project = str(local('gcloud config get-value project')).strip() | |
read_file(str(local('which capdctl')).rstrip('\n')) | |
k8s_yaml(local('capdctl platform -capi-image gcr.io/kubernetes1-226021/cluster-api-controller-amd64:dev -bp-image gcr.io/kubernetes1-226021/cluster-api-bootstrap-provider-kubeadm:dev -bp-ref master')) | |
custom_build( | |
'gcr.io/' + project +'/manager', | |
'GOOS=linux go build ./cmd/manager && docker build -t $EXPECTED_REF .', | |
['.'], | |
ignore='manager', |
This file contains 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
{ | |
"allowed_context": "minikube" | |
} |
This file contains 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
kompose.cmd: kompose convert | |
kompose.version: 1.17.0 (HEAD) | |
creationTimestamp: null | |
labels: | |
io.kompose.service: clair | |
name: clair |
This file contains 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
kompose.cmd: kompose convert | |
kompose.version: 1.17.0 (HEAD) | |
creationTimestamp: null | |
labels: | |
io.kompose.service: clair | |
name: clair |
NewerOlder