| --- | |
| description: | |
| globs: | |
| alwaysApply: true | |
| --- | |
| # Code Guidelines | |
| **Code Block Structure for Proposing Edits**: | |
| When proposing code changes to be applied with the `edit_file` tool, the primary goal is to clearly specify the **complete target state** of the code block being modified. Represent unchanged surrounding lines using `// ... existing code ...` (or the equivalent comment syntax for the target language). |
| { | |
| "tools": [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "codebase_search", | |
| "description": "Find snippets of code from the codebase most relevant to the search query.\nThis is a semantic search tool, so the query should ask for something semantically matching what is needed.\nIf it makes sense to only search in particular directories, please specify them in the target_directories field.\nUnless there is a clear reason to use your own search query, please just reuse the user's exact query with their wording.\nTheir exact wording/phrasing can often be helpful for the semantic search query. Keeping the same exact question format can also be helpful.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { |
Better tutorial (a little bit more complicated): https://gist.github.com/karolba/a3f1c5f8d50c67f5a19e6c8f38e53e12
- Download the "virtual" type aarch64 ISO file from https://www.alpinelinux.org/downloads/ with wget
- Execute
sudo dd if=alpine.iso of=/dev/sda - On the Oracle Cloud panel, setup a console connection and connect to the serial console.
- Execute
sudo reboot - When Alpine is launched and you are logged in as root, execute these commands in the serial console:
Use this better tutorial: https://gist.github.com/karolba/a3f1c5f8d50c67f5a19e6c8f38e53e12
- Reboot into the rescue image
- Then execute these commands:
cd /dev/shm
mkdir alpine
cd alpine
| $ mkdir /tmp/a | |
| $ cd /tmp/a | |
| $ unsquashfs /media/sd**/boot/modloop-lts | |
| $ mv squashfs-root/ lib | |
| $ tar -xzvf /etc/apk/cache/zfs-lts-*.apk | |
| $ depmod -b /tmp/a | |
| $ mksquashfs lib/ modloop-lts -noappend -always-use-fragments | |
| $ mount -o rw,remount /media/sd** | |
| # do backup but not as /filename or /boot/filename, alpine will be use it) | |
| $ mv /tmp/a/modloop-lts /media/sd**/boot/modloop-lts |
Download the extended release from https://www.alpinelinux.org/downloads/ as only it contains the zfs kernel mods at the time of this writing (2020.07.10)
Write it to a USB and boot from it.
Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.
If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.
| #!/bin/bash | |
| #change working directory to Desktop | |
| cd ~/Desktop | |
| # remove any previously existing compressed files | |
| rm -f WeChat_history* | |
| # generate the new updated | |
| tar -vczf ~/Desktop/WeChat_history$(date +%F_%R).tgz ~/Library/Containers/com.tencent.xinWeChat/Data/Library/Application\ Support/com.tencent.xinWeChat |