Execute an interactive bash shell on the container
docker exec -it app-accounting bash
Remove unused volumes
$ docker volume rm (docker volume ls -q -f dangling=true)
Remove all images
Execute an interactive bash shell on the container
docker exec -it app-accounting bash
Remove unused volumes
$ docker volume rm (docker volume ls -q -f dangling=true)
Remove all images
source 'https://rubygems.org' | |
gem 'rpi_gpio', '~> 0.3.3' | |
gem 'slack-ruby-client', '~> 0.10.0' |
FROM ubuntu:16.04 | |
MAINTAINER [email protected] | |
ENV REFRESHED_AT 2016-07-27 | |
# Choose your ruby version | |
ENV RUBY_VERSION 'ruby 2.2' | |
# Install packages | |
RUN apt-get update && apt-get -y install wget \ | |
build-essential \ |
I hereby claim:
To claim this, I am signing this object:
# Run this command | |
lsof -i :3000 | |
~/_dev/kyan/project(kyan_rails_3_2_13_upgrade) $ lsof -i :3000 | |
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
ruby 8511 duncan 15u IPv4 0xf8ff7ea926138439 0t0 TCP *:hbci (LISTEN) | |
# kill the rogue PID | |
kill 8511 |
cd /etc/ssl | |
openssl req -nodes -newkey rsa:2048 -keyout domain.key -out domain.csr | |
Generating a 2048 bit RSA private key | |
.................................................................................+++ | |
........................+++ | |
writing new private key to 'domain.key' | |
----- | |
You are about to be asked to enter information that will be incorporated | |
into your certificate request. |
Must include one number, one upper and lower case letter and be between 8 and 40 characters
/^(?=.*\d)(?=.*?[a-z])(?=.*?[A-Z]).{8,40}$/
Use the xattr command. You can inspect the extended attributes:
$ xattr s.7z
com.apple.metadata:kMDItemWhereFroms
com.apple.quarantine
and use the -d option to delete one extended attribute:
$ xattr -d com.apple.quarantine s.7z
$ xattr s.7z
$ openssl pkcs12 -nodes -in /path/to/my/cert.p12 -out /pathto/my/cert.pem |