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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Conditions": {}, | |
"Description": "template", | |
"Mappings": {}, | |
"Outputs": {}, | |
"Parameters": { | |
"TagName": { | |
"Default": "tagname", | |
"Description": "env tag", |
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
{ | |
"AWSTemplateFormatVersion" : "version date", | |
"Description" : "JSON string", | |
"Parameters" : { | |
}, | |
"Mappings" : { |
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
LoadModule passenger_module /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.2/buildout/apache2/mod_passenger.so | |
<IfModule mod_passenger.c> | |
PassengerRoot /usr/local/share/ruby/gems/2.0/gems/passenger-5.0.2 | |
PassengerDefaultRuby /usr/bin/ruby2.0 | |
</IfModule> | |
<VirtualHost _default_:80> | |
ServerName redmine.mydomain.com | |
# !!! Be sure to point DocumentRoot to 'public'! | |
DocumentRoot /var/www/redmine/public |
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
#using root | |
#set your env | |
#save and run | |
#sh deploy_redmine_3.0.sh | |
dbhost="dbhost" | |
dbuser="dbuser" | |
dbpass="dbpass" | |
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
escape | |
# "^Z" is a control code. input this code ctrl+v > ctrl+z | |
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' | |
# escape screen resize for xterm | |
#termcapinfo kterm-color 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' | |
# escape screen resize for kterm-color | |
defscrollback 4000 |
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
hostname github.com | |
user git | |
identityfile ~/.ssh/githubkey | |
StrictHostKeyChecking no |
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 -y git jq |
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 | |
# set ERR trap | |
set -e | |
# generate password SSHA | |
PASS=$(slappasswd -s password) | |
PASS1=${PASS} | |
FILE='ldapconf_init_passwd.ldif' |
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
au FileType * setlocal formatoptions-=ro | |
" starnderd settings | |
set autoindent | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=0 | |
set paste | |
"NeoBundle Scripts----------------------------- | |
if &compatible |
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
OS=linux | |
ARCH=amd64 | |
VERSION=1.6.2 | |
cd /usr/local/src | |
wget https://storage.googleapis.com/golang/go$VERSION.$OS-$ARCH.tar.gz | |
tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz | |
cat <<'EOF' >> ~/.bashrc | |
export PATH=$PATH:/usr/local/go/bin | |
export GOROOT=$HOME/go |
OlderNewer