0%

安装XQuartz

ssh -X

feh

###RuntimeError: tried to construct a tensor from a int sequence, but found an item of type numpy.int64 at index (0)

Using .tolist() for numpy array as follows.

Python中一切皆对象

1
2
pgrep -lf sshfs
sudo diskutil unmount force /mount/path

安装

1
sudo apt-get install proxychains

编辑conf文件

编辑/etc/proxychains.conf

1
sudo vim /etc/proxychains.conf

在最后的ProxyList里加入Shawdowsocks的代理设置:

1
socks5 127.0.0.1 1080
  1. 编辑/usr/bin/proxychains
    1
    2
    3
    4
    修改
    LD_PRELOAD=libproxychains.so.3
    为(根据自己系统里的libproxychains.so.3设置)
    LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libproxychains.so.3
  2. 使用,只需要在运行程序的命令前加上proxychains即可
    1
    proxychains dropbox start -i

https://www.jianshu.com/p/bd898d4ae415

gpu 显卡进程占用

1
sudo pkill python

mac

1
2
brew cask install osxfuse
sudo apt-get install sshfs

1
tar -jxvf archive_name.tar.bz2

1
model = torch.nn.DataParallel(model).cuda()