We have a compressed sql dump with a size of 10 Gb and we need to upload into free storage limited by 1Go each upload.
dump.tar (or any other folder, tar, file, directory, etc)
dump_sql.tar. (will be suffixed by each part id)
/** Connect to database and generate dummy tables to fix this issue. **/ | |
CREATE TABLE `node__field_dummy_drupal_8_2_3` (`fid` int(11) NOT NULL AUTO_INCREMENT, | |
`uuid` varchar(128) CHARACTER | |
SET ascii NOT NULL, | |
`pid` varchar(50) NOT NULL, | |
`url` varchar(191) NOT NULL, | |
`name` varchar(255) DEFAULT NULL, | |
`metadata` longtext, | |
`created` int(11) DEFAULT NULL, | |
`deleted` int(11) DEFAULT NULL, |
git config merge.renameLimit 999999 | |
git config --unset merge.renameLimit |
git status -- . ':!PATH' |
# https://www.cyberciti.biz/faq/unix-linux-grep-word-count-command/ | |
grep -o -w 'foo' bar.txt | wc -w |
# Just replace SEARCH_PROCESS_SCRIPT_NAME by the script you want to stop | |
# https://unix.stackexchange.com/a/50573 | |
SEARCH_PROCESS_SCRIPT_NAME="php /var/www/application/bin/script.php" | |
for pid in $(ps -ef | grep $SEARCH_PROCESS_SCRIPT_NAME | awk '{print $2}'); do sudo kill -9 $pid; done |
watch -n 2 'ps aux | grep node' |
<html> | |
<head> | |
<title>API Example</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var accessToken = "<your agent's client access token>"; | |
var baseUrl = "https://api.api.ai/v1/"; |
curl --include \ | |
--no-buffer \ | |
--header "Connection: Upgrade" \ | |
--header "Upgrade: websocket" \ | |
--header "Host: example.com:80" \ | |
--header "Origin: http://example.com:80" \ | |
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ | |
--header "Sec-WebSocket-Version: 13" \ | |
http://example.com:80/ |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name you.server.com; |