Skip to content

Instantly share code, notes, and snippets.

View bborysenko's full-sized avatar

Borys Borysenko bborysenko

View GitHub Profile
#!/bin/sh
#
###
# This script configures Upstart and Nginx to support your OTRS install with
# fcgi.
#
# You should configure the group as which your webserver runs (usually www-data
# for Ubuntu), the homedirbase for your users (usually /home) and the directory
# where you want your sockets created (/var/run/otrs by default).
#

How To

  1. Install homebrew if you don't have it already: http://mxcl.github.com/homebrew/
  2. Run brew install vpnc --hybrid
  3. Check if you already have virtual tunnel interfaces, run ls /dev/tun*. If there are none, install "Tun Tap OSX" (see below)
  4. Go to https://www.rz.uni-konstanz.de/angebote/e-mail/usermanager/ and login, then download both the certificate (you need the .pem file) and vpn profile
  5. Run openssl x509 -in <certificateFile>.pem -noout -hash
  6. Rename <certificateFile>.pem to the output of (5) with .pem as extension
  7. Move the .pem certificate to a permanent location, e.g. /etc/ssl/certs/
  8. Open /usr/local/etc/vpnc/default.conf in your favorite text editor, delete the contents
  9. Run pcf2vpnc /.pcf and paste the output to your open text editor

Git Quick-Start Notes by Blake Rohde, 2013

Create the repository on the server

$ mkdir PROJECT.git

CentOS Server Setup

Initial Setup

  1. Copy firewall shell script and modify it accordingly. Run it.
  2. Run $ su -c 'visudo' and add USERNAME ALL=(ALL) ALL for each allowed USERNAME.
  3. Update the system: $ sudo yum upgrade.
  4. Add the RHEL EPEL Repo:
#!/bin/bash
#WTFPL 2013 "napcae" Chi Trung Nguyen
#
#just put in your values here
#You can find the client_id and api_key in your DO dashboard
#To get the domain_id and record_id use just paste this in a browser and copy the values:
#domain_id: https://api.digitalocean.com/domains?client_id=[your_client_id]&api_key=[your_api_key]
#record_id: https://api.digitalocean.com/domains/[domain_id]/records?client_id=[your_client_id]&api_key=[your_api_key]
#see https://api.digitalocean.com/ for more information
######################################################################################################################

Title: Настройка сервера VPN L2TP/IPSec на Mikrotik RoutersOS Date: 2013-05-31 17:25 Category: Mikrotik Tags: mikrotik, vpn Slug: mikrotik-lt2p-vpn Summary: Краткое описание настройки сервера VPN L2TP/IPSec на Mikrotik RoutersOS c возможностью подключения с помощью встроенных VPN клиентов Windows 7, Mac OS X и IOS.

Alt Text

Замечение: Если несколько клиентов находятся за NAT, то только одно L2TP/IPSec соединение может быть установлено.

@bborysenko
bborysenko / CentOS6_PGSQL74.md
Created December 13, 2013 21:51
PostgreSQL 7.4 installation from source code on CentOS 6.x
yum install gcc make
yum install python-devel tcl-devel readline-devel zlib-devel openssl-devel krb5-devel e2fsprogs-devel gettext libxml2-devel pam-devel uuid-devel openldap-devel perl-devel
cd /usr/local/src/
wget http://ftp.postgresql.org/pub/source/v7.4.30/postgresql-7.4.30.tar.gz
tar xzf postgresql-7.4.30.tar.gz
cd postgresql-7.4.30
./configure --disable-rpath --prefix=/usr/pgsql-7.4 --with-pam --with-openssl --with-ossp-uuid --with-libxml --with-libxslt --with-ldap
make
make install
@bborysenko
bborysenko / pg93_install.sh
Created December 24, 2013 09:08
Simple bash script to install PostgreSQL 9.3 on Centos 6
#!/usr/bin/env bash
if ! /bin/grep -q exclude=postgresql /etc/yum.repos.d/CentOS-Base.repo; then
sed -i -r '1,/\[extras\]/ s/KEY-CentOS-6/KEY-CentOS-6\nexclude=postgresql*/' /etc/yum.repos.d/CentOS-Base.repo
if ! [ -f /etc/yum.repos.d/pgdg-93-centos.repo ]; then
rpm -ivh http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
fi
fi
yum install -y postgresql93-server
service postgresql-9.3 initdb
@bborysenko
bborysenko / README.md
Last active January 4, 2016 06:09
Initial System Setup for CentOS 6 on DigitalOcean

Initial System Setup:

curl -O https://gist.github.com/bborysenko/8579825/raw/dda86bf9fa24060501029732d1e93dcd67da5609/do_initial_system_setup.sh
chmod u+x do_initial_system_setup.sh
./do_initial_system_setup.sh
reboot