This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
リポジトリ:/opt/repos/projectname | |
ソース:/var/www/html | |
# リポジトリ作成 | |
$ mkdir /opt/repos/projectname | |
$ svnadmin create /opt/repos/projectname | |
$ svn mkdir -m "created default directory" ¥ | |
file:///opt/repos/projectname/trunk ¥ | |
file:///opt/repos/projectname/branches ¥ | |
file:///opt/repos/projectname/tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// セッションに値を設定 | |
$objSess = new SC_Session_Ex(); | |
$objSess->SetSession('my_var', 'test'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// セッションから値を取得 | |
$objSess = new SC_Session_Ex(); | |
$my_var = $objSess->GetSession('my_var'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE `dtb_session` CHANGE `sess_data` `sess_data` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; | |
ALTER TABLE `dtb_order_temp` CHANGE `session` `session` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jpegoptimインストール | |
$ wget http://www.kokkonen.net/tjko/src/jpegoptim-1.4.2.tar.gz | |
$ tar -zxvf jpegoptim-1.4.2.tar.gz | |
$ cd jpegoptim-1.4.2 | |
$ ./configure | |
$ make | |
$ sudo make install | |
インストール確認 | |
$ jpegoptim --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 「/date」は付かないので無くす | |
// window.open(blogURL+'/date/'+d.replace(/-/g,'/')); | |
window.open(blogURL+'/'+d.replace(/-/g,'/')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//data.item.push({title:item.title, url:item.link, date:item["wp:post_date"]["#"]}); | |
if (item["wp:post_type"]["#"] == 'post') { | |
data.item.push({title:item.title, url:item.link, date:item["wp:post_date"]["#"]}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /path/to/wordpress | |
wp export --dir=/path/to/wpcalendar --post_type=post --post_status=publish | |
cd /path/to/wpcalendar | |
node wpxml2json.js dbname.wordpress.`date +%Y-%m-%d`.0.xml > wp.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 12 * * * /path/to/shell/update_wpcalendar.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wp export --dir=/path/to/wpcalendar --post_type=post --post_status=publish |
OlderNewer