Skip to content

Instantly share code, notes, and snippets.

View antony-jr's full-sized avatar

Antony Jr antony-jr

View GitHub Profile
@rafamanzo
rafamanzo / CMakeLists.txt
Last active September 17, 2024 21:31
Example on how to read and write NIfTI images using ITK
cmake_minimum_required(VERSION 3.0)
project(ITKNIfTI)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
add_executable(itk_nifti main.cxx)
target_link_libraries(itk_nifti ${ITK_LIBRARIES})
@Changaco
Changaco / btrfs-undelete
Last active November 2, 2024 13:07
btrfs-undelete
#!/bin/bash
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <[email protected]>
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2
echo