Skip to content

Instantly share code, notes, and snippets.

View liuliangsir's full-sized avatar
💻
Coding

流浪大法师 liuliangsir

💻
Coding
View GitHub Profile
@liuliangsir
liuliangsir / wasm_tools_install.sh
Created October 18, 2022 23:08 — forked from miguelmota/wasm_tools_install.sh
macOS install WebAssembly (WASM) tools (wasm-objdump)
git clone --recursive https://github.com/WebAssembly/wabt
cd wabt
make
make clang-debug
make gcc-i686-release
make clang-debug-lsan
make gcc-debug-no-re2c
chmod +x bin/
@liuliangsir
liuliangsir / README.md
Created August 30, 2022 08:28 — forked from surma/README.md
webpack-emscripten-wasm

Minimal example making webpack and wasm/Emscripten work together.

Build instructions:

  • Clone this gist
  • npm install
  • npm start
  • Open http://localhost:8080
  • Look at console
@liuliangsir
liuliangsir / README.md
Created August 30, 2022 08:28 — forked from surma/README.md
webpack-emscripten-wasm

Minimal example making webpack and wasm/Emscripten work together.

Build instructions:

  • Clone this gist
  • npm install
  • npm start
  • Open http://localhost:8080
  • Look at console
@liuliangsir
liuliangsir / git_submodules.md
Created May 6, 2022 03:23 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@liuliangsir
liuliangsir / introrx.md
Created April 15, 2022 05:57 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@liuliangsir
liuliangsir / auto-tag.sh
Last active May 23, 2022 12:04
auto name tag with a specified rule
#!/usr/bin/env bash
f() {
# 获取当前仓库最新的状态,避免本地 tag 列表不是最新的
# https://stackoverflow.com/questions/8943693/can-git-operate-in-silent-mode
# https://stackoverflow.com/questions/1204190/does-git-fetch-tags-include-git-fetch
# https://stackoverflow.com/questions/16678072/can-we-set-a-git-default-to-fetch-all-tags-during-a-remote-pull
git fetch --tags --prune --prune-tags --quiet
local latestTag
@liuliangsir
liuliangsir / html-languages.txt
Created January 19, 2022 12:37 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
@liuliangsir
liuliangsir / foobar.md
Created January 14, 2022 04:30 — forked from t32k/foobar.md
foo, bar, baz, qux, quux, corge, grault, garply, waldo, fred, plugh, xyzzy, thud
@liuliangsir
liuliangsir / git-aliases.md
Created January 5, 2022 05:56 — forked from mwhite/git-aliases.md
The Ultimate Git Alias Setup

The Ultimate Git Alias Setup

If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.

Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.

The simplest way to add an alias for a specific git command is to use a standard bash alias.

# .bashrc
@liuliangsir
liuliangsir / puppeteer-ubuntu-1804.md
Created November 8, 2021 11:24 — forked from luisca-dev/puppeteer-ubuntu-1804.md
Solution for common dependences issues using puppeteer in ubuntu 18.04 (Bionic)

puppeteer dependeces in ubuntu 18.04 (Bionic)

error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

sudo apt-get install libnss3

error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

sudo apt-get install libxss1