start new:
tmux
start new with session name:
tmux new -s myname
| * { | |
| -webkit-touch-callout:none; /* prevent callout to copy image, etc when tap to hold */ | |
| -webkit-text-size-adjust:none; /* prevent webkit from resizing text to fit */ | |
| -webkit-tap-highlight-color:rgba(0,0,0,0); /* prevent tap highlight color / shadow */ | |
| -webkit-user-select:none; /* prevent copy paste, to allow, change 'none' to 'text' */ | |
| } |
| <?php | |
| /* | |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| # info: http://it.dennyhalim.com/2009/10/perfect-mysql-backup.html | |
| /bak/mysql/*/*.sql.gz { | |
| daily | |
| rotate 5 | |
| nocompress | |
| postrotate | |
| export HOME=/root | |
| for i in `mysql --batch -e 'show databases' | tail -n +2`; do | |
| if [ ! -e /bak/mysql/$i ]; then mkdir -m 700 /bak/mysql/$i; fi |