Skip to content

Instantly share code, notes, and snippets.

View cdimitroulas's full-sized avatar

Christos Dimitroulas cdimitroulas

View GitHub Profile
### Example #1 ###
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2e23d01384ac iperf-v1:latest "/usr/bin/iperf -s" 10 minutes ago Up 10 minutes 5001/tcp, 0.0.0.0:32768->5201/tcp compassionate_goodall
# Append the container ID (CID) to the end of an inspect
$ docker inspect --format '{{ .NetworkSettings.IPAddress }}' 2e23d01384ac
172.17.0.1
### Example #2 ###
# Add -q to automatically parse and return the last CID created.
@kentcdodds
kentcdodds / only-check.js
Created November 19, 2014 19:45
make sure you're not checking .only describes or its in your tests
/* jshint node:true */
'use strict';
var glob = require('glob');
var async = require('async');
var fs = require('fs');
var chalk = require('chalk');
glob('app/components/**/*.test.js', function(err, files) {
if (err) {
throw err;
@julionc
julionc / 00.howto_install_phantomjs.md
Last active June 7, 2024 11:29
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev