Skip to content

Instantly share code, notes, and snippets.

View hacker65536's full-sized avatar
:octocat:
learning

hacker65536 hacker65536

:octocat:
learning
View GitHub Profile
{
"AWSTemplateFormatVersion": "2010-09-09",
"Conditions": {},
"Description": "template",
"Mappings": {},
"Outputs": {},
"Parameters": {
"TagName": {
"Default": "tagname",
"Description": "env tag",
{
"AWSTemplateFormatVersion" : "version date",
"Description" : "JSON string",
"Parameters" : {
},
"Mappings" : {
@hacker65536
hacker65536 / redmine.conf
Created March 10, 2015 07:09
redmine passenger apache
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
@hacker65536
hacker65536 / deploy_redmine_3.0.sh
Last active August 29, 2015 14:16
deploy_redmine_3.0
#using root
#set your env
#save and run
#sh deploy_redmine_3.0.sh
dbhost="dbhost"
dbuser="dbuser"
dbpass="dbpass"
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
hostname github.com
user git
identityfile ~/.ssh/githubkey
StrictHostKeyChecking no
#!/bin/bash
yum install -y git jq
#!/bin/bash
# set ERR trap
set -e
# generate password SSHA
PASS=$(slappasswd -s password)
PASS1=${PASS}
FILE='ldapconf_init_passwd.ldif'
au FileType * setlocal formatoptions-=ro
" starnderd settings
set autoindent
set tabstop=2
set shiftwidth=2
set softtabstop=0
set paste
"NeoBundle Scripts-----------------------------
if &compatible
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