Skip to content

Instantly share code, notes, and snippets.

View itsazzad's full-sized avatar
🎯
Focusing

Sazzad Hossain (Tushar) Khan itsazzad

🎯
Focusing
View GitHub Profile
@itsazzad
itsazzad / clone-all.sh
Created November 16, 2022 04:38
Clone Forge Examples
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
#!/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
@itsazzad
itsazzad / laravel-build-8.x.sh
Last active July 30, 2022 14:13
laravel.build
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..."
@itsazzad
itsazzad / hourbyhour.js
Last active February 9, 2022 14:29
weather.com hourbyhour
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)
@itsazzad
itsazzad / brand-names.js
Last active February 7, 2022 21:11
medex.com.bd
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);
@itsazzad
itsazzad / install-openssl.sh
Last active November 29, 2021 10:52 — forked from estshorter/install-openssl.sh
Install openssl on raspberry pi
#!/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
@itsazzad
itsazzad / git-org-status.sh
Last active August 25, 2021 01:36
Git Organization: Status
for f in *; do
if [ -d "$f" ]; then
cd $f
pwd
git status
cd ..
fi
done
@itsazzad
itsazzad / git-org-add-commit-push.sh
Last active August 25, 2021 01:31
Git Organization Add Commit Push
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
@itsazzad
itsazzad / gh-org-create-add-push.sh
Last active August 25, 2021 01:32
Git Organization: Create Repo, Add Remote, Push
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
@itsazzad
itsazzad / gh-org-clone-pull-create-add-push.sh
Last active August 25, 2021 01:33 — forked from davegallant/gh-clone-org
Git Organization: Clone Repo, Pull, Create Repo, Add Remote, Push
#!/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>"