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() |
I hereby claim:
To claim this, I am signing this object:
| wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz | |
| tar vxzf Python-2.7.3.tgz | |
| cd Python-2.7.3 | |
| PREFIX=$HOME/local/python-2.7.3 | |
| export LD_RUN_PATH=$PREFIX/lib | |
| ./configure --prefix=$PREFIX --enable-shared | |
| make | |
| make install |