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
$dbo = $this->Job->getDatasource(); | |
$logs = $dbo->getLog(); | |
$lastLog = end($logs['log']); | |
debug( $lastLog['query'] ); |
# | |
# Working with branches | |
# | |
# Get the current branch name (not so useful in itself, but used in | |
# other aliases) | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
# Push the current branch to the remote "origin", and set it to track | |
# the upstream branch | |
publish = "!git push -u origin $(git branch-name)" |
Need to install these tools: | |
`sudo apt install exfat-utils exfat-fuse` | |
Use software `Disks` |
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);" |
Writing a plugin http://codex.wordpress.org/Writing_a_Plugin
The plugin API http://codex.wordpress.org/Plugin_API
Post Meta fields http://codex.wordpress.org/Function_Reference/post_meta_Function_Examples
Taxonomies
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 | |
#settings | |
EMAIL="me@example.com" | |
SUBJECT="THE EMAIL SUBJECT" | |
# date | |
DATETIME=$(date +%F_%T) | |
DATE=$(date +"%Y-%m-%d") |