-
Install some dependencies:
sudo apt -y install gcc* sudo apt -y install cmake sudo apt -y install glibc-headers sudo apt -y install gcc-c++ sudo apt -y install zip-devel
This file contains hidden or 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
| from azure.datalake.store import core, lib, multithread | |
| import pandas as pd | |
| class ADLSHelper: | |
| def __init__(self, store_name='mystorename'): | |
| """ | |
| When initializing this helper, it will prompt you to do an interactive login to connect to your data lake store. | |
| It uses Azure Active Directory for authentication, and you use the token returned from | |
| your login process to connect to your Azure Data Lake instance. | |
| You can also authenticate with username/password or ServicePrincipal for production. |
https://www.nerdfonts.com/font-downloads
The following solution thanks to @hackerzgz & @snacky101 will install all nerd fonts;
brew tap homebrew/cask-fonts
brew search '/font-.*-nerd-font/' | awk '{ print $1 }' | xargs -I{} brew install --cask {} || true
This file contains hidden or 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 | |
| # 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>" |
This file contains hidden or 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
| (() => { | |
| let speedMs = 500 | |
| setInterval(() => { | |
| let dropdown = document.querySelector('.feed-shared-update-v2__control-menu .artdeco-dropdown button') | |
| dropdown.click() | |
| setTimeout(() => { | |
| let optionDel = dropdown.parentElement.parentElement.parentElement.querySelector('.option-delete .tap-target') |
This file contains hidden or 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 | |
| # It requires the GH CLI: https://cli.github.com | |
| set -euo pipefail | |
| USAGE="Usage: gh-clone-org <user|org>" | |
| [[ $# -eq 0 ]] && echo >&2 "missing arguments: ${USAGE}" && exit 1 |
This file contains hidden or 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
| find . -name "*.Identifier" -type f -print0 | xargs -0 rm |
export MY_BRANCH=feat/DC1121-7769
git switch $MY_BRANCH
if [ "$(git branch --show-current)" = "$MY_BRANCH" ]; then
echo "✅ You are on branch: $MY_BRANCH"
else
This file contains hidden or 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 | |
| # Interval in seconds (e.g., 300 = 5 minutes) | |
| INTERVAL=300 | |
| echo "Keeping Codespace alive. Press [CTRL+C] to stop." | |
| while true; do | |
| echo "Ping at $(date)" > /tmp/keepalive.txt | |
| sleep $INTERVAL |
OlderNewer