- Find the artifact on Artifactory
- Go to the Properties tab
- Add a
pypi.yankedproperty, setting the value to whatever you want the explanation to be for why it was yanked (e.g. 'broken release')
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 | |
| set -euo pipefail | |
| # Set env vars | |
| # - UV_INSECURE_HOST: set to the same as PIP_TRUSTED_HOST | |
| # - UV_DEFAULT_INDEX: set to the same as PIP_INDEX_URL | |
| # - UV_SYSTEM_CERTS: 1 | |
| if [ -z "${UV_DEFAULT_INDEX:-}" ] || [[ "${UV_DEFAULT_INDEX}" != http* ]] || [[ "${UV_DEFAULT_INDEX}" == *'$'{* ]]; then | |
| echo "ERROR: No package index configured." |
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
| # Solution to console message: | |
| # "WARN impl.MetricsConfig: Cannot locate configuration: tried hadoop-metrics2-s3a-file-system.properties, hadoop-metrics2.properties" | |
| # Create the missing file. | |
| if [[ -e /etc/hadoop/conf/hadoop-metrics2.properties ]]; then | |
| echo "File exists — refusing to overwrite" >&2 | |
| exit 1 | |
| fi |
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
| gh issue list --limit 1000 --state all --json number,title,state,author,createdAt,closedAt --template '{{range | |
| .}}{{.number}},{{printf "%q" .title}},{{.state}},{{.author.login}},{{.createdAt}},{{.closedAt}} | |
| {{end}}' > issues_4.csv |
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
| sudo add-apt-repository ppa:deadsnakes/ppa | |
| sudo apt install python3.10 | |
| sudo apt install python3.10-venv | |
| # You can then use Python interpreter /bin/python3.10 |
Problem: cannot use GitHub CoPilot in ssh remote sessions.
Solution: add this to .vscode/settings.json (e.g. on the remote server)
"remote.extensionKind": {
"GitHub.copilot": [
"ui"
],
"GitHub.copilot-chat": [
"ui"
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
| ### | |
| # CURL approach | |
| ### | |
| ARTIFACTORY_BASE_URL="https://artyyy-01/artifactory" | |
| ARTIFACTORY_REPO_PATH="LR_DataEng_pypi/cdsw_remote" | |
| version="0.1.4a9" | |
| curl -f -u "$JF_USER:$JF_PASSWORD" -T "dist/cdsw_remote-$version.exe" \ | |
| "$ARTIFACTORY_BASE_URL/$ARTIFACTORY_REPO_PATH/cdsw_remote-$version.exe" |
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
| # Some environments (non-interactive ones like CDP, I think) use only .profile | |
| # and not .bashrc | |
| function hello() { | |
| echo "Hello, $1!" | |
| } | |
| function checktimes { | |
| echo "Checking recent start and end times, please wait..." | |
| powershell -Command "& { Invoke-Expression (Get-Content -Raw '//NDATA12/hawkem$/My Documents/WindowsPowerShell/checktimes.txt') }" |
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
| # Example 1 - easiest | |
| printf "%s" "password123" | base64 | tr -d '\n' | |
| # Example 2 - powershell | |
| powershell "[convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes(\"Your text goes here - keep the backslashes\"))" | |
| # Example 2 - powershell | |
| powershell "[convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes(\"password123\"))" | |
| # Example 2 - powershell |
NewerOlder