Simple overview of use/purpose.
An in-depth paragraph about your project and overview of use.
// ==UserScript== | |
// @name old reddit | |
// @namespace http://tampermonkey.net/ | |
// @version 0.6 | |
// @description seamlessly redirect to old.reddit.com | |
// @author Tavi | |
// @match https://www.reddit.com/* | |
// @icon https://www.google.com/s2/favicons?domain=reddit.com | |
// @grant none | |
// @run-at document-start |
// ==UserScript== | |
// @name ChatGPT Exporter | |
// @namespace https://chat.openai.com/chat | |
// @version 0.1 | |
// @description This script exports the chat history of the ChatGPT chatbot to a file. It is meant to be used with the Tampermonkey extension for Firefox and (Chrome untested). | |
// @author Louis Del Valle | |
// @match *://*/* | |
// @icon | |
// @grant none | |
// ==/UserScript== |
import numpy as np | |
import matplotlib.pyplot as plt | |
from scipy.interpolate import interp2d | |
from mpl_toolkits.mplot3d import Axes3D | |
# Define the grid point values | |
z = np.array( | |
[ | |
[1.016, 0.515, 0.112, -0.193, -0.431], | |
[0.907, 0.426, 0.054, -0.243, -0.478], |
This tutorial shows you how to create a C++ "Hello World" program that uses the fmt
library with CMake, vcpkg and Visual Studio. You'll install dependencies, configure, build, and run a simple application.
import os | |
import hashlib | |
from multiprocessing import Pool, cpu_count | |
def calculate_md5(file_path): | |
"""Calculate the MD5 hash of a file.""" | |
try: | |
with open(file_path, 'rb') as f: | |
md5_hash = hashlib.md5() | |
for chunk in iter(lambda: f.read(4096), b""): |
$envFilePath = ".env" | |
Get-Content $envFilePath | ForEach-Object { | |
$vol = $_ | |
Set-Variable -Name vol -Value $_ -Scope Global | |
docker run --rm --quiet --volume ${vol}:/backupdata --volume .\exported:/to_export busybox tar czf /to_export/${vol}.tar.gz /backupdata | |
if ($?) { | |
Write-Host "Backup of $vol completed successfully." | |
} | |
} | |
$del = Read-Host "Delete volume created during export? (y/n)" |
read -p "Enter drive path (ex: /dev/sdb): " drivepath | |
# wipe all partitions on 'drivepath' | |
sudo wipefs -a $drivepath | |
# create a gpt partition table, ext4 partition | |
sudo parted $drivepath mklabel gpt | |
sudo parted -a opt $drivepath mkpart primary ext4 0% 100% | |
sudo mkfs.ext4 drivepath\1 |
I had the same problem. What ended up happening is that I borked the bootloader on the M8P, and the CM4 could not see the M8P board when I ran the lsusb command. What I ended up doing was flashing the bootloader available in the Manta-M8P/V2.0 repo (link) with dfu-util.
If you haven't downloaded the bootloader yet, download it first: