This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef CATCH_WRAPPER | |
#define CATCH_WRAPPER | |
template <class T, void (T::*FUNC)()> | |
class CatchWrapper { | |
public: | |
static int wrap(T* instance) { | |
int ret(-1); | |
try { | |
(instance->*FUNC)(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if &compatible | |
set nocompatible | |
endif | |
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount -t cifs -o username=<USER>,uid=$(id -u),gid=$(id -g) //<IP>/home qnap_data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo '*** updating rust ***' | |
rustup update | |
rustup self update | |
echo '*** adding armv7 to rust target ***' | |
rustup target add armv7-unknown-linux-gnueabihf | |
echo '*** installing cross-compiling toolchain and headers ***' |