This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
List, | |
CellMeasurer, | |
CellMeasurerCache, | |
InfiniteLoader, | |
AutoSizer | |
} from 'react-virtualized'; | |
import Item from './Item'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client"; | |
import { Fragment } from 'react' | |
import { Menu, Popover, Transition } from '@headlessui/react' | |
import { | |
ChatBubbleLeftEllipsisIcon, | |
CodeBracketIcon, | |
EllipsisVerticalIcon, | |
EyeIcon, | |
FlagIcon, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::process::Stdio; | |
use tokio::{process::{Child, Command as TokioCommand, ChildStdout, ChildStderr}, io::BufReader}; | |
use crate::errors::provisioner_errors::ProvisionerError; | |
pub struct Shell { | |
pub command: String | |
} | |
impl Shell { | |
pub async fn execute(&self) -> Result<(), ProvisionerError> { |
OlderNewer