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
import os | |
from github import Github | |
token = os.getenv("GITHUB_ACCESS_TOKEN") | |
gh_org = os.getenv("GITHUB_ORG_UPDATE_TOPICS", "bluesky") | |
g = Github(token) | |
all_repos = {} | |
for repo in g.get_organization(gh_org).get_repos(): |
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 | |
# To be run as: | |
# $ docker run -it --rm -v $PWD:/build quay.io/condaforge/linux-anvil-comp7:latest bash /build/gen-conda-packed-env-nsls2-analysis-2021-1.2.sh | |
set -e | |
umask 0002 | |
sudo yum install mesa-libGL -y |
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 | |
# To be run as: | |
# $ docker run -it --rm -v $PWD:/build quay.io/condaforge/linux-anvil-comp7:latest bash /build/gen-conda-packed-env-bmm-analysis.sh | |
set -e | |
umask 0002 | |
. /opt/conda/etc/profile.d/conda.sh |
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 | |
# This was tested in the VirtualBox VM from | |
# https://slaclab.github.io/pydm-tutorial/intro.html. `htop` and `terminator` | |
# were installed via 'sudo apt-get install ...' | |
# Documentation: https://gnome-terminator.readthedocs.io/en/latest/advancedusage.html. | |
terminator -e "bash -i -l <<< '. /etc/profile.d/conda.sh && conda activate tutorial && exec </dev/tty && ipython'" & | |
sleep 2 |
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 | |
# To be run as: | |
# $ docker run -it --rm -v $PWD:/build quay.io/condaforge/linux-anvil-comp7:latest bash /build/gen-conda-packed-env-tomviz.sh | |
set -e | |
umask 0002 | |
. /opt/conda/etc/profile.d/conda.sh |
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 | |
# To be run as: | |
# $ docker run -it --rm -v $PWD:/build quay.io/condaforge/linux-anvil-comp7:latest bash /build/gen-conda-packed-env-n2sn.sh | |
set -e | |
umask 0002 | |
. /opt/conda/etc/profile.d/conda.sh |
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
switch_proxy() { | |
allowed_values=("o", "i") | |
cfg_file="$HOME/.ssh/config" | |
tmp_file="${cfg_file}_tmp" | |
ssh_base="ssh" | |
# ProxyCommand ssh -q -W %h:22 issh | |
current_pattern="ProxyCommand ssh -q -W %h:22 .${ssh_base}" | |
current_proxy=$(grep -e "${current_pattern}" ${cfg_file} | head -1 | tail -1 | awk '{print $NF}') |
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 | |
# To be run as: | |
# $ docker run -it --rm -v $PWD:/build quay.io/condaforge/linux-anvil-comp7:latest bash /build/gen-conda-packed-env-collection-2021-1.2.sh | |
set -e | |
umask 0002 | |
sudo yum install mesa-libGL -y |
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 | |
mkdir /opt/conda_envs/collection-2020-2.0rc1 | |
cd /opt/conda_envs/collection-2020-2.0rc1 | |
wget https://conda.nsls2.bnl.gov/conda/environments/collection-2020-2.0.tar.gz | |
tar -xvf collection-2020-2.0.tar.gz | |
conda activate $PWD | |
conda-unpack |
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
$ conda create -p /opt/conda_envs/analysis-2019-3.0.1-ml --clone analysis-2019-3.0.1-chx | |
$ conda activate /opt/conda_envs/analysis-2019-3.0.1-ml | |
$ pip install photutils[all] --upgrade | |
$ pip install astropy --upgrade | |
$ pip install dask[complete] --upgrade | |
$ pip install joblib --upgrade | |
$ chgrp -Rv xpcsml /opt/conda_envs/analysis-2019-3.0.1-ml/ | |
$ chmod -Rv g+rwXs /opt/conda_envs/analysis-2019-3.0.1-ml/ |