- by Lee2sman
- Updated 2017-09-18
#!/usr/bin/env bashfor portability, or less good,#!/bin/bash
| #!/bin/bash | |
| # Before running this make sure Caddy and Docker are installed: | |
| # https://gist.github.com/codycraven/bba48dcdcd87a9df4e2bb87834b5a65d | |
| # https://gist.github.com/codycraven/24752be91b676b1c193771a652f4b60d | |
| # Get sudo | |
| sudo echo | |
| # Manual configuration |
| 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) |
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
| #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" |
| #include <string> | |
| #include <cstring> | |
| #include <vector> | |
| #include <sstream> | |
| #include <cstdio> | |
| #include <iostream> | |
| #ifdef WIN32 | |
| # include <fcntl.h> | |
| # include <windows.h> |
| // 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 |
| #!/usr/bin/env bash | |
| # | |
| # Author: Stefan Buck | |
| # License: MIT | |
| # https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
| # | |
| # | |
| # This script accepts the following parameters: | |
| # | |
| # * owner |
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.