User Tools

Site Tools


how_to

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
how_to [2016/08/18 15:56]
k2patel [Crontab with own php.ini and send result to mail]
how_to [2020/08/10 02:35] (current)
Line 21: Line 21:
  
 To drop all the table in the mysql database - use the following command. To drop all the table in the mysql database - use the following command.
 +<WRAP prewrap>
 <code mysql> <code mysql>
 mysqldump -u[USERNAME] -p[PASSWORD] --add-drop-table --no-data [DATABASE] | grep ^DROP | mysql -u[USERNAME] -p[PASSWORD] [DATABASE] mysqldump -u[USERNAME] -p[PASSWORD] --add-drop-table --no-data [DATABASE] | grep ^DROP | mysql -u[USERNAME] -p[PASSWORD] [DATABASE]
 </​code>​ </​code>​
 +</​WRAP>​
  
 ==== How to list pear using php ==== ==== How to list pear using php ====
Line 426: Line 426:
  
 ==== Creating patch for rpm ==== ==== Creating patch for rpm ====
 +this can be used as '​%patch0 -p1 -b <​file_name>'​
 <code bash> <code bash>
 diff -ru hdf-4.2.12-orig hdf-4.2.12-diff >| ../​SOURCES/​hdf-4.2.12.example.patch diff -ru hdf-4.2.12-orig hdf-4.2.12-diff >| ../​SOURCES/​hdf-4.2.12.example.patch
Line 438: Line 439:
 </​code>​ </​code>​
 </​WRAP>​ </​WRAP>​
 +
 +==== Run single command parallel'​y with diff values ====
 +<WRAP prewrap>
 +<code bash>
 +(echo "​http://​test.k2patel.in";​ echo "​http://​test.ornl.gov";​ echo "​http://​yahoo.com"​ ) | parallel 'ab -n 50 -c 50 {}'
 +</​code>​
 +</​WRAP>​
 +
 +==== Print yum variable value ====
 +<code python>
 +import yum
 +import pprint ​
 +
 +yvar = yum.YumBase()
 +pprint.pprint(yvar.conf.yumvar,​ width=1)
 +</​code>​
 +
 +==== Disable Predictable interface name in RHEL / CentOS ====
 +Pass following during boot kernel command line.
 +<code bash>
 +net.ifnames=0
 +</​code>​
how_to.1471535806.txt.gz ยท Last modified: 2020/08/10 02:30 (external edit)