Create a file mapping all SVN comitters to "name " for Git{Hub,Lab}.
Assuming the SVN repository fits this form:
$URL: repository URL, such ashttp://svn.svnserver.net/repo$REPO: repository directory, such assizes
# mkdir ~/sandbox
Create a file mapping all SVN comitters to "name " for Git{Hub,Lab}.
Assuming the SVN repository fits this form:
$URL : repository URL, such as http://svn.svnserver.net/repo$REPO : repository directory, such as sizes# mkdir ~/sandbox
| ``` | |
| #!/usr/bin/env python | |
| # Coded for both python2 and python3. | |
| ''' | |
| Create release notes for a new relase of a GitHub repository. | |
| Assumes that the repository has committed work (tags, pulls, | |
| issues, commits) on a milestone. |
| #!/bin/bash | |
| # file: run_pymca.sh | |
| # | |
| # Runs PyMCA from a custom conda environment | |
| # Creates and installs the environment if not present | |
| # Installation can take about ten minutes (depends on workstation) | |
| export CONDA_ENV_NAME=pymca_python3_qt5 | |
| export ACTIVATE=/APSshare/anaconda3/x86_64/bin/activate |
| #!/bin/bash | |
| shopt -s expand_aliases | |
| EPICS_BASE=/usr/local/epics/base-7.0.2 | |
| SUPPORT=R6-0 | |
| CONFIGURE=R6-0 | |
| UTILS=R6-0 | |
| DOCUMENTATION=R6-0 |
| #!/bin/bash | |
| # file: epics-env-setup.sh | |
| # purpose: bash shell script to setup EPICS developer's environment | |
| # usage: | |
| # . /complete/path/to/epics-env-setup.sh | |
| # example for ~/.bash_aliases file: | |
| # _script=/usr/local/epics/epics-env-setup.sh |
| from ophyd import EpicsMotor, EpicsSignal, Component | |
| from bluesky import RunEngine | |
| from bluesky import plans as bp | |
| RE = RunEngine({}) | |
| class MyMotor(EpicsMotor): | |
| high_soft_limit = Component(EpicsSignal, '.HLM', kind='omitted') | |
| low_soft_limit = Component(EpicsSignal, '.LLM', kind='omitted') | |
| m1 = MyMotor("vm7:m1", name="m1") |
| # bash shell script | |
| # don't add same directory to PATH more than once | |
| # | |
| # EXAMPLES: | |
| # _bin=${HOME}/bin | |
| # if [ -d "${_bin}" ] | |
| # then prepend_path ${_bin} | |
| # fi | |
| # |
| #!/bin/bash | |
| # usage: source ./setup_caQtDM_build_environment.sh | |
| # (empirical) required packages to build on LinuxMint 19 | |
| # ref: https://packages.debian.org/buster/allpackages | |
| # | |
| # error | resolution | |
| # ---------------- | ---------------------------------- | |
| # qmake | `sudo apt-get install qt5-default` |
| # custom format of the git log: git lg | |
| # Thanks to Fanny Rodolakis (@rodolakis)! | |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |