I hereby claim:
- I am rujmah on github.
- I am rujmah (https://keybase.io/rujmah) on keybase.
- I have a public key whose fingerprint is 029E 1C3B A4ED 2386 72CA 4ADE 1680 E17F 4821 B295
To claim this, I am signing this object:
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
I hereby claim:
To claim this, I am signing this object:
# Creates am image with node and ffmpeg | |
# run: | |
# $ docker build -t reponame/imagename:version | |
FROM node:0.12 | |
RUN apt-get update \ | |
&& apt-get install yasm \ | |
&& wget http://ffmpeg.org/releases/ffmpeg-2.5.tar.bz2 \ | |
&& tar -xvf ffmpeg-2.5.tar.bz2 \ | |
&& cd ffmpeg-2.5 \ |
# template includes: | |
# cucumber and devise | |
# gem 'pg' | |
gem 'devise' | |
gem_group :development, :test do | |
gem 'pry-rails' | |
gem 'rspec-rails' |
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json" |
Remove all non running containers: docker rm $(docker ps -a -f="status=exited" -q)
see also Docker filtering
Remove unused images docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
(but check link for more)
Get list IP of all running containers docker inspect -f '{{.Name}} - {{.NetworkSettings.IPAddress }}' $(docker ps -aq)
(StackOverflow answer)
One liner to stop / remove all of Docker containers:
var multer = require('multer'); | |
var fs = require('fs'); | |
var copyFileSync = function (in, out) { | |
fs.createReadStream(in) | |
.pipe(fs.createWriteStream(out)); | |
} | |
app.post('/upload', multer({dest: './uploaddir/'}).single('ffup'), function (req, res, next) { | |
console.log('body: '+ JSON.stringify(req.body)); |
From this forum post:
Here are the steps i used to fix it.
Note that any mistake in recreating the partion will result in losing all data and/or the server will not reboot.
I would do this as the first step on a newly created instance.
I have marked the steps with <<#>> in the block below, so the are not a part of the command.
You need root permissions, so do a "sudo sh" if you are not root.
Review ports:
sudo semanage port -l | grep http_port_t
Add port:
sudo semanage port -a -t http_port_t -p tcp 8024