lerna publish --conventional-prerelease
will publish a pre-release
lerna publish --conventional-graduate
will move from pre-release to release
Resources
Action | Command |
---|---|
open file directly at the end of file | less +G file |
move cursor to the end of file | shift + G |
keep colors in the log | less -r file |
Syntax:
ssh -L localport:host:hostport user@ssh_server -N
where:
Ban after a certain number of login attempts failed.
Some settings:
find srch_dir -cmin -60 # change time
find srch_dir -mmin -60 # modification time
find srch_dir -amin -60 # access time
# Minute Hour Day of Month Month Day of Week Command
# (0-59) (0-23) (1-31) (1-12 or Jan-Dec) (0-6 or Sun-Sat)
0 2 12 * * /usr/bin/find
class MyPredictionResource: | |
def on_get(self, req, resp): | |
"""Handles GET requests""" | |
resp.body= json.dumps({"prediction": "you will sell €400"}) | |
api = falcon.API() | |
api.add_route('/my-prediction', MyPredictionResource()) | |
# run with `gunicorn --workers 4 server:api ./file.py` |