All these files can be found in my dotfile repo
# First we must create the script we want to execute
# scripts should be stored in your $HOME/.local/bin
# The code below is called 'essentials' in my repo
Here I use ~/Development/Github as my workspace, and create two sub folders for
work
andpersonal
Note that if you want to use something different that~/Development/Github
, you must changed the paths in .gitconfig to match
# Contents of ~/.gitconfig
[includeIf "gitdir:~/Development/Github/personal/"]
path = ~/Development/Github/personal/.gitconfig.pers
[includeIf "gitdir:~/Development/Github/work/"]
/** | |
* The black jack code is from the youtube channel Dave's Garage. | |
* Here is the link to the video: https://youtu.be/b8V-WIjlScA | |
* Give him a like and subscribe, he makes great content. | |
* | |
* The link to Daves repository with the original code is here: https://github.com/davepl/blackjack | |
* | |
* In the video Dave does some manual iteration over a C style enum. | |
* At the time stamp 8:30 he says "One unfortunate part about C++ | |
* is that it doesn't provide a way to get the lowest and highest values in an enumeration". |
# ToolchainCortexA9.cmake | |
# This CMake module sets up the cross-compilation environment for Yocto/Poky toolchain. | |
# It can easily be adpated to any target architecture. | |
# | |
# Usage: cmake -D CMAKE_TOOLCHAIN_FILE=path/to/ToolchainCortexA9.cmake -B build | |
# Ensure the SYSROOTS environment variable points to the root of the Yocto/Poky SDK. | |
# Example: export SYSROOTS =/opt/poky/4.0.4/your-project/sysroots | |
if(NOT DEFINED ENV{SYSROOTS}) | |
message(FATAL_ERROR "'SYSROOTS' environment variable is not set. Please set it in your .bashrc [E.G] 'export SYSROOTS =/opt/poky/4.0.4/your-project/sysroots/'") |