Skip to content

Instantly share code, notes, and snippets.

@anupash147
anupash147 / gh-dl-release
Last active July 5, 2024 19:53 — forked from Lauszus/gh-dl-release
Download assets from private Github releases
#!/bin/bash -e
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@anupash147
anupash147 / vault-keys-via-aws-role.py
Last active September 21, 2021 20:59
exports vault variables as keys by assuming aws role
import hvac
import boto3
import os
import json
import sys
if len(sys.argv) < 4 : exit(1)
VAULT_URL = sys.argv[1]
VAULT_ROLE = sys.argv[2]
@anupash147
anupash147 / jfrog-pypi-setup.sh
Last active August 6, 2021 16:57
Used to setup up the python requisit pypi permission in a machine
#!/usr/bin/env bash
usage(){
echo "Usage:"
echo "----------------------------------------------------------------------------------------"
echo " -s Setup up"
echo " -u/--user Provide your bayer user-email"
echo " -p/--passkey Provide the API KEY generated"
GET /pipeline/system/project-id
(node:1) UnhandledPromiseRejectionWarning: FetchError: request to http://metadata/computeMetadata/v1/project/project-id failed, reason: getaddrinfo ENOTFOUND metadata
at ClientRequest.<anonymous> (/server/node_modules/node-fetch/lib/index.js:1455:11)
at ClientRequest.emit (events.js:223:5)
at Socket.socketErrorListener (_http_client.js:406:9)
at Socket.emit (events.js:223:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 34)
time="2020-05-14T22:09:18Z" level=info msg="Setting up backup temp file" backup=velero/kubeflow-bk-v2 logSource="pkg/controller/backup_controller.go:462"
time="2020-05-14T22:09:18Z" level=info msg="Setting up plugin manager" backup=velero/kubeflow-bk-v2 logSource="pkg/controller/backup_controller.go:469"
time="2020-05-14T22:09:18Z" level=info msg="Getting backup item actions" backup=velero/kubeflow-bk-v2 logSource="pkg/controller/backup_controller.go:473"
time="2020-05-14T22:09:18Z" level=info msg="Setting up backup store" backup=velero/kubeflow-bk-v2 logSource="pkg/controller/backup_controller.go:479"
time="2020-05-14T22:09:18Z" level=info msg="Writing backup version file" backup=velero/kubeflow-bk-v2 logSource="pkg/backup/backup.go:213"
time="2020-05-14T22:09:18Z" level=info msg="Including namespaces: kubeflow" backup=velero/kubeflow-bk-v2 logSource="pkg/backup/backup.go:219"
time="2020-05-14T22:09:18Z" level=info msg="Excluding namespaces: <none>" backup=velero/kubeflow-bk-v2 logSource="pkg/backup/backup.g