代码改变世界

c++编译/连接/运行

2018-08-21 22:41 by ZealouSnesS, 530 阅读, 0 推荐, 收藏, 编辑
摘要:1、gcc命令&makefile语法&makefile编写: https://www.cnblogs.com/ycloneal/p/5230266.html 2、头文件&库文件: 一般的文件都有.h和.cpp文件,前者用于声明,后者用于定义。 声明也可以卸载.cpp文件里面,只是不方便其他.cpp文 阅读全文

module使用

2018-08-21 22:31 by ZealouSnesS, 278 阅读, 0 推荐, 收藏, 编辑
摘要:官方文档:http://modules.sourceforge.net/ 加载 module load 卸载 module unload 查看已加载 module list 查看可用 module avail 自定义模块: https://blog.csdn.net/kongxx/article/d 阅读全文

slurm使用

2018-08-21 22:18 by ZealouSnesS, 6666 阅读, 0 推荐, 收藏, 编辑
摘要:官方文档:https://slurm.schedmd.com/ 用户命令cheatsheet:https://slurm.schedmd.com/pdfs/summary.pdf 占用GPU salloc -n 8 -N 1 --gres=gpu:8 --partition=matrix1 -n C 阅读全文

ssh

2018-08-19 21:06 by ZealouSnesS, 157 阅读, 0 推荐, 收藏, 编辑
摘要:login: ssh username@server_ip -A -A means takes the local private keys to server ( so you have no need to login gitlab/github in server again ) start 阅读全文

【shell脚本 读取命令行参数】shell function/for in/for (())/string concat/has dir/rename using regex/if(())/exit/execute command and pass value to variable/execute python

2018-08-17 22:10 by ZealouSnesS, 361 阅读, 0 推荐, 收藏, 编辑
摘要:注意:shell脚本中的空格 参考: 比较字符串 https://www.jb51.net/article/56559.htm if then elif then else fi用法 https://blog.csdn.net/m0_37138008/article/details/72814543 阅读全文

linux库冲突解决方法 apt purge / aptitude purge

2018-08-17 21:49 by ZealouSnesS, 822 阅读, 0 推荐, 收藏, 编辑
摘要:remove libs: [apt-get purge remove] or [aptitude purge] how to use apt-get and aptitude https://blog.csdn.net/yili_xie/article/details/4803314 some er 阅读全文

解决ubuntu 无法挂载移动硬盘问题 unknown filesystem type 'exfat'

2018-08-17 21:30 by ZealouSnesS, 5008 阅读, 0 推荐, 收藏, 编辑
摘要:Ubuntu 13.10 或以上 安装exfat-fuse: sudo apt-get install exfat-fuse Ubuntu 13.04 或以下 sudo apt-add-repository ppa:relan/exfat sudo apt-get update sudo apt-g 阅读全文

how to deal with ^M in linux

2018-08-17 21:29 by ZealouSnesS, 251 阅读, 0 推荐, 收藏, 编辑
摘要:change windows file to linux file https://blog.csdn.net/xiongmaojiayou/article/details/7561881 阅读全文

divison in python2 and python3

2018-08-15 19:47 by ZealouSnesS, 235 阅读, 0 推荐, 收藏, 编辑
摘要:python2 python3 // means floor(xiaquzheng) 阅读全文

travelsal all files in a dir using recursion shell

2018-08-15 19:39 by ZealouSnesS, 186 阅读, 0 推荐, 收藏, 编辑
摘要:#!/bin/bash function getdir(){ for element in `ls $1` do dir_or_file=$1"/"$element if [ -d $dir_or_file ] then getdir $dir_or_file else ... 阅读全文
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 36 下一页