create a script file:
touch /tmp/oneshot_example
copy and paste the content from Run script
session then run chmod +x /tmp/oneshot_example
and sudo /tmp/oneshot_example
Raw example can be found here
#!/bin/bash | |
sudo apt update | |
sudo apt install docker.io | |
sudo usermod -aG docker ${USER} | |
su - ${USER} | |
id -nG | |
docker version | |
docker run hello-world |
# Locate the Google C++ Mocking Framework. | |
# (This file is almost an identical copy of the original FindGTest.cmake file, | |
# feel free to use it as it is or modify it for your own needs.) | |
# | |
# | |
# Defines the following variables: | |
# | |
# GMOCK_FOUND - Found the Google Testing framework | |
# GMOCK_INCLUDE_DIRS - Include directories | |
# |
create a script file:
touch /tmp/oneshot_example
copy and paste the content from Run script
session then run chmod +x /tmp/oneshot_example
and sudo /tmp/oneshot_example
Raw example can be found here
In addition to the good documentation provided by cppreference
I had a doubt that the mutex would be locked in the waiting cycle, but because of the condition_variable::wait()
function,
it actually allows other threads to access the variable while no notifi_all()
method has been called.
#include <iostream>
#include <condition_variable>
The following script is meant to be used to create a debian package out of a CMake project well defined
GNU nano 2.9.3 build_deb_from_cmake.sh Modified
export DEBMAIL="[email protected]"
export DEBFULLNAME="Ignacio Ricart"
export DEB_BUILD_OPTIONS=nocheck