rclone copy remote-rclone-name:remote-folder ./local-folder -v -P -u --dry-run
-u: no overwriting -P progress -v verbose --dry-run: ...
| ## | |
| # Author: Caio Marcellos | |
| # Email: caiocuritiba@gmail.com | |
| ## | |
| import os | |
| import numpy as np | |
| import json | |
| import glob | |
| from datetime import datetime | |
| from pathlib import Path |
| { | |
| /* | |
| // Place your snippets for Python here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| "Print to console": { | |
| "prefix": "log", | |
| "body": [ |
rclone copy remote-rclone-name:remote-folder ./local-folder -v -P -u --dry-run
-u: no overwriting -P progress -v verbose --dry-run: ...
| {%- extends 'full.tpl' -%} | |
| {% block input_group -%} | |
| <div class="input_hidden"> | |
| {{ super() }} | |
| </div> | |
| {% endblock input_group %} | |
| {%- block header -%} | |
| {{ super() }} |
| #!/usr/bin/env sh | |
| sudo apt-get install -y openssl build-essential xorg libssl-dev xfonts-75dpi | |
| wget "https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb" | |
| sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb |
https://computation.llnl.gov/projects/sundials/sundials-software (tested with 2.7)
sudo apt-get install cmake
| # Reference: https://svds.com/jupyter-notebook-best-practices-for-data-science/ | |
| import os | |
| from subprocess import check_call | |
| def post_save(model, os_path, contents_manager): | |
| """post-save hook for converting notebooks to .py scripts""" | |
| if model['type'] != 'notebook': | |
| return # only do this for notebooks | |
| d, fname = os.path.split(os_path) |
| """ | |
| Utility to run Pweave passing options: | |
| `python gen_report_pweave.py --help` | |
| usage: gen_report_pweave.py [-h] [-d OUTPUTDIR] [-t] [-r] [-o] source prefix | |
| Run pypublish to generate a pdf | |
| positional arguments: | |
| source python filename |
| # Create Visual Studio Code right click shortcut to open a folder in Nemo | |
| [Nemo Action] | |
| Name=Open in VS Code | |
| Comment=Open Folder in VS Code | |
| Quote=double | |
| Exec=code %P | |
| Selection = any | |
| Extensions=dir; |
| def cat_vector(args): | |
| noArray = False | |
| for y in args: | |
| if isinstance(y, np.ndarray): | |
| if y.size != 1: | |
| x = y | |
| noArray = True | |
| break | |
| if noArray == False: | |
| raise 'One of the args has to be a numpy array' |