docker run --name centos -t centos:8 bash ls /
docker export centos -o centos8.tar
mkdir -p D:\wsl\CentOS8
wsl --import CentOS8 D:\wsl\CentOS8 centos8.tar
# Set default distro
wsl -s CentOS8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| forfiles -p "C:\Program Files (x86)\Symantec\LiveUpdate Administrator\clu-prod" -s -m *.* -d -1 -c "cmd /c del @path" | |
| explorer "C:\Program Files (x86)\Symantec\LiveUpdate Administrator\clu-prod" | |
| call aws s3 rm s3://my-bucket/clu-prod --recursive | |
| call aws s3 cp "C:/Program Files (x86)/Symantec/LiveUpdate Administrator/clu-prod/" s3://my-bucket/clu-prod --recursive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| // This file was initially generated by Windows Terminal 0.11.1121.0 | |
| // It should still be usable in newer versions, but newer versions might have additional | |
| // settings, help text, or changes that you will not see unless you clear this file | |
| // and let us generate a new one for you. | |
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", |
const feathers = require('@feathersjs/feathers');
const socketio = require('@feathersjs/socketio');
const { socket: commons } = require('@feathersjs/transport-commons');
const assert = require('assert');
const { EventEmitter } = require('events');
const messages = require('../src/messages');
describe('\'messages\' service', () => {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.7' | |
| services: | |
| zookeeper: | |
| container_name: zookeeper | |
| image: docker.io/bitnami/zookeeper:3.8 | |
| ports: | |
| - "2181:2181" | |
| volumes: | |
| - "zookeeper_data:/bitnami" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.1' | |
| services: | |
| nginx-proxy: | |
| image: jwilder/nginx-proxy:alpine | |
| restart: unless-stopped | |
| environment: | |
| # Disable redirect and HSTS | |
| HTTPS_METHOD: noredirect | |
| # Disable Diffie-Hellman parameters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const axios = require('axios') | |
| process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0' | |
| if (process.argv.length < 3) { | |
| console.info(`Usage: node delete-image <image_name>`) | |
| process.exit(1) | |
| } | |
| const imageUrl = new URL(`http://${process.argv[2]}`) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ARG BASE_REGISTRY=docker.io | |
| ARG BASE_IMAGE=library/nginx | |
| ARG BASE_TAG=latest | |
| # Stage 1 - Build base image with nginx | |
| FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} as base | |
| # Stage 2 - the build process | |
| FROM $BASE_REGISTRY/webserver as builder | |
| # Clear NODE_ENV variable to allow devDependencies to be installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install docker | |
| apt install docker.io | |
| # Use following if `apt install docker.io` not available | |
| apt update | |
| apt install apt-transport-https ca-certificates curl gnupg lsb-release -y | |
| curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ | |
| $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
| apt update |