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
[Unit] | |
Description=Mount hdd1 | |
# After=local-fs.target | |
[Mount] | |
What=/dev/sda1 | |
Where=/hdd1 | |
Type=ntfs | |
Options=defaults,uid=1000,gid=1000 |
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
rsync -av --delete --info=progress2 -e 'ssh -p ****' ./music/ ***@***.***:/hdd1/musiclib/ |
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
devices: ( | |
{ | |
name: "Wireless Mouse MX Master 3"; | |
smartshift: | |
{ | |
on: true; | |
threshold: 10; | |
}; | |
hiresscroll: | |
{ |
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
export all_proxy=socks5://127.0.0.1:1080 | |
nohup brook relay -f :2334 -t 127.0.0.1:1099& | |
ss server config json | |
sudo systemctl status shadowsocks-libev-server@config.service | |
{ | |
"server": ["[::0]", "0.0.0.0"], | |
"server_port": 1111, | |
"password": "0000", |
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
sudo docker run -d --name nextcloud --restart=always -p 1111:80 -v /home/cy304/docker/nextcloud/:/var/www/html nextcloud |
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
import os | |
import logging | |
""" | |
按指定格式批量重命名的脚本. | |
参数说明: | |
path: 要重命名的文件所在的目录 | |
ori: 是一个列表, 包含了要替换掉的词 | |
fmt: 是一个列表, 包含了要替换成的词 | |
rename_p: 是是否进行重命名 |
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
ssh: | |
papp_cloud ssh pg2332@cg2 | |
list jobs submitted: | |
squeue | |
submit a job: | |
sbatch -p v2_test job.sh | |
batch file: |
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
Centos7 | |
firewall | |
firewall-cmd --list-ports | |
systemctl start/status/stop firewall | |
在linux下,使用ps和grep查看httpd服务 | |
# ps aux | grep httpd | |
查看端口 | |
netstat -anp | grep 80 |
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
longin | |
ssh rooT@140.143.53.191 | |
jupyter notebook --generate-config (先生成配置文件) | |
jupyter notebook password (set password) | |
vi /root/.jupyter/jupyter_notebook_config.py | |
c.NotebookApp.ip='*' | |
c.NotebookApp.password = u'sha:ce...刚才复制的那个密文' | |
c.NotebookApp.open_browser = False | |
c.NotebookApp.port =8888 #可自行指定一个端口, 访问时使用该端口 |
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
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
NewerOlder