さくらレンタルサーバのコントロールパネルではマルチドメイン毎に PHP バージョンを設定できないので、以下の方法で設定する。 (同じ方法でサブディレクトリ毎に設定することも可能。)
対象ディレクトリに、以下の内容で php.cgi
ファイルを設置する。
#!/bin/sh
exec /usr/local/php/7.4/bin/php-cgi
______ _____ _______ _____ ______ __ _ | |
| ____ | | |______ | | ____ | \ | | |
|_____| |_____| ______| __|__ |_____| | \_| | |
curl -u ":username" "https://api.github.com/repos/:owner/:repos/issues?state=open" |\ | |
jq -r '["number","title","html_url"], (.[] | [.number,.title,.html_url]) | @csv' > issues.csv |
<?php | |
// Load the WooCommerce email templates. | |
$wc_emails = WC()->mailer()->get_emails(); | |
/** | |
* You can specify which template mail is to be sent from the following array elements. | |
* 'WC_Email_New_Order' | |
* 'WC_Email_Cancelled_Order' | |
* 'WC_Email_Failed_Order' | |
* 'WC_Email_Customer_On_Hold_Order' |
#!/usr/local/bin/bash | |
# Set backup directory | |
BACKUP_DIR=/path/to/wordpress/wp-content/ai1wm-backups/ | |
# Change directory to the WordPress | |
cd $BACKUP_DIR | |
# Run the wp-cli command to export the backup file | |
wp ai1wm backup |
さくらレンタルサーバのコントロールパネルではマルチドメイン毎に PHP バージョンを設定できないので、以下の方法で設定する。 (同じ方法でサブディレクトリ毎に設定することも可能。)
対象ディレクトリに、以下の内容で php.cgi
ファイルを設置する。
#!/bin/sh
exec /usr/local/php/7.4/bin/php-cgi
<?php | |
/** | |
* Imports files and images( except cover and profile photo ) | |
* @since UM 2.0 | |
* | |
* Sample Usage: | |
* - Fields should be created first in the UM Form Builder. | |
* - Files should be added to /wp-content/uploads/ultimatemember/<user_id>/ before running the import function. | |
* | |
* add_action('init', function(){ |
# ncurses をインストール | |
mkdir ~/opt && cd $_ | |
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz | |
tar zxfv ncurses-6.1.tar.gz | |
cd ncurses-6.1 | |
./configure --prefix=$HOME/local | |
make | |
make install | |
# Vim をインストール |
地区 | 学校 | 出場回数 | 住所 | URL | |
---|---|---|---|---|---|
北北海道 | 旭川大高 | 3年ぶり10度目 | 北海道旭川市永山7条16丁目3−16 | http://www.asahikawa-uhs.ed.jp/ | |
南北海道 | 札幌大谷 | 初出場 | 北海道札幌市東区北16条東9丁目1 | https://www.s-ohtani.ed.jp/ | |
青森 | 八戸学院光星 | 3年ぶり11度目 | 青森県八戸市湊高台6丁目14−5 | http://kh.hachinohe-u.ac.jp/ | |
岩手 | 一関学院 | 12年ぶり7度目 | 岩手県一関市八幡町5−24 | https://ichinoseki-gakuin.jp/ | |
秋田 | 能代松陽 | 11年ぶり4度目 | 秋田県能代市緑町4−7 | http://www.noshiroshoyo-h.akita-pref.ed.jp/ | |
山形 | 鶴岡東 | 3年ぶり7度目 | 山形県鶴岡市切添町22−30 | https://tsuruokahigashi.net/ | |
宮城 | 仙台育英 | 3年ぶり29度目 | 宮城県仙台市宮城野区宮城野2の4の1 | https://www.sendaiikuei.ed.jp/hs/ | |
福島 | 聖光学院 | 3年ぶり17度目 | 福島県伊達市六角3−2 | https://www.seikogakuin.jp/ | |
茨城 | 明秀学園日立 | 初出場 | 茨城県日立市神峰町3丁目2−26 | https://www.meishu.ac.jp/ |
<?php | |
// composer require google/apiclient | |
/** | |
* @link https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php | |
* @link https://developers.google.com/analytics/devguides/reporting/core/v4/samples | |
* @link https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet | |
*/ |