Skip to content

Instantly share code, notes, and snippets.

View BruceWind's full-sized avatar

Bruce BruceWind

View GitHub Profile
@BruceWind
BruceWind / image-operation-on-macos.md
Last active December 21, 2022 10:00
Some trickies about image operation on Mac OS.

handle HEIC format

# brew install magick, at first
# convert a single image
magick convert foo.HEIC foo.jpg

# bulk convert multiple images
magick mogrify -monitor -format jpg *.HEIC
@BruceWind
BruceWind / obtaining-events-from-google-calendar.md
Last active September 6, 2022 03:03
A JavaScript to get events in this month from Google calendar.

Background

I use Google calendar for managing my schedule. But there is no approach to getting all events in text format. So I wrote this for obtaining events from Google Calendar.

How to use

  1. open Google Calendar within chrome.
  2. press F12 to open dev tool.
  3. click console tab.
  4. copy and paste this code below.
@BruceWind
BruceWind / Benchmarks_of_computer_building_Android_Proj.md
Last active February 22, 2023 07:02
benchmark of computer building with Android project.

Previous test results

The result of building on this project: https://github.com/yozhik/AndroidStudioBenchmark

Results:

Computer CPU RAM/swap system other environment Date Spent
DeskMini 4650G 16G,16G ubuntu 20.04.3 JDK11,gradle 7.0 2022,Jun 1m14s
MBP M1 MAX 64G Mac OS none 2021 1m26s
Dell insp5505 4500u 16G,16G ubuntu 20.04.3 JDK11,gradle 7.0 2022,Jun 1m30s
@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 / ubuntu-touchpad.md
Last active June 25, 2022 09:32
How to Enable / Configure Multi-Touch Gestures in Ubuntu 20.04 & Higher
@BruceWind
BruceWind / Cloudflare-scan-result.md
Last active October 9, 2022 08:41
An IP list is result of scanning cloudflare CDN points.

This list below has been sorted by bandwidth.

IP 地址 已发送 已接收 丢包率 平均延迟 下载速度 (MB/s)
104.25.185.46 4 4 0.00 127.80 25.82
104.27.88.69 4 4 0.00 127.78 25.75
172.67.93.142 4 4 0.00 127.72 23.00
172.67.89.105 4 4 0.00 128.28 22.84
104.20.83.220 4 4 0.00 128.74 21.82
104.17.120.184 4 4 0.00 128.46 21.42
@BruceWind
BruceWind / code-server-setup.md
Last active August 23, 2021 02:26
It is a tutorial about setup a code-server.

It is a tutorial about setup a code-server for your remote coding.

First, run these commands on your terminal.

sudo apt  install npm -y
sudo npm install -g n
sudo curl -fsSL https://code-server.dev/install.sh | sh
@BruceWind
BruceWind / establish_a_RTP_server_with_docker.md
Last active August 12, 2021 02:51
A RTP server hold RTP stream I require.
docker run -it --rm --name easydrawin -p 5004-5007:5004-5007/udp -p 8554:8554 -p 554:554 -p 7777:7777 -p 10008:10008 alextheloafer/easydarwin

By the time it established, you are able to push RTP stream into it. Open url http://localhost:10008/ to look into it.

Other infomation or guidance in there: EasyDarwin.

@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 / docker-ossrs.md
Created May 10, 2021 08:37
establish rtmp server in ossrs.

If you want all of play protocols, this docker image is first recommendation.

docker pull ossrs/srs:3
docker run --rm -p 1935:1935 -p 1985:1985 -p 8080:8080 ossrs/srs:3