wget -m --user="user@login" --password="Pa$$wo|^D" ftp://server.com/
- Download NcFTP
- ~/ncftp-3.2.6/bin/ncftpput -R -v -u "USERNAME" HOST REMOTE_FOLDER LOCAL_FOLDER
wget -m --user="user@login" --password="Pa$$wo|^D" ftp://server.com/
#!/bin/bash | |
# staging or production | |
DB_ENV="staging" | |
##### DO NOT EDIT FROM HERE ##### | |
# Find the container | |
CONTAINER="$(docker ps | grep c-${DB_ENV} | awk '{print $1}')" |
drush ev "drupal_set_installed_schema_version('aaa_sigel', 8109);" |
1. Install sshpass `sudo apt-get update && sudo apt-get install sshpass` | |
2. edit file `~/.bash_aliases` | |
3. add the line `alias name_of_alias='sshpass -f <(printf "%s\n" "our_password") ssh user@hostname' | |
4. compile your `.bash_aliases` file: `source .bash_aliases`` |
#!/bin/bash | |
# ---------------------------------- | |
# DEFINED - Global variables | |
# ---------------------------------- | |
# defined temporary folder | |
DBBACKUP="dbbackup" | |
# database configure |
#!/bin/bash | |
#settings | |
EMAIL="[email protected]" | |
SUBJECT="THE EMAIL SUBJECT" | |
# date | |
DATETIME=$(date +%F_%T) | |
DATE=$(date +"%Y-%m-%d") |
#!/bin/bash | |
# This setup script is to be used for new Wordpress project setup | |
# The file structure should be like this: | |
# /var/www/root-folder-project | |
# |_ /htdocs/ | |
# |_ /dev/setup.sh | |
# | |
# The website will be installed in the `htdocs` folder | |
# if you can't execute the script, try `chmod +x ./setup.sh` |
Use this command line: | |
wget -r -nH --cut-dirs=3 -nc --ftp-user=jfc-ftp --ask-password ftp://jfc.bitbakers-kunden.de//htdocs/wp-content/uploads | |
And give the password. Better to use --ask-password so that the password is not saved in the history of the bash |
**Create a Bing API key** | |
https://www.bingmapsportal.com/application/create/1354301 | |
**Download the plugins** | |
https://github.com/shramov/leaflet-plugins | |
```html | |
<!DOCTYPE html> | |
<html> | |
<head> |