解法:
$ git config core.fileMode false
或
$ git -c core.fileMode=false diff
$ git -c core.fileMode=false checkout
$ git config core.fileMode false
$ git -c core.fileMode=false diff
$ git -c core.fileMode=false checkout
$ sudo apt-get install nodejs npm
$ sudo ln -s /usr/bin/nodejs /usr/bin/node
$ mkdir ~/webshot
$ cd ~/webshot
$ npm install webshot
$ vim test.js
var webshot = require('webshot');
webshot('tw.yahoo.com', 'yahoo.png', function(err) {
if(err)
console.log(err);
} );
$ nodejs test.js
$ sudo apt-get install xfonts-wqy
$ wget --recursive --no-clobber --html-extension --convert-links --no-parent --wait 5 --domains example.com www.example.com
$ lynx -dump -listonly https://tw.yahoo.com | grep -o '^\s\{1,\}[0-9]\{1,\}..*$' | sed -e 's/^[[:space:]]\{1,\}[0-9]\{1,\}\.[[:space:]]//g' | uniq
$ wget -q --no-check-certificate -O - https://tw.yahoo.com | grep -o 'href=['"'"'"][^"'"'"'#]*['"'"'"]' | sed -e 's/^href=["'"'"']//' -e 's/["'"'"']$//' | grep -v "javascript:" | uniq
註:wget 有 --convert-links 可用
$ awk '{s=0;for(i=1;i<=length($0);i++){c=sprintf("%c",substr($0,i,1));s+=c ;}; system( "sleep " s); }' /etc/hostname
# m h dom mon dow command
*/10 * * * * sh /path/sleep.sh ; /path/job_exec
define host {
host_name aws-rdb
alias aws-rdb-dns
address aws-rdb-dns
use rdb-host
contact_groups db-services
}
define host {
host_name aws-dev
alias aws-dev-dns
address aws-dev-dns
hostgroups ssh-servers,http-servers
use ec2-host
contact_groups pc-services
}
define command {
command_name check-rds-host-alive
command_line /usr/lib/nagios/plugins/check_tcp -H $HOSTADDRESS$ -p 3306
}
define command {
command_name check-ec2-host-alive
command_line /usr/lib/nagios/plugins/check_tcp -H $HOSTADDRESS$ -p 80
}
define host{
name rdb-host ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
check_command check-rds-host-alive
max_check_attempts 10
notification_interval 0
notification_period 24x7
notification_options d,u,r
contact_groups admins
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
define host{
name ec2-host ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
check_command check-ec2-host-alive
max_check_attempts 10
notification_interval 0
notification_period 24x7
notification_options d,u,r
contact_groups admins
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
$ sudo apt-get install mysql-client-5.6 php5 apache2 apache2-utils git php5-mysql
$ sudo a2ensite default-ssl.conf
$ sudo php5enmod mcrypt
$ sudo service apache2 restart
$ sudo vim /etc/phpmyadmin/config-db.php
// 在底部新增:
$dbuser='rds_account';
$dbpass='rds_password';
$dbserver='rds_location';
$ sudo vim /etc/phpmyadmin/config.inc.php
// 採用 HTTP Basic authentication
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['auth_type'] = 'http';
// ...
// 最底層加上強制 HTTPS
$cfg['ForceSSL'] = true;
$ sudo do-release-upgrade -d
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty
$ service mysql stop
$ sudo apt-get remove mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5
$ sudo apt-get autoremove
$ sudo apt-get install mysql-server-5.6
$ mysql_upgrade -u root -p
Improper Advertising Identifier IDFA Usage. Your app contains the Advertising Identifier IDFA API ...解法在此刻只能遞交一份空專案,接著在 Reject by developer 後,才能再重新填這張單子。