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 |
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 |
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
| (() => { | |
| 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 | |
| # It can be re-run to collect new repos and pull the latest changes | |
| set -euo pipefail | |
| USAGE="Usage: gh-clone-org <user|org>" |
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
| 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. |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
- Edit the
/etc/ssh/sshd_configfile by running the commandsudo vi /etc/ssh/sshd_configand do the following- Change
Portto 2222 (or any other port above 1000) - Change
PasswordAuthenticationto yes. This can be changed back to no if ssh keys are setup.
- Change
- Restart the ssh server:
sudo service ssh --full-restart
- With this setup, the ssh server must be turned on every time you run Bash on Ubuntu on Windows, as by default it is off. Use this command to turn it on:
NewerOlder