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
@hello = 'Hello' | |
puts Process.pid | |
thread_array = Array.new | |
thread_array << Thread.new do | |
Signal.trap('USR1'){ | |
@hello = 'HALLO!' | |
} | |
Signal.trap('USR2'){ |
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 | |
############################################### | |
# To use: | |
# wget -O install-redis.sh https://gist.github.com/mrkplt/8137324/raw | |
# chmod 777 install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
echo "*****************************************" | |
echo " 1. Prerequisites: Install updates, set time zones, install GCC and make" | |
echo "*****************************************" |
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 | |
# | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |
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 | |
# I don't know if this will actually run as a script, but I threw the shebang in anyway | |
# executing the individual step works fine. | |
############################################### | |
# To use: | |
# wget -O install-ruby-2.sh https://gist.github.com/mrkplt/8229498/raw | |
# chmod 755 install-ruby-2.sh | |
# sudo ./install-ruby-2.sh | |
############################################### | |
sudo yum -y update |
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
# http://codingsteps.com/installing-and-configuring-postgresql-in-amazon-linux-ami/ | |
sudo su - | |
gem install unicorn | |
exit | |
sudo yum -y install nginx | |
sudo yum -y install readline-devel | |
sudo yum -y install zlib-devel | |
wget http://ftp.postgresql.org/pub/source/v9.2.6/postgresql-9.2.6.tar.bz2 |
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
# http://michaelconnor.org/2013/07/install-mongodb-on-amazon-64-bit-linux/ | |
sudo vi /etc/yum.repos.d/10gen.repo | |
# Add all below sans pounds to the file | |
# [10gen] | |
# name=10gen Repository | |
# baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
# gpgcheck=0 |
OlderNewer