jq is useful to slice, filter, map and transform structured json data.
brew install jq
Source: http://www.johnstowers.co.nz/blog/pages/bash-cheat-sheet
This file contains short tables of commonly used items in this shell. In most cases the information applies to both the Bourne shell (sh) and the newer bash shell.
Tests (for ifs and loops) are done with [ ] or with the test command.
| #!/usr/bin/env bash | |
| # | |
| # Author: Stefan Buck | |
| # License: MIT | |
| # https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
| # | |
| # | |
| # This script accepts the following parameters: | |
| # | |
| # * owner |
| // c - __attribute__((constructor)) equivalent in VC? - Stack Overflow | |
| // http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc/2390626#2390626 | |
| // Rev.5 | |
| // Initializer/finalizer sample for MSVC and GCC/Clang. | |
| // 2010-2016 Joe Lowe. Released into the public domain. | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #ifdef __cplusplus |
| #include <string> | |
| #include <cstring> | |
| #include <vector> | |
| #include <sstream> | |
| #include <cstdio> | |
| #include <iostream> | |
| #ifdef WIN32 | |
| # include <fcntl.h> | |
| # include <windows.h> |
| #include <iostream> | |
| #include <limits.h> | |
| #include <stdlib.h> | |
| #include <dlfcn.h> | |
| #include <string.h> | |
| #include <set> | |
| #include <dirent.h> | |
| #include <sys/stat.h> | |
| #include "coreclrhost.h" |
http://aperiodic.net/screen/quick_reference
How to Navigate, copy & paste content?
within screen sessions: Cntl a + [ : To start navigation using up/down arrow Press Space bar: To select content starting position
| cmake_minimum_required(VERSION 3.9.0) | |
| project(proj0) | |
| file(GLOB_RECURSE sources ../src/*.cpp) | |
| file(GLOB_RECURSE sources_test ../src/test/*.cpp) | |
| file(GLOB_RECURSE data ../resources/*) | |
| add_executable(main ${sources} ${data}) | |
| set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/../bin) |