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/sh | |
# Assume sudo by default | |
[ $(id -u) -eq 0 ] || exec sudo $0 $@ | |
for bin in /var/lib/rancher/k3s/data/**/bin/; do | |
[ -d $bin ] && export PATH=$PATH:$bin:$bin/aux | |
done | |
set -x |
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 | |
# How to use? | |
## bash gh_migrate_init.sh competition-service | |
GITHUB_ORG="coindcx-app" | |
JIRA="IDOPS-153" | |
SOURCE_FOLDER="coindcx-api-help" | |
prepare_repo() { |
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
{ | |
"description": "TheFaker NFT minted for DCX training", | |
"external_url": "https://shivanshs9.me", | |
"image": "https://avatars.githubusercontent.com/u/8217199?v=4", | |
"name": "TheFaker", | |
"attributes": [] | |
} |
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
# syntax=docker/dockerfile:1 | |
FROM golang:1.21-alpine AS builder | |
RUN apk add --no-cache git ca-certificates | |
RUN go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest | |
RUN xcaddy build --with github.com/mholt/caddy-l4 --output /usr/bin/caddy && chmod +x /usr/bin/caddy | |
FROM alpine:3.15 | |
RUN apk add --no-cache ca-certificates mailcap | |
RUN apk add bash |
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 | |
set -e | |
# Function to display help | |
display_help() { | |
echo "Usage: $0 [options] org repo" | |
echo "Options:" | |
echo " -d, --default-branch BRANCH Set the default branch for the repository" | |
echo " -t, --teams TEAMS Set repository access permissions for specified teams" | |
echo " -j, --rule-json JSON Set ruleset for the repository" |
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 | |
set -e | |
# Function to display help | |
display_help() { | |
echo "Usage: $0 [command] [args]" | |
echo "Command:" | |
echo " approve Approves the specified PR in format of URL" | |
echo " create Creates a new PR from specified args" | |
echo "Options:" |
OlderNewer