Retrieve total storage usage and identify largest artifacts.
curl -u "username:password" -X GET "https://site.jfrog.io/artifactory/api/storageinfo"
# find multiple | |
deno run --allow-net --allow-env github-gist-manager.ts -t "foo" -t "bar" | |
# regex | |
deno run --allow-net --allow-env github-gist-manager.ts -r "foo.*bar" | |
# combined terms + regex |
var async = require('async'); | |
var GitHubApi = require('github'); | |
var github = new GitHubApi({ | |
version: '3.0.0', | |
protocol: 'https' | |
}); | |
github.authenticate({ |
function get_ci_usage | |
set org "your-org-name" # Replace with your GitHub Organization Name | |
echo "Fetching workflow run counts for all repositories in $org..." | |
set query ' | |
{ | |
organization(login: "'$org'") { | |
repositories(first: 100) { | |
nodes { |
Retrieve total storage usage and identify largest artifacts.
curl -u "username:password" -X GET "https://site.jfrog.io/artifactory/api/storageinfo"
# import config | |
ifeq ($(shell test -e .env),yes) | |
cnf ?= .env | |
include $(cnf) | |
export $(shell sed 's/=.*//' $(cnf)) | |
endif | |
# HIDDEN | |
print-%: ## Print env var names and values |
import { encode as btoa, decode as atob } from "https://deno.land/[email protected]/encoding/base64.ts"; | |
import kdbxweb from "npm:kdbxweb"; | |
// KeePass Configuration | |
const KEEPASS_DB_PATH = "/path/to/your/database.kdbx"; | |
const KEEPASS_MASTER_PASSWORD = "your-master-password"; // Secure this in an env variable | |
const TARGET_ENTRY_TITLE = "AES-GCM Key"; | |
const TARGET_ENTRY_URL = "keepass://AES-Key"; | |
// Read the KeePass database |
name: "Deno Action" | |
description: "A GitHub Action using Deno" | |
inputs: | |
name: | |
description: "Name to greet" | |
required: true | |
runs: | |
using: "composite" | |
steps: | |
- run: deno run --allow-env --allow-net https://deno.land/std/examples/welcome.ts |
# syntax=docker/dockerfile:1.3 | |
FROM --platform=$BUILDPLATFORM bitnami/python:latest | |
ARG TARGETPLATFORM | |
ARG BUILDPLATFORM | |
RUN echo "Platform: $BUILDPLATFORM" | |
RUN echo "Target: $TARGETPLATFORM" | |
ENV PYENV_ROOT=/root/.pyenv | |
ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH:/usr/local/bin" | |
RUN apt-get update && apt-get -o "Acquire::https::Verify-Peer=false" install -y curl ca-certificates git bash pipenv pipx | |
COPY ./trusted_certs.pem /usr/share/ca-certificates/trusted_certs.crt |