Mysql check corrupted tables
mysqlcheck -c databasename -uyourusername -pyourpassword
mysqlcheck -c databasename -uyourusername -pyourpassword
If you want to rename a branch while pointed to any branch, simply do :
git branch -m oldname newname
If you want to rename the current branch, you can simply do:
git branch -m newname |
This setup excludes base url http://www.example.com from rewritting but any other url for example http://www.example.com/dis will be rewritten to http://www.example.net/dis
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC]
For Debian/Ubuntu default installation no need to add NameVirtualHost directive.
working configuration:
ServerName yourdomain.com
ServerAlias www.yourdomain.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/path
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from none
ErrorLog ${APACHE_LOG_DIR}/error-yourdomain.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel error
CustomLog ${APACHE_LOG_DIR}/access-yourdomain.log combined
php library: https://github.com/bensquire/php-image-optim
png: advpng, optipng, pngout, pngquant, pngcrush
jpg: jpegoptim, jpegtran
gif: gifscle
git reset –soft HEAD~1
Tubes:
[ready]->[reserved: in processing]->[delayed: (timeout before again moving to ready tube)]
1. telnet localhost 11300
2. use mytube
3. peek-ready or peek-delayed
4. kick or delete
1. Go to editor: crontab -e
2. */5 * * * * /usr/bin/curl https://www.natality-dating.com/1/bulkmailer/1 2>/dev/null >/dev/null
3. Check the result: crontab -l
4. Check if cron is running: ps -aef | grep cron
1. git remote set-url origin https://username@hostname:port/project.git
2. check the result by typing git remote -v