摘要:
```
ssh-keygen -t rsa
paste key to github website
after config ssh key
git remote set-url origin git@github.com:username/repo.git
``` 阅读全文
摘要:
1 stop firewalld 2 install iptables 3 accept 80, 22, 8080 4 drop attack ip 5 limit speed 5 save and restart iptables 阅读全文
摘要:
/etc/ssh/sshd_config generate client public and private key Step 3 prevent user from login by password /etc/sshd/sshd_config modify mode 阅读全文
摘要:
```
#!/usr/bin/env python import sys, paramiko hostname = ''
password = ''
command = 'ls' username = ""
port = 22 try: client = paramiko.SSHClient() client.load_system_host_keys() clie... 阅读全文
摘要:
``` go build ldflags " s w” [ 阅读全文
摘要:
``` let py_version = system('python V 2 &1 | grep Po " (? 阅读全文
摘要:
```
download github file.zip cd file
git init
git add .
git commit -m "init" set rtp+=$HOME/.vim/bundle/Vundle.vim/
call vundle#begin('$HOME/.vim/bundle/') Plugin 'file://D:/mtl/vim/jedi-vim' cal... 阅读全文
摘要:
```
dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 mkswap /swapfile1 swapon /swapfile1 vi /etc/fstab # edit /etc/fstab file, add the following line /swapfile1 none swap sw 0 0 # save and qui... 阅读全文
摘要:
``` $(document).ready(function () { $('#example').DataTable({ "ajax": "http://127.0.0.1:8080/api/resources/", "columns": [ { "data": "name", ... 阅读全文
摘要:
```
class ResourceSetView(viewsets.ModelViewSet): queryset = models.Resources.objects.all() serializer_class = serializers.ResourceSerializer def list(self, request, *args, **kwargs): ... 阅读全文