Skip to content

Instantly share code, notes, and snippets.

View BruceWind's full-sized avatar
🏠
Working from home

Bruce BruceWind

🏠
Working from home
View GitHub Profile
@BruceWind
BruceWind / LICENSE
Last active April 3, 2019 03:04
996.ICU_LICENSE
Copyright (c) <year> <copyright holders>
996 License Version 1.0 (Draft)
Permission is hereby granted to any individual or legal entity
obtaining a copy of this licensed work (including the source code,
documentation and/or related items, hereinafter collectively referred
to as the "licensed work"), free of charge, to deal with the licensed
work for any purpose, including without limitation, the rights to use,
reproduce, modify, prepare derivative works of, distribute, publish
@BruceWind
BruceWind / tmux-cheatsheet.markdown
Last active September 9, 2020 08:07 — forked from ryerh/tmux-cheatsheet.markdown
Tmux with Ubuntu

如果alias丢失

紧急使用可以先执行 source ~/.bash_rc

添加如下代码到~/.bash_profile之后下次启动tmux就有效了

case $- in *i*) . ~/.bashrc;; esac

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

1.生成预览:

sudo nextcloud.occ preview:generate-all

2.设置php内存:

sudo snap set nextcloud php.memory-limit=3072M
@BruceWind
BruceWind / servertesting.md
Last active August 26, 2020 06:14
Testing Server
shell> bash <(curl -Lso- https://git.io/superspeed)

shell> wget -qO- git.io/superbench.sh | bash
@BruceWind
BruceWind / PrintAllSizesOfDependencies.md
Last active December 22, 2020 09:56 — forked from medvedev/build.gradle
Gradle task that prints total dependencies size and (dependency+(size in kb)) list sorted by size desc
/* Tested with Gradle gradle-6.6.1-all.zip and gradle plugin 4.0.2 */


allprojects {
    repositories {
        afterEvaluate {
    
        tasks.register("depsize-all-configurations") {
            description = 'Prints dependencies for all available configurations'
@BruceWind
BruceWind / Asciio-docker.md
Last active July 14, 2021 14:55
Run Asciio on MacOS

What is Asciio

App::Asciio - Plain ASCII diagram.

The app is free for you drawing diagram to discribe your logics of your codes or classes. But it is can't work on MacOS, so I made this docker image to make it working on MacOS. Hope you enjoying it.

installing xquartz on MAC:

brew install xquartz
@BruceWind
BruceWind / docker-WXWork.md
Last active August 27, 2021 06:01
linux使用docker安装启动企业微信

https://github.com/BoringCat/docker-WXWork

 docker run -d --name wechat --device /dev/snd --ipc host \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v $HOME/WXWork:/WXWork \
    -v $HOME:/temp \
    -v $HOME/wine-WXWork:/home/wechat/.deepinwine/Deepin-WXWork \
 -e DISPLAY=unix$DISPLAY \
@BruceWind
BruceWind / detecting-wifi-pwd.md
Last active May 4, 2021 13:57
detect your wifi password from wifi records.

On Mac OS, you should execute:

security find-generic-password -D "AirPort network password" -a $SSID -g | grep "password:"

On Linux, you should execute:

sudo cat /etc/NetworkManager/system-connections/{$SSID}.nmconnection | grep "psk="
@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
@BruceWind
BruceWind / create_http_file_system.md
Last active June 14, 2024 02:00
Establlish my media server with docker.

filebrowser

Here is the original software code: filebrowser.

But I'd like to use docker to establish that http file system due to the fact that docker would restart its containers.

Http protocol is compatible with all of platforms.

docker pull hurlenko/filebrowser
sudo mkdir /hls