ssh-keygen
ssh-copy-id username@remote_host
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
| #!/bin/bash | |
| google-chrome --app="$(xclip -selection c -o)" |
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 credential.helper store |
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
| set tabstop=4 shiftwidth=4 expandtab | |
| set number | |
| autocmd Filetype go setlocal ts=4 sw=4 sts=0 noexpandtab | |
| set nocompatible | |
| filetype off | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize |
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 falcon | |
| import waitress | |
| import json | |
| class HelloWorldResource: | |
| def on_post(self, req, resp): | |
| content = req.stream.read().decode() | |
| if content == 'spam': | |
| resp.body = json.dumps('eggs') |
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 argparse | |
| import datetime | |
| import time | |
| def date(arg): | |
| return datetime.date.fromtimestamp(time.mktime(time.strptime(arg, '%d/%m/%Y'))) | |
| if __name__ == '__main__': |
Encrypt your PyPi password using:
echo -n "password1" | travis encrypt --add deploy.password
in your root dir.
.travis.yml
language: python
python:
- Put setup files in root of repo
- Put
.pypircin home folder - Run
python setup.py sdistin repo dir - Run
twine upload dist/*in repo dir
Make these changes in the cassandra.yaml config file:
start_rpc: true
rpc_address: 0.0.0.0
broadcast_rpc_address: [node-ip]
listen_address: [node-ip]
NewerOlder