Skip to content

Instantly share code, notes, and snippets.

View ihortymoshenko's full-sized avatar

Ihor Tymoshenko ihortymoshenko

View GitHub Profile
version: '2'
services:
agent_1:
environment:
AGENT_NAME: agent_1
DOCKER_IN_DOCKER: start
SERVER_URL: http://server:8111
container_name: teamcity_agent_1
depends_on:
@ihortymoshenko
ihortymoshenko / docker-clean-up.sh
Created October 27, 2015 15:19
Docker clean up after yourself
#!/bin/bash
# http://blog.yohanliyanage.com/2015/05/docker-clean-up-after-yourself/
docker rm -v $(docker ps -a -f status=exited -q)
docker rmi $(docker images -f "dangling=true" -q)
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker martin/docker-cleanup-volumes
@ihortymoshenko
ihortymoshenko / Makefile
Created March 10, 2014 14:11
Using Makefile as a PHP build project system. Inspired by http://jenkins-php.org
default: help
help:
@echo "Targets:"
@echo " - test"
@echo " - lint"
@echo " - phploc"
@echo " - phpcs"
@echo " - phpunit"
@ihortymoshenko
ihortymoshenko / dell-vostro-1700-xubuntu-12.04-wi-fi.sh
Created February 14, 2014 21:37
Installing Wi-Fi on Dell Vostro 1700 with Xubuntu 12.04
#!/bin/sh
sudo apt-get update
sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source
sudo apt-get install b43-fwcutter firmware-b43-installer
sudo modprobe b43
@ihortymoshenko
ihortymoshenko / UserManager.php
Created February 11, 2014 16:00
Couchbase PHP example
<?php
class UserManager
{
protected $couchbase;
public function __construct(\Couchbase $couchbase)
{
$this->couchbase = $couchbase;
}