Auto-approves read-only MCP tools to eliminate constant permission dialogs.
This hook is now officially integrated into the MCP Memory Service project as of v8.73.0!
Auto-approves read-only MCP tools to eliminate constant permission dialogs.
This hook is now officially integrated into the MCP Memory Service project as of v8.73.0!
Based on this blogpost.
To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.
Install with Homebrew:
$ brew install gpgThis is a mini-tutorial of sorts for getting started with gdb on the Switch, with the target audience being people who want to mod and/or reverse games, with no prerequisite knowledge of gdb. The goal will be to walk you through some of the basic workflows needed to use a debugger on the Switch, while being brief enough for skimming for when you forget things.
If some part is unclear, your OS doesn't have install instructions, or you feel part of your workflow should be added here, feel free to comment any additions.
(If you only need a quick reference Jump to the Appendix)
First off you'll need a version of GDB compatible with aarch64. This can be obtained via either a distribution of
| #include <SDL2/SDL.h> | |
| #include <SDL2/SDL_syswm.h> | |
| #include <Windows.h> | |
| typedef void (*ModalLoopCallback)(void*); | |
| typedef void (*ModalLoopResizeCallback)(SDL_Window*, int, int, void*); | |
| ModalLoopCallback g_modal_loop_callback = NULL; | |
| void* g_modal_loop_userdata = NULL; | |
| ModalLoopResizeCallback g_modal_loop_resize_callback = NULL; |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
| // | |
| // Swift UnsafePointer converter | |
| // Kaz Yoshikawa | |
| // | |
| // These code demonstrates how to convert swift pointers to the other forms of pointers. | |
| // | |
| // Source: | |
| // Swift の Array やら ArraySlice やらポインタの変換まとめ | |
| // https://qiita.com/Satachito/items/4c39c9b06304e4d86660 | |
| // |
| ##[ | |
| Fixed point arithmetic | |
| A fixed point number is an alternative representation for a real number. | |
| IEEE floats, `f32` and `f64`, being the standard format in processors with | |
| Floating Point Units (FPU). You should consider using fixed numbers on | |
| systems where there's no FPU and performance is critical as fixed point | |
| arithmetic is faster than software emulated IEEE float arithmetic. Do note | |
| that fixed point numbers tend to be more prone to overflows as they operate | |
| in ranges much smaller than floats. |
| extension Collection { | |
| public subscript(inplace_slice bounds: Range<Index>) -> Slice<Self> { | |
| get { fatalError() } | |
| _modify { | |
| var slice = Slice(base: self, bounds: bounds) | |
| yield &slice | |
| } | |
| } | |
| } |
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !