docker ps -aq -f status=exited
docker ps -aq --no-trunc | xargs docker rm
This command will not remove running containers, only an error message will be printed out for each of them.
docker images -q --filter dangling=true | xargs docker rmi
. |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
## colors ## | |
txtblk='\033[0;30m' # Black - Regular | |
txtred='\033[0;31m' # Red | |
txtgrn='\033[0;32m' # Green | |
txtylw='\033[0;33m' # Yellow | |
txtblu='\033[0;34m' # Blue | |
txtpur='\033[0;35m' # Purple | |
txtcyn='\033[0;36m' # Cyan | |
txtwht='\033[0;37m' # White |
docker ps -aq -f status=exited
docker ps -aq --no-trunc | xargs docker rm
This command will not remove running containers, only an error message will be printed out for each of them.
docker images -q --filter dangling=true | xargs docker rmi
class TemplateEngine { | |
constructor(stringTemplate) { | |
this.template = stringTemplate; | |
} | |
format(props) { | |
let chunks = this.template.split('<%'); | |
let interped = ''; | |
chunks.forEach((chunk) => { |
var post_url = "https://giddyapps.hipchat.com/history/room/428265/2014/06/18"; | |
$("a").each(function(){ | |
var str = "" + $(this).attr("href") + "" | |
if (str.match(/gifb/)) { | |
var $form = $(this).closest("table").find("form"); | |
$.post( | |
post_url, | |
{ | |
action: "delete", | |
message_id: $form.find("input[name=message_id]").val(), |
openssl base64 -in image.ext -out image_base64.txt |
// Editor | |
.editor { | |
.gutter { | |
.line-number { | |
padding: 0 0 0 0.25em; | |
.icon-right { | |
padding-right: 0.1em | |
} |