Skip to content

Instantly share code, notes, and snippets.

View BruceWind's full-sized avatar

Bruce BruceWind

View GitHub Profile
@BruceWind
BruceWind / create_http_file_system.md
Last active August 25, 2024 12:20
Establlish my media server.

portainer

docker run -d -p 1003:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce:latest

Smb in docker

sudo docker run -it --name samba  --net=host \
            -v  /media/TOSHIBA/filebrowserdata:/mount \
            -d dperson/samba -p -u "admin;admin" \
 -s "share;/mount;yes;no;no;all;none"
@BruceWind
BruceWind / start_android_emulator_with_docker.md
Last active January 29, 2024 11:03
You may have a need of emulator in order to run AndroidTes with CI or other. To meet the needs, I start up an Android emulator with docker.
  1. preparation:
  1. run the command:
docker run -d \
  --network=host \
 -e ADBKEY="$(cat ~/.android/adbkey)" \
@BruceWind
BruceWind / translate_all_Chinese_to_En_in_one_key.md
Last active December 12, 2023 15:03
One-key shell to convert all Chinese text in a repository to English.

One-key shell to convert all Chinese text in a repository to English.

I use it to translation Chinese text in my project. I share this to help so many people's time on translate their project.

# A shell, which is utilised to match all Chinese texts.

########################################################################
# Usage: