Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Hirsch scivision

View GitHub Profile
@scivision
scivision / windows_openssh_authorized_keys_acl.ps1
Created Aug 11, 2020
Set permissions ACL for Windows OpenSSH administrators_authorized_keys
View windows_openssh_authorized_keys_acl.ps1
# this script is copied from:
# https://www.concurrency.com/blog/may-2019/key-based-authentication-for-openssh-on-windows
# Script by Mitchell Grande of Concurrency.com
#
$acl = Get-Acl C:\ProgramData\ssh\administrators_authorized_keys
$acl.SetAccessRuleProtection($true, $false)
$administratorsRule = New-Object system.security.accesscontrol.filesystemaccessrule("Administrators","FullControl","Allow")
$systemRule = New-Object system.security.accesscontrol.filesystemaccessrule("SYSTEM","FullControl","Allow")
$acl.SetAccessRule($administratorsRule)
$acl.SetAccessRule($systemRule)
@scivision
scivision / gfortran7wsl:testlog.txt
Last active Dec 1, 2019
Gemini Meson test false failures
View gfortran7wsl:testlog.txt
$ meson test -C build --suite 2d_fang -v
ninja: Entering directory `/mnt/c/code/gemini/build'
[13/13] Linking target gemini_glow.bin.
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0
/mnt/c/code/gemini/build/gemini_fang.bin Process: 0 / 0
/mnt/c/code/gemini/initialize/test2d_fang/config.nml: simulation ymd is: 2013/02/20
/mnt/c/code/gemini/initialize/test2d_fang/config.nml: simulation ymd is: 2013/02/20
@scivision
scivision / cmake_build_macos.log
Created Aug 16, 2019
Gemini build and test: MacOS with CMake
View cmake_build_macos.log
# MacOS 10.14.6
$ cmake --version
cmake version 3.15.2
$ git rev-parse --short HEAD
bf39419
$ cmake -B build_cmake
-- The C compiler identification is AppleClang 10.0.1.10010046
@scivision
scivision / CMakeError.log
Last active Jul 30, 2019
Gemini GLOW errors on git rev 99c41d18
View CMakeError.log
$ ctest --output-on-failure
Test project /home/box/code/gemini/build
Start 7: MPIexist
1/13 Test #7: MPIexist ......................... Passed 0.61 sec
Start 8: MUMPS
2/13 Test #8: MUMPS ............................ Passed 1.02 sec
Start 11: DateFormats
3/13 Test #11: DateFormats ...................... Passed 0.04 sec
Start 1: GeminiGlow2D-NP2
4/13 Test #1: GeminiGlow2D-NP2 ................. Passed 77.08 sec
@scivision
scivision / common_failures.log
Last active Aug 21, 2019
Meson PGI debugging
View common_failures.log
# These were probably broken since I added PGI to Meson. I did not run the project tests as I should have back then, just that PGI worked with my projects and Meson.
# Here is a result on CentOS 7 from:
$ FC=pgfortran CC=pgcc CXX=pgc++ python run_project_tests.py --only common
Succeeded test: test cases/common/1 trivial
Succeeded test: test cases/common/2 cpp
Succeeded test: test cases/common/3 static
Succeeded test: test cases/common/4 shared
Succeeded test: test cases/common/5 linkstatic
@scivision
scivision / .gitattributes
Last active Sep 14, 2020
End CRLF line ending hell for Windows + Cygwin or WSL and any other OS https://www.scivision.dev/git-line-endings-windows-cygwin-wsl/
View .gitattributes
.gitattributes text eol=lf
.gitignore text eol=lf
*.build text eol=lf
*.c text eol=lf
*.cmake text eol=lf
*.cpp text eol=lf
*.csv text eol=lf
*.f text eol=lf
*.f90 text eol=lf
*.for text eol=lf
@scivision
scivision / 2d_single.log
Created Dec 17, 2018
Gemini failures Intel compiler
View 2d_single.log
$ ./gemini initialize/test2d/config.ini /tmp/2dt
Process: 0 of: 0 online...
initialize/test2d/config.ini: simulation ymd is: 2013/02/20
start time is: 18000.000
duration is: 300.000
output every: 60.000
...using input data files:
../simulations/zenodo2d/inputs/simsize.dat
../simulations/zenodo2d/inputs/simgrid.dat
../simulations/zenodo2d/inputs/2Dtest_lowres_ICs.dat
@scivision
scivision / out-single-thread-2d.log
Last active Dec 17, 2018
Gemini failures GNU+MKL
View out-single-thread-2d.log
$ ./gemini initialize/test2d/config.ini /tmp/2dt
Process: 0 of: 0 online...
initialize/test2d/config.ini: simulation ymd is: 2013/02/20
start time is: 18000.000
duration is: 300.000
output every: 60.000
...using input data files:
../simulations/zenodo2d/inputs/simsize.dat
../simulations/zenodo2d/inputs/simgrid.dat
../simulations/zenodo2d/inputs/2Dtest_lowres_ICs.dat
View octave3.8.2_configure.log
Octave is now configured for x86_64-unknown-linux-gnu
Source directory: .
Installation prefix: /home/thin/.local/octave38
C compiler: gcc -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread
C++ compiler: g++ -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2 -pthread
Fortran compiler: gfortran -O
Fortran libraries: -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L. -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lgfortran -lm -lquadmath
Lex libraries:
LIBS: -lm
View octave4.4.1_configure.log
configure:
Octave is now configured for x86_64-pc-linux-gnu
Source directory: .
Installation prefix: ~/.local/octave
C compiler: gcc -pthread -fopenmp -Wall -W -Wshadow -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual -g -O2
C++ compiler: g++ -pthread -fopenmp -Wall -W -Wshadow -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual -g -O2
Fortran compiler: gfortran -g -O2
Fortran libraries: -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. -lgfortran -lm -lquadmath
You can’t perform that action at this time.