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
#include "mainwindow.h" | |
#include <QApplication> | |
#include "mainwindow.h" | |
#include <QApplication> | |
#include <QDesktopWidget> | |
#include <cstdio> | |
#include <QMessageBox> | |
typedef struct{ |
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
find_package(Git) | |
if(GIT_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.git") | |
INCLUDE(GetGitRevisionDescription) | |
EXECUTE_PROCESS(COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD OUTPUT_VARIABLE SHORT_SHA OUTPUT_STRIP_TRAILING_WHITESPACE) | |
SET(REVISION ${SHORT_SHA} CACHE STRING "git short sha" FORCE) | |
# only use the plugin to tie the configure state to the sha to force rebuilds | |
# of files that depend on version.h | |
include(GetGitRevisionDescription) |
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
echo "######## Current branch: $(git branch | grep -w \*)" &&\ | |
git status &&\ | |
echo -e "\n######## Fetching..." && git fetch &&\ | |
git branch -a &&\ | |
echo -e "\n######## Checkout to [master]" && git checkout master &&\ | |
echo -e "\n######## Pull remote repo..." && git pull && git status && git log --pretty=short -n 5 &&\ | |
echo -e "\n######## Checkout to last branch" && git checkout - && git status && git log -n 3 |
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
ADD sources.list /etc/apt/sources.list | |
# Install. | |
RUN \ | |
apt-get update && \ | |
apt-get -y upgrade && \ | |
apt-get install -y build-essential && \ | |
apt-get install -y software-properties-common && \ | |
apt-get install -y byobu curl git htop unzip vim wget && \ | |
rm -rf /var/lib/apt/lists/* |