diff --git a/README.md b/README.md index a12b830..90abeb2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,29 @@ # eBPF Snippets +Code-snippets for developing eBPF programs +![alt text](./media/usage.gif) + + +## Installation + + +1. GOTO latest [release](https://github.com/h0x0er/ebpf-snippets/releases) and download the `vsix` file. + +![alt text](./media/release.png) + +2. In vscode, hit `ctrl+shift+p`, + 1. type `install from vsix` and hit-enter, then + 2. choose the downloaded `vsix file` + +![alt text](./media/install-vscode.png) + +**Enjoy :)** + + + +### References + +- https://docs.ebpf.io/ +- https://docs.kernel.org/bpf/libbpf/program_types.html -**Enjoy!** diff --git a/docs/dev-notes.md b/docs/dev-notes.md index 5fab1c7..c160ec6 100644 --- a/docs/dev-notes.md +++ b/docs/dev-notes.md @@ -1,3 +1,8 @@ +## snippet-syntax + +- https://code.visualstudio.com/docs/editing/userdefinedsnippets#_snippet-syntax + + ## to pack extension - https://code.visualstudio.com/api/working-with-extensions/publishing-extension#vsce \ No newline at end of file diff --git a/media/install-vscode.png b/media/install-vscode.png new file mode 100644 index 0000000..d1bfedd Binary files /dev/null and b/media/install-vscode.png differ diff --git a/media/release.png b/media/release.png new file mode 100644 index 0000000..9b338d7 Binary files /dev/null and b/media/release.png differ diff --git a/media/usage.gif b/media/usage.gif new file mode 100644 index 0000000..225cb8e Binary files /dev/null and b/media/usage.gif differ diff --git a/package.json b/package.json index be5a527..d81e9ec 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,20 @@ { "name": "ebpf-snippets", "displayName": "eBPF Snippets", - "description": "Short code-snippets for developing eBPF programs", - "repository": {"url": "https://github.com/h0x0er/ebpf-snippets.git"}, + "description": "Code-snippets for developing eBPF programs", + "repository": { + "type": "git", + "url": "https://github.com/h0x0er/ebpf-snippets" + }, + "author": { + "name": "h0x0er", + "url": "https://h0x0er.github.io/" + }, "version": "0.0.1", "engines": { - "vscode": "^1.103.0" + "vscode": "^1.0.0" }, - "publisher": "", + "publisher": "h0x0er", "categories": [ "Snippets" ],