Skip to content

Instantly share code, notes, and snippets.

View alvarovm's full-sized avatar
🏠
Working from home

Alvaro Vazquez-Mayagoitia alvarovm

🏠
Working from home
View GitHub Profile
@alvarovm
alvarovm / make.sys.BGQ.Mira
Last active June 16, 2016 22:19
BGQ Makefiles and other stuff
# make.sys. Generated from make.sys.in by configure.
# compilation rules
.SUFFIXES :
.SUFFIXES : .o .c .f .f90
# most fortran compilers can directly preprocess c-like directives: use
# $(MPIF90) $(F90FLAGS) -c $<
# if explicit preprocessing by the C preprocessor is needed, use:
How to extend a HDD in vwmare workstation 15.5 (https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html)
with a Ubuntu as host and Windows10 guest
*Change size of Guest partition in vmware
#https://communities.vmware.com/thread/171041
*Add this line:
bios.bootDelay = "5000"
to vmx-file, vmx-file is located in the guest machine files directory
# Installing Tensorflow2.1 and Pytorch1.4
#On Cooley, I installed everything from source or with pip. Several packages from softenv are also included:
+gcc-7.1.0
+cmake-3.3.0
#Python
#Python is version 3.6.10, installed from source with optimizations:
export INSTALL_TOP=/soft/datascience/DL_frameworks/installation/
ssh -D 8888 [email protected]
Firefox
-> Preferences
-> Connection Settings
->Manual proxy configuration
-> SOCKS HOST:localhost
-> Port: 8888
Get https://github.com/sshuttle/sshuttle
THIS=$(pwd)
git clone https://github.com/alcf-perfengr/iprof.git
git clone https://github.com/intel/opencl-intercept-layer.git
cd opencl-intercept-layer
cmake -H. -Bbuild . -DENABLE_CLILOADER=ON
cd build
make && make install
export PATH=${THIS}/opencl-intercept-layer-master/install/bin:${PATH}
export PATH=${THIS}/iprof:${PATH}
g=0
t=0
ff=40000
#ff=5
destiny=output.save.$t
mkdir $destiny
Water dimer example
===================
Calculations needed:
E_water1
E_water1_ghost
E_water2
E_water2_ghost
E_dimer
@alvarovm
alvarovm / ssh-confs-tweaks.md
Last active May 5, 2021 16:54
SSH notes and trics
Columna Fabrizio Mejía Madrid en la Jornada
https://www.jornada.com.mx/2020/08/15/opinion/014a1pol
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://i-like-robots.github.io/EasyZoom/dist/easyzoom.js"></script>
<div class="easyzoom easyzoom--overlay">
<a href="http://cssglobe.com/lab/easyzoom/small.jpg" >
<img src="http://cssglobe.com/lab/easyzoom/large.jpg" alt="" height="300"/>
</a>
</div>