Mount remote linux server folder
- sshfs-win
- WinFsp
Open Map Network drive from Win Explorer and add network path as
\\sshfs\user@host/../../path_from_root/
cmake_minimum_required(VERSION 3.14) | |
project(ProjectName) | |
set(CMAKE_CXX_STANDARD 14) | |
include_directories(OpenGL) | |
include_directories(OpenGL/include) # OpenGL/include has to contain the required OpenGL's .h files | |
include_directories(OpenGL/lib) # OpenGL/lib has to contain the required OpenGL's .lib files | |
# glut32.dll must be present in "project-directory/OpenGL/dll/" | |
add_custom_target(glutdlllib |
// for each loop | |
var a = ["a", "b", "c"]; | |
a.forEach(function(entry) { | |
console.log(entry); | |
return true; // works like break | |
}); |
print("------") |
### https://www.gitignore.io/ ### | |
## git config --global core.excludesfile ~/.gitignore_global ## | |
# LaTeX | |
*.aux | |
*.synctex.gz | |
*.gz | |
*.log | |
*.toc |
# mount annonymous smb share | |
mount -t cifs //<your shareserver name or ip>/sharefolder -o username=guest,password="" /path_to_mountpoint | |
# access annonymous smb share | |
smbclient //host/share -U " "%" " | |
smbclient //host/share -U guest% |
# init git repo | |
git init | |
# start git ignore | |
touch .gitignore | |
# clone repo | |
git clone <remote-repo-link> <local-repo-folder-name> |
# Handle line endings automatically for files detected as text | |
# and leave all files detected as binary untouched. | |
* text=auto | |
# Never modify line endings of our bash scripts | |
*.sh -crlf |
Mount remote linux server folder
\\sshfs\user@host/../../path_from_root/
docker-compose build | |
docker-compose up | |
docker-compose down |
# Common Contents of two text files ------------- | |
diff -y -w --strip-trailing-cr -i --minimal --color=always file1 file2 | grep -n -v'' "[|<>]" | |
diff --ignore-blank-lines --ignore-space-change --ignore-trailing-space --ignore-case --minimal --strip-trailing-cr --unchanged-group-format='@@ %dn, %df | |
%<' --old-group-format='' --new-group-format='' --changed-group-format='' file1 file2 | |
# ------------------------------------------- | |
# CSV like parsing | |
sed 's/,,/, ,/g;s/,,/, ,/g' data.csv | column -s, -t |