sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
-> https://coderwall.com/p/zguz_w/docker-remove-all-exited-containers
docker rmi $(docker images -f "dangling=true" -q)
(sometimes need to force with -f
)
<snippet> | |
<content><![CDATA[ | |
/** @requirement missing */ | |
it('$1', function () { | |
$2 | |
}); | |
]]></content> | |
<tabTrigger>it</tabTrigger> | |
<scope>source.js</scope> | |
<description>Insert New Test</description> |
$httpBackend.expect('GET', '/Customer/1', null).respond({ | |
id: 1, | |
name: 'John Doe', | |
age: 42, | |
purchases: [ | |
{ | |
id: 1, | |
items: [ | |
{ name: 'Shampoo' }, | |
{ name: 'Soap' } |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body ng-app="mine"> | |
<div ng-controller="myCtrl as ctrl"> | |
<my class="red" ng-click="increment()"></my> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>ShadowDOM Events</title> | |
<style> | |
div { | |
box-sizing: border-box; | |
} |
'use strcit'; | |
var gulp = require('gulp'), | |
ts = require('gulp-typescript'), | |
sourcemaps = require('gulp-sourcemaps'), | |
concat = require('gulp-concat'), | |
browserSync = require('browser-sync'), | |
reload = browserSync.reload, |
; CMD+TAB -> Application Switching | |
<#Tab::AltTab | |
!Tab::return | |
; Remap <> and ^° | |
;SC029::Send {<} | |
;+SC029::Send {>} | |
;$<::Send {^} | |
;+$<::Send {°} ;doesnt work |
import path from 'path'; | |
import webpack from 'webpack'; | |
import BrowserSyncPlugin from 'browser-sync-webpack-plugin'; | |
import ExtractTextPlugin from 'extract-text-webpack-plugin'; | |
import HtmlWebpackPlugin from 'html-webpack-plugin'; | |
import bourbon from 'node-bourbon'; | |
import argv from './gulp/argv'; |
this.state$ = Observable | |
.create((observer:any) => { | |
this.store.subscribe(() => observer.next(this.store.getState())); | |
}) | |
.startWith(this.store.getState()); |
sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm
-> https://coderwall.com/p/zguz_w/docker-remove-all-exited-containers
docker rmi $(docker images -f "dangling=true" -q)
(sometimes need to force with -f
)
# Remove all stopped containers. | |
function docker-stop () { | |
if [[ $(docker ps -a -q) ]]; then | |
docker rm $(docker ps -a -q) | |
echo -e "\xf0\x9f\x93\xa6 ➡ \xf0\x9f\x92\xa5 All stoped containers removed!" | |
else | |
echo -e "\xf0\x9f\x91\x8c Nothing to stop!" | |
fi | |
} |