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
DROP PROCEDURE IF EXISTS moveTables; | |
DROP PROCEDURE IF EXISTS renameDatabase; | |
DELIMITER $$ | |
CREATE PROCEDURE moveTables(_schemaName varchar(100), _newSchemaName varchar(100)) | |
BEGIN | |
DECLARE done INT DEFAULT FALSE; | |
DECLARE table_name VARCHAR(64); | |
DECLARE table_cursor CURSOR FOR SELECT information_schema.tables.table_name FROM information_schema.tables | |
WHERE information_schema.tables.table_schema = _schemaName; |
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