Skip to content

Instantly share code, notes, and snippets.

View aradi's full-sized avatar

Bálint Aradi aradi

View GitHub Profile
@aradi
aradi / custom.cmake
Last active July 16, 2020 09:32
DFTB+ custom cmake config for developers
# Get host name to enable host dependent settings
site_name(host_name)
#
# Overriding (pre-populating) options in config.cmake
#
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type (Release|Debug)")
option(WITH_API "Whether API should be built" FALSE)
@aradi
aradi / .emacs
Created May 17, 2017 19:42
Emacs Fortran settings
;;
;; Add this settings to your ~/.emacs file
;;
;; Fortran settings
(setq fortran-continuation-string "&")
(setq fortran-do-indent 2)
(setq fortran-if-indent 2)
(setq fortran-structure-indent 2)
@aradi
aradi / git-commit-msg-hook
Last active February 1, 2024 17:53
Git commit message hook
#!/bin/bash
################################################################################
# Store this file as .git/hooks/commit-msg in your repository in order to
# enforce checking for proper commit message format before actual commits. You
# may need to make the script executable by 'chmod +x .git/hooks/commit-msg'.
################################################################################
filename="$1"
copy=$(tempfile -p gitco)
cat $filename >> $copy
lineno=0