sudo apt install cloc
exemple
cloc project-root-dir --exclude-dir=.idea,build,cmake-build-debug,any-external-lib
alias rungist='function _rungist(){ GIST_URL=$1; shift; bash <(curl -s ${GIST_URL}) "$@"; }; _rungist' |
#include <gmock/gmock.h> | |
#include <gtest/gtest.h> | |
class MyClass { | |
public: | |
virtual ~MyClass() = default; | |
virtual void methodA() { | |
std::cout << "Base MyClass::methodA called\n"; // Confirming methodA execution | |
methodB(); |
docker run -p 8010:8010 -p 9000:9000 -p 9443:9443 --detach --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v /volume1/docker/portainer:/data portainer/portainer-ee:latest |
# Dist updates / upgrade | |
sudo apt update -y | |
sudo apt upgrade -y | |
# Sublime Text and CUDA apt channels | |
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
wget -q https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb | |
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub |
git init | |
git remote add -f origin <url_github> | |
git config core.sparseCheckout true | |
echo "dir1/dir2/dir3" >> .git/info/sparse-checkout | |
git pull origin master |
cd {PATH} | |
git init | |
git commit -m 'I fucked you' --allow-empty | |
git remote add origin {url} | |
git push --force --set-upstream origin master |
SET FOREIGN_KEY_CHECKS = 0; |