brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
"""Hack to add per-session state to Streamlit. | |
Usage | |
----- | |
>>> import SessionState | |
>>> | |
>>> session_state = SessionState.get(user_name='', favorite_color='black') | |
>>> session_state.user_name | |
'' |
#!/bin/bash | |
# Time-stamp: <2017-07-19 15:06:39 dangom> | |
# Script for installing BART and dependencies from source on a CentOS machine without admin rights. | |
# Steps: | |
# 1. Build OpenBLAS from source to enable support for LAPACKE C API. | |
# 2. Build FFTW3 from source to enable float32 support (fftw defaults to double precision. BART doesn't) | |
# 3. Link against Matlab2016, because something changed in Matlab2017 and the BART build breaks. | |
# 4. Download Cmake >= 3 since cluster ships with old cmake 2.8 |
from smb.SMBConnection import SMBConnection | |
userID = 'user' | |
password = 'password' | |
client_machine_name = 'localpcname' | |
server_name = 'servername' | |
server_ip = '0.0.0.0' | |
domain_name = 'domainname' |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
Blog post here
Goal: Connect to MSSQL using FreeTDS / ODBC in Python.
Host: Ubuntu 11.10 x86_64
Install:
sudo apt-get install freetds-dev freetds-bin unixodbc-dev tdsodbc
pip install pyodbc sqlalchemy
In /etc/odbcinst.ini: