Skip to content

Instantly share code, notes, and snippets.

@teityura
teityura / amazon-history.js
Created November 25, 2018 10:56 — forked from yociya/amazon-history.js
Amazonの注文履歴を年毎に集計して出力します 利用額 / 注文件数 / 最高額(1注文での) 使い方はコメントを参照
var historyUrl = 'https://www.amazon.co.jp/gp/css/order-history?orderFilter=year-$year$&startIndex=$index$';
function beforeSendHook(xhr){
xhr.setRequestHeader('X-Requested-With'
, {
toString: function(){
return '';
}
}
);
@teityura
teityura / 201811030408_wordpress_install.txt
Created November 2, 2018 19:09
WordPressインスコメモ
# wordpressを落とす
cd /var/www/html/
wget https://ja.wordpress.org/latest-ja.tar.gz
tar -xvzf latest-ja.tar.gz
sudo rm latest-ja.tar.gz
# 権限周りの設定
sudo chown -R www-data:www-data /var/www/html/wordpress/
sudo find /var/www/html/wordpress/ -type d -exec chmod 0755 \{\} \;
sudo find /var/www/html/wordpress/ -type f -exec chmod 0644 \{\} \;
# 超スッキリさせる
sudo apt-get purge $(sudo dpkg -l | grep php | awk '{print $2}')
sudo apt-get install php php-mysql
# 一緒に下記パッケージが入った
# =>(libapache2-mod-php7.0 php php-common php-mysql php7.0 php7.0-cli php7.0-common php7.0-json php7.0-mysql php7.0-opcache php7.0-readline)
import sys
print("Hello world !");
sys.exit