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
git clone --depth 1 git@bitbucket.org:atlassian/atlassian-support-assistant.git | |
git clone --depth 1 git@bitbucket.org:atlassian/confluence-recent-edits-overview | |
git clone --depth 1 git@bitbucket.org:atlassian/connect-on-forge-alpha | |
git clone --depth 1 git@bitbucket.org:atlassian/devday-2021-new-in-forge | |
git clone --depth 1 git@bitbucket.org:atlassian/forge-and-bitbucket-pipelines | |
git clone --depth 1 git@bitbucket.org:atlassian/forge-app-events-confluence-marco | |
git clone --depth 1 git@bitbucket.org:atlassian/forge-attachment-count-custom-field | |
git clone --depth 1 git@bitbucket.org:atlassian/forge-byline-dynamicproperties | |
git clone --depth 1 git@bitbucket.org:atlassian/forge-compass-component-details | |
git clone --depth 1 git@bitbucket.org:atlassian/forge-compass-webtrigger |
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
#!/usr/bin/zsh | |
github="itsazzad" | |
target="atlassian-forge-create-templates" | |
templates=("blank" "compass-admin-page-custom-ui" "compass-admin-page-ui-kit" "compass-component-page-custom-ui" "compass-component-page-ui-kit" "compass-data-provider" "compass-global-page-custom-ui" "compass-global-page-ui-kit" "compass-team-page-custom-ui" "compass-team-page-ui-kit" "confluence-content-action-custom-ui" "confluence-content-action-ui-kit" "confluence-content-byline-custom-ui" "confluence-content-byline-ui-kit" "confluence-context-menu-custom-ui" "confluence-context-menu-ui-kit" "confluence-global-page-custom-ui" "confluence-global-page-ui-kit" "confluence-global-settings-custom-ui" "confluence-global-settings-ui-kit" "confluence-homepage-feed-custom-ui" "confluence-homepage-feed-ui-kit" "confluence-macro-custom-ui" "confluence-macro-typescript-ui-kit" "confluence-macro-ui-kit" "confluence-space-page-custom-ui" "confluence-space-page-ui-kit" "confluence-space-settings-custom-ui" "confluence-space-settings-ui-kit" "ji |
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
docker info > /dev/null 2>&1 | |
# Ensure that Docker is running... | |
if [ $? -ne 0 ]; then | |
echo "Docker is not running." | |
exit 1 | |
fi | |
echo "Starting..." |
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
var details = document.querySelectorAll("[id*='detailIndex']") | |
var data = { | |
daypart: [], | |
temperature: [], | |
UVIndex: [], | |
} | |
for (let i = 0; i < details.length; i++) { | |
details[i].toggleAttribute("open") | |
data.daypart.push(details[i].querySelector("[data-testid='daypartName']").textContent) |
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
const average = (array) => array.reduce((a, b) => a + b) / array.length; | |
var packages = document.querySelectorAll("tr:not(.hidden) .package-container") | |
const prices = []; | |
for (let i = 0; i < packages.length; i++) { | |
const pack = packages[i].innerText; | |
prices.push(Number(/৳\s([^\s(]+)/.exec(pack)[1])) | |
} | |
const min = Math.min(...prices); | |
const max = Math.max(...prices); |
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 -eu | |
OPENSSL_VER=3.0.0 | |
mkdir openssl | |
cd openssl | |
wget https://www.openssl.org/source/openssl-${OPENSSL_VER}.tar.gz | |
tar xf openssl-${OPENSSL_VER}.tar.gz | |
cd openssl-${OPENSSL_VER} | |
./config zlib shared no-ssl3 |
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
for f in *; do | |
if [ -d "$f" ]; then | |
cd $f | |
pwd | |
git status | |
cd .. | |
fi | |
done |
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
echo "Message:" | |
read message | |
for f in *; do | |
if [ -d "$f" ]; then | |
cd $f | |
pwd | |
echo "$upstream/$f" | |
git add --all | |
git commit -m "$message" | |
git push upstream |
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
echo "Target:" | |
read upstream | |
for f in *; do | |
if [ -d "$f" ]; then | |
cd $f | |
pwd | |
echo "$upstream/$f" | |
gh repo create $upstream/$f --public --confirm | |
git remote add upstream git@github.com:$upstream/$f.git | |
git push upstream |
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
#!/usr/bin/env bash | |
# This script clones all repos in a GitHub org and pushes to the upstream | |
# It requires the GH CLI: https://cli.github.com | |
# It can be re-run to collect new repos and pull the latest changes | |
set -euo pipefail | |
USAGE="Usage: gh-clone-org <user|org> <target>" |
NewerOlder