References:
- http://blog.bekijkhet.com/2012/05/install-teamcity-continuous-integration.html
- https://gist.github.com/ianbattersby/4641450
sudo apt-get update
#! /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 ([email protected]) | |
# 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
# Add this to the YAML section: | |
ansible_ssh_port: 1234 |
#!/bin/bash | |
echo ' | |
### | |
# Welcome to graphite creator | |
### | |
!!! | |
! THIS WILL REMOVE /var/www - MAKE SURE YOU WANT TO DO THIS! | |
!!! |
using System.Net.Http; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var client = new HttpClient(); | |
var batchRequest = new HttpRequestMessage(HttpMethod.Post, "http://localhost:3440/api/batch"); |
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
sudo apt-get install apt-transport-https | |
echo "deb https://artifacts.elastic.co/packages/5.x-prerelease/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list | |
sudo apt-get update | |
sudo apt-get install elasticsearch | |
service elasticsearch start | |
# if service start failed, try to modify -Xms lower like -Xms1g in /etc/elasticsearch/jvm.options |
#!/bin/bash | |
# Stop all containers | |
docker stop $(docker ps -a -q) | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
wget https://releases.hashicorp.com/packer/1.2.0/packer_1.2.0_linux_amd64.zip
unzip packer_1.2.0_linux_amd64.zip
sudo mv packer /usr/local/bin/
http://howtoprogram.xyz/2016/11/29/install-packer-ubuntu-16-04-1-lts-xenial-xerus/