References:
- http://blog.bekijkhet.com/2012/05/install-teamcity-continuous-integration.html
- https://gist.github.com/ianbattersby/4641450
sudo apt-get update
using System; | |
public static class UnixUtils | |
{ | |
public static DateTime FromUnixTimeStamp(this Int64 unixTimestamp) | |
{ | |
return new DateTime(1970, 1, 1).AddMilliseconds(unixTimestamp); | |
} | |
public static Int64 ToUnixTimeStamp(this DateTime date) |
{ | |
"vrmdates": [ | |
{ | |
"y": 1983, | |
"m": 1, | |
"ident": "Y" | |
}, | |
{ | |
"y": 1983, | |
"m": 8, |
public static class StringHelper | |
{ | |
public static byte[] ToByteArray(this string str) | |
{ | |
byte[] bytes = new byte[str.Length * sizeof(char)]; | |
System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length); | |
return bytes; | |
} | |
public static string GetString(this byte[] bytes) |
#!/bin/bash | |
### VARIABLES ### | |
PRE_PACK="openssl-devel pcre-devel make gcc" | |
VER="1.5-dev22" | |
# Setup Colours | |
black='\E[30;40m' | |
red='\E[31;40m' |
echo "Installing OpenSSL" | |
yum -y -q install gcc gcc-c++ make pcre-devel zlib-devel unzip wget > /dev/null | |
mkdir -p /src | |
cd /src | |
# download openssl centos 6.x | |
wget -cnv --progress=bar http://www.openssl.org/source/openssl-1.0.1g.tar.gz | |
tar xvzf openssl-1.0.1g.tar.gz |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
#! /bin/sh | |
## | |
# Generated by Chef | |
# <%= Time.now %> | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog |
#!/usr/bin/env python2 | |
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
# The author disclaims copyright to this source code. | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
References:
sudo apt-get update
Follow the steps below to install Team City 8.1 on Ubuntu 12.04 with Nginx as the proxy for port 80.
Install Team City:
# will install on port 8111
sudo wget -c https://gist.githubusercontent.com/sandcastle/9282638/raw/teamcity-install.sh -O /tmp/teamcity-install.sh