Skip to content

Instantly share code, notes, and snippets.

View gijzelaerr's full-sized avatar
🎯
Focusing

Gijs Molenaar gijzelaerr

🎯
Focusing
View GitHub Profile
$ which python3
/usr/bin/python3
$ python3 --version
Python 3.8.2
$ python3 -m venv venv
$ venv/bin/pip install --upgrade pip wheel
Collecting pip
Using cached https://files.pythonhosted.org/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d396a433/pip-20.2.4-py2.py3-none-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages/a7/00/3df031b3ecd5444d572141321537080b40c1c25e1caa3d86cdd12e5e919c/wheel-0.35.1-py2.py3-none-any.whl
λ venv/bin/pip install radio-pyse
Collecting radio-pyse
Downloading radio-pyse-0.2.2.tar.gz (71 kB)
|████████████████████████████████| 71 kB 201 kB/s
Collecting astropy
Using cached astropy-4.0.1.post1-cp38-cp38-manylinux1_x86_64.whl (6.5 MB)
Collecting numpy
Using cached numpy-1.19.0-cp38-cp38-manylinux2010_x86_64.whl (14.6 MB)
Collecting python-casacore
Casacore version 3.2.1
building google grpc...
]=> ['make', 'RPATH_DIR=@rpath/', 'prefix=/home/gijs/Work/casa/casa6/casatools/build/lib.linux-x86_64-3.8/casatools/__casac__', 'HAS_SYSTEM_PROTOBUF=false', 'PROTOBUF_CONFIG_OPTS=--prefix=/home/gijs/Work/casa/casa6/casatools/build/grpc-install.linux-x86_64-3.8', 'VER
BOSE=1', 'install'] (cwd: /home/gijs/Work/casa/casa6/casatools/build/grpc.linux-x86_64-3.8)
failure...
In file included from /usr/include/string.h:495,
from third_party/cares/cares/setup_once.h:35,
from third_party/cares/cares/ares_setup.h:214,
from third_party/cares/cares/ares_parse_ptr_reply.c:17:

Windows

Run as Administrator:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco feature enable -n allowGlobalConfirmation
choco install ActivePerl ant ruby python3 git winflexbison
cinst VisualStudio2017community --package-parameters "--add Microsoft.VisualStudio.Workload.NativeDesktop --add microsoft.visualstudio.component.vc.cmake.project --add microsoft.visualstudio.component.vc.ATLMFC"
refreshenv

Then run as normal user:

1> Install salt on your system (including salt-cloud)
https://repo.saltstack.com/#ubuntu
2> make file /etc/salt/cloud.providers.d/surfsara.conf with content
surfsara:
xml_rpc: https://api.hpccloud.surfsara.nl/RPC2
user: YOUR_USERNAME
password: YOUR_PASSWORD
/home/gijs/Work/python-eduvpn-client/venv/bin/python /home/gijs/Work/python-eduvpn-client/eduvpn/__main__.py interactive
Please choose server:
Institute access:
[0] CNOUS
[1] CSC - IT Center for Science Ltd.
[2] Demo
[3] DIAK
[4] DIFFER
$ eduvpn interactive
- starts interactive mode, lists all servers and the user can select one.
- Browser will open if required
- User needs to select profile if mutiple available
- User needs to select of configuration is added to Network Manager or written to .OVPN file
m collections import defaultdict
up = {}
for r in messages:
if 'parent' in r.keys():
up[r['id']] = r['parent']
else:
up[r['id']] = None
λ python3 -m venv venv
gijs@gijs-artica:~/Work/tmp
λ venv/bin/pip install --upgrade eduvpn
Collecting eduvpn
Using cached eduvpn-0.2-py3-none-any.whl (128 kB)
Collecting cryptography
Using cached cryptography-2.9.2-cp35-abi3-manylinux2010_x86_64.whl (2.7 MB)
Collecting requests
Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Processing /home/gijs/.cache/pip/wheels/ab/c5/e8/dba6e717af4b48e0c1e835b10bd8e386f13964c6e6401641e3/PyGObject-3.36.1-cp38-cp38-linux_x86_64.whl
λ .virtualenv/bin/python cleanup.py
# Institute access
[0] CNOUS
[1] CSC - IT Center for Science Ltd.
[2] Demo
[3] DIAK
[4] DIFFER