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/bash | |
# 使い方: ./useradd_scirpt.sh username password | |
# 注意: XXXXXX の部分を mysql のrootパスワードに置き換えてください。 | |
useradd -G wheel $1 | |
echo $2 | passwd --stdin $1 | |
su $1 -c "ssh-keygen" | |
su $1 -c "touch ~/.ssh/authorized_keys" | |
su $1 -c "mkdir ~/public_html/" | |
su $1 -c "chmod 0777 ~/public_html/" | |
ln -s /home/$1/public_html /var/www/html/$1 |
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
<?php | |
class Member extends Model { | |
protected $tableName = 'members'; | |
} |
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/bash | |
# yum install firefox | |
wget "http://download.mozilla.org/?product=firefox-43.0-SSL&os=linux&lang=ja" | |
tar jxvf firefox-43.0.tar.bz2 | |
cp -frp firefox /usr/local/firefox43 | |
mv /usr/bin/firefox{,.bak} | |
ln -s /usr/local/firefox43/firefox /usr/bin/. |
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
<?php | |
// モスキート音認証 | |
// バージョン 1.1 | |
// 作者: 園田 裕大 | |
// 柏木 祥太 | |
// サイト: http://www.0319.jp/ | |
// ライセンス: PHP License | |
// This product includes PHP, freely available from http://www.php.net/ | |
/////////////// 定義 //////////////// |
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
<?php | |
$app = 'api'; | |
include_once dirname(__FILE__) . '/../../bootstrap/unit.php'; | |
include_once dirname(__FILE__) . '/../../bootstrap/database.php'; | |
$configuration = ProjectConfiguration::getApplicationConfiguration('api', 'prod', isset($debug) ? $debug : true); | |
sfContext::createInstance($configuration); | |
$numOfTest = 42; |
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
{"status":"success","data":[{"id":1,"member":{"id":1,"profile_image":"http:\/\/example.com\/images\/no_image.gif","profile_url":"http:\/\/example.com\/member\/1","friend":"false","blocking":"false"},"title":"(title)","created_at":"Thu, 05 Jan 2012 14:03:40 +0900"},{"id":2,"member":{"id":2,"profile_image":"http:\/\/example.com\/images\/no_image.gif","profile_url":"http:\/\/example.com\/member\/2","friend":"false","blocking":"false"},"title":"(title2)","created_at":"Thu, 06 Jan 2012 14:03:40 +0900"}]} |
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
<?php | |
/*************************** | |
(c) mail address generator for coreserver | |
@author : kashiwasan <pc.kashiwasan@gmail.com> | |
****************************/ | |
// ベースドメインを指定 | |
$domain = "example.com"; |
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
RewriteEngine On | |
RewriteRule ([0-9]+)/([0-9A-Za-z]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/20190621/p/$2&q=100&aoe=0&w=$1 [L] | |
RewriteRule ([0-9]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/20190621/p/$1&q=100 [L] |
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
<?php | |
/** | |
* This file is part of the OpenPNE package. | |
* (c) OpenPNE Project (http://www.openpne.jp/) | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file and the NOTICE file that were distributed with this source code. | |
*/ |
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
INSERT INTO sns_term (name,application) VALUES ('friend','pc_frontend'),('friend','mobile_frontend'),('my_friend','pc_frontend'),('my_friend','mobile_frontend'),('community','pc_frontend'),('community','mobile_frontend'),('nickname','pc_frontend'),('nickname','mobile_frontend'),('activity','pc_frontend'),('activity','mobile_frontend'),('post_activity','pc_frontend'),('post_activity','mobile_frontend'); | |
INSERT INTO sns_term_translation (value,lang) VALUES ('friend','en'),('フレンド','ja_JP'),('friend','en'),('フレンド','ja_JP'),('my friend','en'),('マイフレンド','ja_JP'),('my friend','en'),('マイフレンド','ja_JP'),('community','en'),('コミュニティ','ja_JP'),('community','en'),('コミュニティ','ja_JP'),('nickname','en'),('ニックネーム','ja_JP'),('nickname','en'),('ニックネーム','ja_JP'),('activity','en'),('アクティビティ','ja_JP'),('activity','en'),('アクティビティ','ja_JP'),('Post Activity','en'),('アクティビティ投稿','ja_JP'),('Post Activity','en'),('投稿','ja_JP'); | |
INSERT INTO sns_config (name,value) VALUES ('OpenPNE_revision','46'),('opAshiatoPlugin_revision','3'),('opAuth |
NewerOlder