This file contains hidden or 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
| #!/usr/bin/env bash | |
| # Download VMware Fusion for macOS without a Broadcom account. | |
| # | |
| # This script allows you to download various versions of VMware Fusion | |
| # from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3) | |
| # or from the archive.org VMware Workstation archive (versions 8.x.x+). | |
| # | |
| # Options: | |
| # -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org). |
This file contains hidden or 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 ***' |
This file contains hidden or 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 hidden or 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 hidden or 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)(); |