Pattern | Meaning |
---|---|
. |
Any character except newline (unless re.DOTALL ) |
^ |
Start of string (or start of line if re.MULTILINE ) |
$ |
End of string (or end of line if re.MULTILINE ) |
\A |
Start of string (ignores MULTILINE ) |
\Z |
End of string (ignores MULTILINE ) |
Enable working with multiple github profiles on the command line using multiple SSH keys.
From the command line, generate an SSH key for each account to be accessed. Do this with care as you may already have an ssh key in use.
Generate ssh key pairs for accounts and add them to GitHub accounts. Do this with care; there may already be existing SSH keys in the local ~/.ssh/
directory. You will need one SSH key per GitHub identity. It is only necessary to generate keys for identities that do not yet exist.
Bootstrap a *conda development environment for jupyter lab development using multiple environments and kernels under windows 11.
This will allow the use of multiple kernels from a single Jupyter Lab session. Each notebook or project can run within a specific python virtual environment by using the kernel drop-down menu within the notebook. This helps avoid dependency conflicts between various libraries and allows multiple different python, ane even R versions symultaniously.
This is particularly useful if you:
- Need to run an older verison of Python for legacy projects
- Need to use conflicting versions of librarys such as
PIL
andpillow
Use case: Working with PDF text books, it can be helpful to be able to extract problems and images to use in notes and when working problemsets on the reMarkable tablet.
These instructions are MacOS centric, but should be reproducable on most platforms as the tools are fairly platform agnostic.
The columns
section of the XML document refer to the columsn that will be offered in the Data Export Manager screens. The text of the column name is arbitrary and can be anything, but the <column column="TABLE.FIELD">
portion must refer to a "core" table of powerschool. When in doubt, use column="STUDENTS.ID"
Avoid using DCID of any table in the column parameter as it might render the query disabled in DEM (grayed out). Reason being the DCID of most tables, starting with Students, is a non-editable identifier key even for system admin roles. Having DCID in SQL and in feild access is acceptable.
PyPi no longer allows simple username/password authhentication through twine. 2FA is now required for all publisyhing.
This gist is based on this PyPA guide
setuptools
setup.py
-- see example below and in this project
#!/usr/bin/env python3 | |
# coding: utf-8 | |
# display the time vaugely as a string (The Time is about Ten to Seven); update every 5 minutes | |
# to adjust the timing use: | |
# $ word_clock.py -t xx | |
import os | |
from datetime import datetime |
In this situation it is not possible to connect to remote hosts (e.g. github.com) for managing repos over ssh. A tunnel through a remote host (tunnel.myhost.com) can remedy this. An ssh configuration file can be added to the ~/.ssh/config
directory to specify a specific command for connecting github.com.
See also How to setup SSH Tunneling
Setup
- create a tunnel host that accepts incomming connections:
tunnel.myhost.com
- install nc