What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 23:28:01
docker prune system
$ docker image prune -a WARNING! This will remove all images without at least one container associated to them. Are you sure you want to continue? [y/N] y Deleted Images: untagged: alpine:latest untagged: alpine@sha256:3dcdb92d7432d56604d4545cbd324b14e64... Add solution -
Shell/Bash 2021-08-28 01:07:02
git change multiple comments
Update the author details of historical commits Firstly, we'll need to update the commit author in our local Git config: $ git config --global user.name "Robert Lyall" $ git config --global user.email "[email protected]" Then, reset th... Add solution -
Python 2021-08-27 20:58:02
is Cross policy an issue with puppeteer / headless chrome?
const fetch = require('node-fetch') const requestInterceptor = async (request) => { try { const url = request.url() const requestHeaders = request.headers() const acceptHeader = requestHeaders.accept || '' if (url.includes("exam... Add solution -
C# 2021-08-27 16:21:01
mvc core 3.1 render action to string
using System; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Html; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Co... Add solution -
Shell/Bash 2021-08-27 01:07:01
linux command if directory exists
DIR="/etc/httpd/" if [ -d "$DIR" ]; then ### Take action if $DIR exists ### echo "Installing config files in ${DIR}..." else ### Control will jump here if $DIR does NOT exists ### echo "Error: ${DIR} not found. ... Add solution -
Shell/Bash 2021-08-26 13:47:01
docker on centos7
# To install docker on centos 7 or SL7 # From https://docs.docker.com/engine/install/centos/ sudo yum install -y yum-utils sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo # From https://stackoverflow.... Add solution -
Shell/Bash 2021-08-25 15:10:34
docker clean unused images
$ docker image prune -a WARNING! This will remove all images without at least one container associated to them. Are you sure you want to continue? [y/N] y Deleted Images: untagged: alpine:latest untagged: alpine@sha256:3dcdb92d7432d56604d4545cbd324b14e64... Add solution