CentOS : stop iptables for good
$> sudo /etc/init.d/iptables save $> sudo /etc/init.d/iptables stop $> sudo chkconfig iptables off
Just another Yipp.ca Blogs site
$> sudo /etc/init.d/iptables save $> sudo /etc/init.d/iptables stop $> sudo chkconfig iptables off
$> sudo yum remove mysql-server $> sudo rm -fr /var/lib/mysql Everything is gone!! Users, privileges, databases cleared. Note: the /var/lib/mysql folder will be refurnished on the next time you run sudo service mysqld start
Initial install $> sudo yum install mysql-client mysql-server $> sudo service mysqld start $> sudo chkconfig mysqld on Set a root password (optional) $> /usr/bin/mysqladmin -u root password 'new-password' Uninstall mysql completely including databases...
Delete all package matching a criteria $> sudo rpm -qa | grep hydra | xargs sudo rpm -e
Merging a single commit to another branch This is called cherry-pick $> git cherry-pick eba87949886ca99c7383266ae318c54401d786ec It might fail with this : $> git cherry-pick eba87949886ca99c7383266ae318c54401d786ec fatal: bad object eba87949886ca99c7383266ae318c54401d786ec In that case, you have to...
$ mkdir include $ mv common include $ git rm -r common $ git add include/common This will preserve the history
[WARNING] This will expose unencrypted the login credentials. To upload : $> curl -T my-local-file.txt ftp://ftp.domain.com --user username:password To download : $> curl -uusername ftp://ftp.domain.com/myfile > savehere.txt
Two solutions Here are two things I know are not show in any console but will cause your view not to render. Mixing UTF8 content in Windows 1252 charset webpage IE8 and IE9 will...
Scp usage It is easy to use scp, however how do you copy a directory, without copying the directory name? Solution : scp -r public@10.64.6.11:/home/public/site/* /var/www/ About this If you write /* a the...
Recent Comments