Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
| #!/bin/bash | |
| # Konfiguration | |
| SOURCE_DIR="/run/media/alca/store/" | |
| TARGET_DIR="/run/media/alca/store/mp3" | |
| MAX_SIZE_MB=650 # Etwas unter 700MB für Sicherheit | |
| BURN_SPEED=24 # Brenngeschwindigkeit | |
| # Farben für Output | |
| RED='\033[0;31m' |
| ╭─alca@aLca in repo: ollama on main [?] via via v3.12.3 (.venv) took 8m1s | |
| ✦ ╰─λ sudo ollama create m6 -f MultiModel && ollama run m6 | |
| [sudo] Passwort für alca: | |
| 2024/04/29 00:53:42 parser.go:73: WARN Unknown command: | |
| PARAMETER | |
| 2024/04/29 00:53:42 parser.go:73: WARN Unknown command: <|im_user|> | |
| transferring model data | |
| reading model metadata | |
| creating template layer | |
| creating system layer |
| { | |
| "max_open_trades": -1, | |
| "stake_currency": "USDT", | |
| "stake_amount": 200, | |
| "tradable_balance_ratio": 0.99, | |
| "fiat_display_currency": "USD", | |
| "dry_run": true, | |
| "dry_run_wallet": 1000, | |
| "cancel_open_orders_on_exit": false, |
| ============================================================== BACKTESTING REPORT ============================================================== | |
| | Pair | Entries | Avg Profit % | Cum Profit % | Tot Profit USDT | Tot Profit % | Avg Duration | Win Draw Loss Win% | | |
| |--------------+-----------+----------------+----------------+-------------------+----------------+------------------+-------------------------| | |
| | ONE/USDT | 706 | 0.78 | 551.15 | 60.687 | 6.07 | 23:09:00 | 407 175 124 57.6 | | |
| | RNDR/USDT | 414 | 1.08 | 448.06 | 49.335 | 4.93 | 1 day, 0:30:00 | 255 95 64 61.6 | | |
| | VRA/USDT | 552 | 0.80 | 442.49 | 48.723 | 4.87 | 1 day, 3:50:00 | 342 117 93 62.0 | | |
| | AGIX/USDT | 350 | 1.03 | 359.92 | 39.631 | 3.96 | 1 day, 2:07:00 | 205 89 56 58.6 | | |
| | GALAX |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # --- ↑↓ Do not remove these libs ↑↓ ----------------------------------------------------------------------------------- | |
| import argparse | |
| import json | |
| import time | |
| import re | |
| import requests | |
| # ---- ↑ Do not remove these libs ↑ ------------------------------------------------------------------------------------ |
| // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ | |
| // ©jdehorty | |
| // @version=5 | |
| indicator('Machine Learning: Lorentzian Classification', 'Lorentzian Classification', true, precision=4, max_labels_count=500) | |
| import jdehorty/MLExtensions/2 as ml | |
| import jdehorty/KernelFunctions/2 as kernels | |
| // ==================== |
Use Python to:
| // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ | |
| //Original script | |
| //https://www.tradingview.com/script/wYknDlLx-super-Z/ | |
| //@version=4 | |
| strategy("Super Z++ Strategy", shorttitle="Super Z++",overlay=true, initial_capital=50, slippage=3, calc_on_every_tick=true, calc_on_order_fills=true, default_qty_type=strategy.fixed, default_qty_value=5, pyramiding = 1, commission_type=strategy.commission.percent, commission_value=0.07) | |
| // === INPUT BACKTEST RANGE === | |
| useDate = input(true, title='Use Date', type=input.bool) | |
| FromMonth = input(defval=6, title="From Month", minval=1, maxval=12) |
| // This Regexp tries to grep a price from a string. | |
| // 1. The number must makes sense. it may contain "." or "," i.e 1 1.000,99 10,0 etc | |
| // 2. The String must conatin a currency identifier like EUR,USD,€ or $. | |
| // 2a) The currency identifer may be at the begining or at the end of the matching string | |
| // 2b) There may be a space between value and currency identifier | |
| // This regexp is based upon http://stackoverflow.com/questions/1547574/regex-for-prices | |
| (USD|EUR|€|\$|£)\s?(\d{1,}(?:[.,]\d{3})*(?:[.,]\d{2}))|(\d{1,3}(?:[.,]\d{3})*(?:[.,]\d{2})?)\s?(USD|EUR) | |
| updated Version (also matches numbers without delimiters in between like $2 $34 thx PepsiX for pointing out this issue: |
install nodejs 12
run with node app.js cameraRootDir
Almost works with Blitzwolf BW-SHC2 (no audio for me).
Not tested on windows, but probably changing the ffmpeg in the first two function-returns to something like ffmpeg.exe will make this work.
The script will recursively walk on every sudir, group the files ased on parent dir,