Configure Git Server on CentOS 7
Server
$ yum install git-core
$ sudo useradd git
$ sudo passwd git
| #!/usr/bin/python2.7 | |
| #-*- coding=utf-8 -*- | |
| import shlex | |
| import subprocess | |
| from tornado.gen import coroutine, Task, Return | |
| from tornado.process import Subprocess | |
| from tornado.ioloop import IOLoop |
| package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo" | |
| "labix.org/v2/mgo/bson" | |
| "time" | |
| ) | |
| type Person struct { |
Configure Git Server on CentOS 7
Server
$ yum install git-core
$ sudo useradd git
$ sudo passwd git
| # Go parameters | |
| GOCMD=go | |
| GOBUILD=$(GOCMD) build | |
| GOCLEAN=$(GOCMD) clean | |
| GOTEST=$(GOCMD) test | |
| GOGET=$(GOCMD) get | |
| BINARY_NAME=mybinary | |
| BINARY_UNIX=$(BINARY_NAME)_unix |
| // To the extent possible under law, the Yawning Angel has waived all copyright | |
| // and related or neighboring rights to orhttp_example, using the creative | |
| // commons "cc0" public domain dedication. See LICENSE or | |
| // <http://creativecommons.org/publicdomain/zero/1.0/> for full details. | |
| package main | |
| import ( | |
| // Things needed by the actual interface. | |
| "golang.org/x/net/proxy" |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| #!/usr/bin/env python | |
| """ | |
| http://www.openldap.org/faq/data/cache/347.html | |
| As seen working on Ubuntu 12.04 with OpenLDAP 2.4.28-1.1ubuntu4 | |
| Author: Roberto Aguilar <[email protected]> | |
| """ | |
| import hashlib | |
| import os |
| import binascii | |
| import struct | |
| class Punk(object): | |
| _END_CHUNK_TYPE = 'IEND' | |
| _PUNK_CHUNK_TYPE = 'puNK' | |
| _MAX_BYTES = 2147483647 | |
| _chunks = dict() |
| set shell=/bin/bash | |
| if $TERM == "xterm" | |
| set t_Co=256 " 256 colors | |
| endif | |
| set nocompatible " be iMproved | |
| let mapleader="," " change the leader to be a comma vs slash | |
| filetype off " required! | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() |
| # download latest libevent2 and tmux sources, and extract them somewhere | |
| # (thx bluejedi for tip on latest tmux URL) | |
| # | |
| # at the time of writing: | |
| # https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| # http://sourceforge.net/projects/tmux/files/latest/download?source=files | |
| # | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel |