Skip to content

Instantly share code, notes, and snippets.

@Ronald33
Ronald33 / vim_cheatsheet.md
Created December 12, 2023 19:14 — forked from awidegreen/vim_cheatsheet.md
Vim shortcuts

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@Ronald33
Ronald33 / build-hdf5.sh
Created May 5, 2023 16:15 — forked from jyalim/build-hdf5.sh
Build HDF5 with Intel Compilers
#!/usr/bin/env bash
# https://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-hdf5-with-intel-compilers
## PREREQS
# 1) szip 2.1
export CC=icc
export CXX=icpc
export FC=ifort
export CFLAGS='-O3 -xHost -ip'
export CXXFLAGS='-O3 -xHost -ip'

tl;dr

Gather Clusters Information

# Gather all simple information
$ sinfo

# Display node and other information
$ sinfo -Nl
@Ronald33
Ronald33 / Dockerfile
Created March 12, 2021 22:28 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
@Ronald33
Ronald33 / vh.local.conf
Last active May 2, 2019 23:55
Virtual host - Apache
<VirtualHost *:88>
ServerName vh.local
# ServerAlias www.vh.local
DocumentRoot /home/ronald/vh/1
ErrorLog /home/ronald/vh/1/error.log
CustomLog /home/ronald/vh/1/access.log common
<Directory /home/ronald/vh/1>
Options -Indexes +FollowSymLinks -MultiViews
# DirectoryIndex index.php
AllowOverride All