Run mdadm - this command is used to manage and monitor software RAID devices in linux.
mdadm --detail /dev/md0 or md<N>
mount -t ext4 /dev/md0 /share/MD0_DATA
Check disks
mdadm --examine /dev/sdd3
| from fastapi import FastAPI, Depends, Query | |
| from starlette.requests import Request | |
| from starlette.responses import JSONResponse | |
| import starlette.status | |
| from pydantic import BaseModel, validator | |
| import datetime | |
| from typing import List | |
| from dataclasses import dataclass, field | |
Run mdadm - this command is used to manage and monitor software RAID devices in linux.
mdadm --detail /dev/md0 or md<N>
mount -t ext4 /dev/md0 /share/MD0_DATA
Check disks
mdadm --examine /dev/sdd3
| Install WireGuard via whatever package manager you use. For me, I use apt. | |
| $ sudo add-apt-repository ppa:wireguard/wireguard | |
| $ sudo apt-get update | |
| $ sudo apt-get install wireguard | |
| MacOS | |
| $ brew install wireguard-tools | |
| Generate key your key pairs. The key pairs are just that, key pairs. They can be |
| 0-mail.com | |
| 007addict.com | |
| 020.co.uk | |
| 027168.com | |
| 0815.ru | |
| 0815.su | |
| 0clickemail.com | |
| 0sg.net | |
| 0wnd.net | |
| 0wnd.org |
| [Unit] | |
| Description=XMRig Daemon | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| GuessMainPID=no | |
| ExecStart=/usr/local/bin/xmrig -c /home/miner/config/config.json -l /home/miner/xmrig.log -B | |
| Restart=always | |
| User=miner |
| <IfModule mod_ssl.c> | |
| <VirtualHost *:443> | |
| ServerName subdomain.domain.ovh | |
| ServerAdmin webmaster@localhost | |
| DocumentRoot /var/www/html | |
| # Include external config for specific locationInclude | |
| Include /home/userapp/apache.conf/web.conf | |
| # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, | |
| # error, crit, alert, emerg. | |
| # It is also possible to configure the loglevel for particular |
| #/usr/bin/python3 | |
| """ Demonstration of logging feature for a Flask App. """ | |
| from logging.handlers import RotatingFileHandler | |
| from flask import Flask, request, jsonify | |
| from time import strftime | |
| __author__ = "@ivanleoncz" | |
| import logging |
| function onFormSubmit(e) { | |
| var data = { | |
| "form": { | |
| "id": e.source.getId(), | |
| "title": e.source.getTitle() ? e.source.getTitle() : "Untitled Form", | |
| "is_private": e.source.requiresLogin(), | |
| "is_published": e.source.isAcceptingResponses(), | |
| }, | |
| "response": { | |
| "id": e.response.getId(), |
| sudo apt-get update | |
| sudo apt-get install -y python-software-properties software-properties-common | |
| sudo add-apt-repository -y ppa:pi-rho/dev | |
| sudo apt-get update | |
| sudo apt-get install -y tmux=2.0-1~ppa1~t |
| #!/bin/bash -e | |
| # | |
| # Improved backup script for Ubiquiti UniFi controller | |
| # original source: http://wiki.ubnt.com/UniFi#Automated_Backup | |
| # | |
| # must contain: | |
| # username=<username> | |
| # password=<password> | |
| source ~/.unifi-backup |