超雑にまとめました。修正してください。
登場人物
- アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
- 後輩: 頼んでばっかしで役に立たない。
- サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
- プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
| #!/usr/bin/env bash | |
| # | |
| # Supported Operating Systems: | |
| # | |
| # - Arch Linux | |
| # - RedHat Based (CentOS, ...) | |
| # - Debian Based (Ubuntu, ...) | |
| # |
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| # Add rbenv to the path: |
| #!/usr/bin/perl | |
| # "pflog" enhancement for parsing maillog of postfix 2.3 or higher version. | |
| # "pflog" see: http://www.tmtm.org/ruby/pflog/pflog-0.3 | |
| use strict; | |
| use warnings; | |
| use Time::Local; | |
| use Getopt::Long; | |
| #use Data::Dumper; |
| #!/bin/bash | |
| bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) | |
| echo | |
| echo "Setting up environment" | |
| echo "[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function" >> .bash_profile | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
| echo |
| MY_GROUP="" | |
| if [ "$MY_GROUP" = "" ] ; then | |
| echo '!!! undefined variable MY_GROUP.' | |
| echo '!!!' | |
| echo '!!! ex.) MY_GROUP=staff' | |
| echo '!!!' | |
| exit 1 | |
| fi | |
| cd /usr/local |
| # from your user dir | |
| cd | |
| # create or update .bash_profile | |
| touch .bash_profile | |
| # Install RVM: (https://rvm.io/rvm/install/) | |
| curl -L get.rvm.io | bash -s stable |
| rds-modify-db-parameter-group {param-group-name} \ | |
| --parameters="name=character_set_server, value=utf8, method=pending-reboot" \ | |
| --parameters="name=collation_server, value=utf8_general_ci, method=pending-reboot" \ | |
| --parameters="name=tmp_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \ | |
| --parameters="name=max_heap_table_size, value={DBInstanceClassMemory/16}, method=pending-reboot" \ | |
| --parameters="name=query_cache_type, value=1, method=pending-reboot" \ | |
| --parameters="name=query_cache_size, value=131072, method=pending-reboot" \ | |
| --parameters="name=table_open_cache, value=2500, method=pending-reboot" \ | |
| --parameters="name=join_buffer_size, value={DBInstanceClassMemory/64}, method=pending-reboot" \ | |
| --parameters="name=thread_cache_size, value={DBInstanceClassMemory/12582880}, method=pending-reboot" \ |
| #!/bin/sh | |
| git filter-branch --env-filter ' | |
| an="$GIT_AUTHOR_NAME" | |
| am="$GIT_AUTHOR_EMAIL" | |
| cn="$GIT_COMMITTER_NAME" | |
| cm="$GIT_COMMITTER_EMAIL" | |
| if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ] |
| #!/bin/bash | |
| # Shell script to setup and install ownCloud 4 on Fedora 16 (and later, hopefully) | |
| # You may try on others, but it may not work | |
| # Run it as root/sudo | |
| # Also installs PageKite (http://pagekite.net) | |
| # Any harm to any object animate/inanimate caused by this script |