- log in to DTR from local client
docker login <dtr-url>
- (optional) create a volume to hold our old images
docker volume create registry
cp -r /path/to/registry/backup/_data /var/lib/docker/volumes/registry/.
# use ImageMagick convert | |
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
## Do this on each swarm-node | |
# store containers attached to the bridge | |
$ gwbridge_users=$(docker network inspect --format '{{range $key, $val := .Containers}} {{$key}}{{end}}' docker_gwbridge | \ | |
$ xargs -d' ' -I {} -n1 docker ps --format {{.Names}} -f id={}) | |
# stop all containers | |
# if you have stacks that restart automatically, remove them via docker stack <stackName> rm | |
$ echo "$gwbridge_users" | xargs docker stop | |
$ docker network rm docker_gwbridge | |
$ docker network disconnect -f docker_gwbridge gateway_ingress-sbox |
docker login <dtr-url>
docker volume create registry
cp -r /path/to/registry/backup/_data /var/lib/docker/volumes/registry/.
call plug#begin('~/.local/share/nvim/plugged') | |
" Handles the fzf popups | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
" The LSP client | |
Plug 'autozimu/LanguageClient-neovim', { | |
\ 'branch': 'next', | |
\ 'do': 'bash install.sh', |
$lockedFiles = "kubelet.err.log", "kubelet.log", "kubeproxy.log", "kubeproxy.err.log", "containerd.err.log", "containerd.log" | |
$netDebugFiles = "network.txt", "endpoint.txt", "policy.txt", "ip.txt", "ports.txt", "routes.txt", "vfpOutput.txt" | |
$timeStamp = get-date -format 'yyyyMMdd-hhmmss' | |
$zipName = "$env:computername-$($timeStamp)_logs.zip" | |
$paths = get-childitem c:\k\*.log -Exclude $lockedFiles | |
$paths += $lockedFiles | Foreach-Object { Copy-Item "c:\k\$_" . -Passthru } | |
$scm = Get-WinEvent -FilterHashtable @{logname='System';ProviderName='Service Control Manager'} | Where-Object { $_.Message -Like "*docker*" -or $_.Message -Like "*kub*" } | Select-Object -Property TimeCreated, Id, LevelDisplayName, Message |
#!/data/data/com.termux/files/usr/bin/python3 | |
import ipaddress | |
import os | |
import socket | |
import socketserver | |
import struct | |
# version, type, key_len | |
request_header = struct.Struct("<III") |
<# | |
.SYNOPSIS | |
Utility captures information while attempting to run test container | |
.PARAMETER ContainerName | |
Name of the container to create | |
.PARAMETER ContainerName | |
Name of the container image to run | |
.PARAMETER WaitForContainerStartSec | |
Number of seconds script should wait for container to start before capturing results |
{ lib, config, options, pkgs, ... }: | |
with lib; | |
let cfg = config.services.chrome-remote-desktop; | |
in { | |
options.services.chrome-remote-desktop = { | |
enable = mkEnableOption "Chrome Remote Desktop"; | |
user = mkOption { | |
type = types.str; | |
description = '' | |
A user which the service will run as. |