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 | |
# EC2のAmazon Linux で ec2-user を apache グループに追加し、 | |
# /var/www ディレクトリに apache グループの所有権を与え、グループに書き込み権限を割り当てます。 | |
# source http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/install-LAMP.html | |
ls -l /var/www | |
# ユーザー(この場合は ec2-user)を apache グループに追加します。 | |
sudo usermod -a -G apache ec2-user |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
AUTHOR=$(git config user.name) | |
DATE=$(date +%F) | |
git log --no-merges --format="%cd" --date=short --no-merges --author="$AUTHOR" --all | sort -u | while read DATE ; do | |
if [ $DATE != "" ] | |
then | |
echo | |
echo [$DATE] | |
fi | |
GIT_PAGER=cat git log --no-merges --format=" %s" --since="${DATE} 00:00:00" --until="${DATE} 23:59:59" --author="$AUTHOR" --all |
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 Asset_Instance extends Fuel\Core\Asset_Instance {} | |
class Cache_Handler_Json extends Fuel\Core\Cache_Handler_Json {} | |
class Cache_Handler_Serialized extends Fuel\Core\Cache_Handler_Serialized {} | |
class Cache_Handler_String extends Fuel\Core\Cache_Handler_String {} | |
class Cache_Storage_Apc extends Fuel\Core\Cache_Storage_Apc {} | |
abstract class Cache_Storage_Driver extends Fuel\Core\Cache_Storage_Driver {} | |
class Cache_Storage_File extends Fuel\Core\Cache_Storage_File {} | |
class Cache_Storage_Memcached extends Fuel\Core\Cache_Storage_Memcached {} |