- 豚バラ肉(細切れでもOK)
- 150g ~ 200g
- ピーマン
- 中3個
- 甜麺醤
- 大さじ 1/2強
- オイスターソース
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 | |
echo 'deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free' >> /etc/apt/sources.list.d/virtualbox.list | |
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - | |
apt-get update | |
aptitude install virtualbox-4.2 |
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 | |
sudo gem install vagrant | |
vagrant box add debian http://ergonlogic.com/files/boxes/debian-current.box |
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
Vagrant::Config.run do |config| | |
config.vm.box = "debian" | |
config.ssh.port = 1022 | |
config.vm.forward_port 22, 1022 | |
config.vm.forward_port 80, 1080 | |
config.vm.network :hostonly, "192.168.50.11" | |
config.vm.host_name = "vg001" | |
config.vm.provision :shell, :path => "setup_user.sh" | |
config.vm.customize do |vm| |
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 | |
cd /tmp | |
wget http://redis.googlecode.com/files/redis-2.6.13.tar.gz | |
tar xf redis-2.6.13.tar.gz | |
cd redis-2.6.13 | |
make | |
cp src/redis-server src/redis-cli /usr/local/bin/ | |
mkdir /etc/redis |
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 | |
wget "https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz" | |
tar -xf libevent-2.0.21-stable.tar.gz | |
./configure | |
make | |
make verify | |
sudo make install |
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 | |
apt-get install munin-plugins-extra libcache-memcached-perl | |
cd /etc/munin/plugins | |
ln -sf /usr/share/munin/plugins/memcached_ memcached_bytes | |
ln -sf /usr/share/munin/plugins/memcached_ memcached_counters | |
ln -sf /usr/share/munin/plugins/memcached_ memcached_rates | |
/etc/init.d/munin-node restart |
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 ImagickFilter { | |
private $imagick; | |
private function __construct($imagick) | |
{ | |
$this->imagick = clone $imagick; | |
$this->imagick->profileImage('*', 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
<?php | |
echo json_encode(json_decode(stream_get_contents(STDIN)), JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT); |
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 | |
$path_samples = array( | |
'/temp/hoge/foo', | |
'/temp/./hoge/foo', | |
'/temp//hoge/foo', | |
'/temp///hoge/foo', | |
'/temp//bar/../hoge/foo', | |
'/temp/bar/../../../..//temp//bar/../hoge/foo', | |
'/temp/bar/../../../..//temp//bar/../hoge/foo////', |
OlderNewer