Scripts for managing creation of local user accounts that pull auth keys from github and that user github for uid/gid
Can be used, for example, with VM for creating Singularity images for Satori
Scripts for managing creation of local user accounts that pull auth keys from github and that user github for uid/gid
Can be used, for example, with VM for creating Singularity images for Satori
import requests | |
import time | |
import json | |
from github import Github | |
import pandas as pd | |
import os | |
gt = os.getenv('GIT_TOKEN') # Get this from your Github Oauth tokens | |
print(gt) | |
# Get list of all PRs |
#BSUB -L /bin/bash | |
## | |
## Begin LSF Directives (change only no of required GPUs processes/GPUs and job-name-single name as desired/need) | |
## - "-n 4" for single AC922, "-n 8" for 2x AC922s, "-n 16" for 4x AC922s etc | |
## | |
#BSUB -J "energy-ai" | |
#BSUB -o "energy-ai_o.%J" | |
#BSUB -e "energy-ai_e.%J" | |
#BSUB -n 16 | |
#BSUB -R "span[ptile=4]" |
# demo for profiling python using command | |
# | |
# nvprof --print-gpu-trace python cuml_tsne.py | |
from sklearn.datasets import load_digits | |
X, y = load_digits().data, load_digits().target | |
from cuml.manifold import TSNE | |
tsne = TSNE(n_components = 2) | |
X_hat = tsne.fit_transform(X) |
include("./eigvfft-for-oliver.jl"); | |
IJulia.clear_output(); | |
dz=ones(4,1)[:];dz[1]=4.;dz | |
dz=[1.,2.,3,4.] | |
# dz=[ones(1,10) ones(1,20)*2 ones(1,100)*5 ] | |
Az=mkA_N(dz);Nz=size(Az,1) | |
Ah,Nx,Ny,Nzz,NN=mkA_PPN(3,3,1); | |
Nh=size(Ah,1); |
## Functions for eigvfft notebook. | |
## to use: include("./eigvfft.jl") | |
# Set environment | |
using Pkg | |
Pkg.add("LinearAlgebra") | |
using LinearAlgebra | |
Pkg.add("FFTW") |
# Julia code for Helmholtz solve with tridiag Neumann in inner dimension and | |
# periodic in outer up to 2 dimensions. | |
# Set environment | |
using Pkg | |
Pkg.add("LinearAlgebra") | |
using LinearAlgebra | |
Pkg.add("FFTW") | |
using FFTW |
git clone https://github.com/letsencrypt/letsencrypt | |
cd letsencrypt | |
./letsencrypt-auto certonly --standalone -d mit-12-010-fall2019.cyberinfrastructure.org.tld | |
key: /etc/letsencrypt/live/mit-12-010-fall2019.cyberinfrastructure.org.tld/privkey.pem | |
cert: /etc/letsencrypt/live/mit-12-010-fall2019.cyberinfrastructure.org.tld/fullchain.pem |
docker run --name centos_base-7.3.1611 -d -t centos:7.3.1611 /bin/bash | |
docker exec -t -i centos_base /bin/bash | |
# in container | |
yum -y install epel-release | |
yum -y install environment-modules | |
yum -y install which make m4 bc | |
yum -y install gcc gcc-gfortran | |
yum -y install mvapich2-2.2 mvapich2-2.2-devel | |
yum -y install mpich-3.2 mpich-3.2-devel | |
yum -y install mpich mpich-devel |