Contents:
- Install and configure
- Make ESLint enforce your preferred coding style
- Sport more errors with extra plugins
- Never forget to run ESLint: Make it automatic
- Get instant feedback by adding ESLint to your editor
| # Read files from your internal storage (/data/data/com.app.name) | |
| # You cannot read these files directly, but you can move them | |
| # to the external storage and read from there | |
| $ adb shell "run-as com.yourappname ls /data/data/com.yourappname/files/ > /sdcard/Downloads/log.txt" |
| <?php | |
| $char_set = 'utf8'; | |
| // Adds the header information | |
| header('Content-type: text/plain'); | |
| // Runs the SQL query on teh database | |
| $sql = 'SHOW TABLES'; $result = mysql_query($sql) or die( mysql_error() ); |
| $ sed -n "/^-- Table structure for table \`emails\`/,/^-- Table structure for table/p" DUMP.sql > DUMP-table.sql |
| AuthType Basic | |
| AuthName "Restricted Area" | |
| AuthUserFile /home/{USERNAME}/public_html/{DIRECTORY}/.htpasswd | |
| require valid-user | |
| # You would need to generate the .htpasswd file using a tool like | |
| # http://www.kxs.net/support/htaccess_pw.html |
| zcat xxxx-Jan-2015.gz | grep autodiscover | awk '{ SUM +=$10 } END { print SUM/1024/1024 }' |
| #!/usr/bin/bash | |
| filename="$1" | |
| USER=root | |
| PASS= | |
| while read -r line | |
| do | |
| name=$line | |
| hasfound=false |
| # Resizing and compressing images using mogrify & jpegoptim | |
| find hiresbk/ -iname "*.jpg" -exec mogrify -resize '1000>' -limit memory 32 -verbose {} \; | |
| find hiresbk/ -iname "*.jpg" -exec jpegoptim --strip-all {} \; >> log.txt |
| RewriteLog "/web/logs/mywebsite.rewrite.log" | |
| RewriteLogLevel 9 | |
| RewriteEngine On |