To download certain file:
To list a directory:
To download certain file:
To list a directory:
Brasil: [Tipo do Logradouro] [Nome do Logradouro], [Número do Lote], [Complemento (se houver)] - [Nome do Bairro], [Cidade]-[UF] [CEP]
US: [Responsável pela Casa] Se o destinatário não for o responsável pela casa: c/o [Destinatário] Se tem o [PO box code]: [PO box code] Senao: [numero] [Rua], [complemento] [Cidade], [Estado], [ZIP code] AddressLine 1: [numero] [Rua],[Cidade], [Estado abreviado], [ZIP code] AddressLine 2: [complemento]
vendor/bin/doctrine orm:generate:entities [destination folder path]: generate Entities Classes files from the current Metadata files.
source: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/tools.html
#!/bin/bash
PASSWORD=XXXXXX
HOST=XXXXXX
USER=XXXXXX
DATABASE=databasename
DB_FILE=dump.sql
EXCLUDED_TABLES=(
table1
table2
table3
table4
tableN
)
IGNORED_TABLES_STRING=''
for TABLE in "${EXCLUDED_TABLES[@]}"
do :
IGNORED_TABLES_STRING+=" --ignore-table=${DATABASE}.${TABLE}"
done
echo "Dump structure"
mysqldump --host=${HOST} --user=${USER} --password=${PASSWORD} --single-transaction --no-data ${DATABASE} > ${DB_FILE}
echo "Dump content"
mysqldump --host=${HOST} --user=${USER} --password=${PASSWORD} ${DATABASE} --no-create-info ${IGNORED_TABLES_STRING} >> ${DB_FILE}
Original source: https://stackoverflow.com/questions/425158/skip-certain-tables-with-mysqldump/425172
SET FOREIGN_KEY_CHECKS = 0;
SET @tables = NULL;
SELECT GROUP_CONCAT(table_schema, '.', table_name) INTO @tables
FROM information_schema.tables
WHERE table_schema = '[dbName]'; -- specify DB name here.
SET @tables = CONCAT('DROP TABLE ', @tables);
PREPARE stmt FROM @tables;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
SET FOREIGN_KEY_CHECKS = 1;
$ shopt -s checkwinsize $ ls $ shopt -u checkwinsize
# adduser [userName]
Note: adduser is a Perl script the helps you tu create the user itselfs and setup their personal informations.
# userdel [-r] [userName]
Note: If -r arg was passed, userdel will remove the [userName] home directory
# usermod -a -G [group1[,group2...]] [user]
# gpasswd -d [user] [group]
-D --download Download from internet
-L --local-install Install from local directory
-s --site Download site
-O --only-site Ignore all sites except for -s
-R --root Root installation directory
-x --remove-packages Specify packages to uninstall
-c --remove-categories Specify categories to uninstall
-P --packages Specify packages to install
-C --categories Specify entire categories to install
-p --proxy HTTP/FTP proxy (host:port)
-a --arch architecture to install (x86_64 or x86)
-q --quiet-mode Unattended setup mode
-M --package-manager Semi-attended chooser-only mode
-B --no-admin Do not check for and enforce running as
Administrator
-h --help print help
-l --local-package-dir Local package directory
-r --no-replaceonreboot Disable replacing in-use files on next
reboot.
-X --no-verify Don't verify setup.ini signatures
-n --no-shortcuts Disable creation of desktop and start menu
shortcuts
-N --no-startmenu Disable creation of start menu shortcut
-d --no-desktop Disable creation of desktop shortcut
-K --pubkey URL of extra public key file (gpg format)
-S --sexpr-pubkey Extra public key in s-expr format
-u --untrusted-keys Use untrusted keys from last-extrakeys
-U --keep-untrusted-keys Use untrusted keys and retain all
-g --upgrade-also also upgrade installed packages
-o --delete-orphans remove orphaned packages
-A --disable-buggy-antivirus Disable known or suspected buggy anti virus
software packages during execution.
You can, for example, install packages from DOS command line:
setup-x86.exe -q -P packagename1,packagename2....
source:
C:\xampp\apache\conf\extra\httpd-vhosts.conf
# NameVirtualHost *:80 # deprecated
# NameVirtualHost *:443 # deprecated
<VirtualHost *:80>
DocumentRoot "C:/XAMPP/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "C:/XAMPP\htdocs"
ServerName localhost
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/someSite"
ServerName [dns]
ServerAlias [fqdns]
<Directory "C:/xampp/htdocs/someSite">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "C:/xampp/htdocs/someSite"
ServerName [dns]
ServerAlias [fqdns]
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
<Directory "C:/xampp/htdocs/someSite">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Source: https://www.apachefriends.org/faq_windows.html
PHP 5.6
PHP 7
zend_extension = [pathToYouDLLinsideExtFolder] ;mine was: zend_extension = C:\xampp\php\ext\php_xdebug-2.4.0-5.6-vc11.dll [xdebug] xdebug.remote_enable=1 xdebug.remote_host=localhost xdebug.remote_port=9000
If you are using a Web Server to execute your scripts, restart it.
If you got some problem, use XDebug Wizard
Menu Bar > Window > Preferences > General > Appearance > Theme: Dark Studio;
Menu Bar > Window > Preferences > General > Workspace > New Text Files Line Delimiter: Unix;
Menu Bar > Window > Preferences > General > Workspace > Text File encoding: utf-8;
Menu Bar > Window > Preferences > Aptana Studio > Themes > Editor Theme: Monokai;
Menu Bar > Window > Preferences > Aptana Studio > Themes > Editor Theme > Selection: 222222;
Menu Bar > Window > Preferences > Aptana Studio > Editors > Enable Word Wrap: checked;
Menu Bar > Window > Customize Perspective > Command Groups Availabilty > Available Command Groups > External Tools: checked;
Excute the Aptana install executable specifying the extraction directory, like this:
Aptana_Studio_3_Setup_3.6.1.exe /extract:[folderToExtract]
Remembering that Aptana Studio needs a x86 version of JRE to execute.
ConEmu tweaks
Make CMD output in utf-8 charset
In [Startup > Enviroment > Set up enviroment variables, cmd.exe aliases, codepage] add the following line:
chcp utf8