Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); | |
| /* | |
| * Plugin Name: Optimator | |
| * Plugin URI: https://aris.web.id/ | |
| * Description: Some basic WordPress configuration optimization to make it better than default. This plugin contains other simplified plugins and snippets. | |
| * Author: Aris Ripandi | |
| * Author URI: https://aris.web.id/ | |
| * Version: 1.0 | |
| * License: GPLv3 | |
| * Text Domain: optimator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class FigureExtParsedown extends Parsedown { | |
| // Matches Markdown image definition | |
| private $MarkdownImageRegex = "~^!\[.*?\]\(.*?\)$~"; | |
| public function __construct () { | |
| // Add blockFigure to non-exclusive handlers for text starting with ! | |
| $this->BlockTypes['!'][] = 'Figure'; |
The first time you have to set it up with a cable. The Oculus Quest has a USB-C port (the one used for charging). Use this to connect to your computer.
Your Quest needs to be in Developer mode. This is super easy, just open your companion app on your phone and go to Settings and enable Developer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // zod schema | |
| z.object({ | |
| // valid if string or: | |
| optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
| nullable: z.string().nullable(), // field explicitly `null` | |
| nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
| }); | |
| // type | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WORKSPACE_ID=$(./get_cursor_workspace_id.sh <path>) sqlite3 "$HOME/Library/Application Support/Cursor/User/workspaceStorage/$WORKSPACE_ID/st | |
| ate.vscdb" "SELECT value FROM ItemTable WHERE key = 'notepad.reactiveStorageId';" | python3 -c "import sys, json; pri | |
| nt(json.dumps(json.loads(sys.stdin.read()), indent=2))" 2>/dev/null | jq '.notepads | to_entries[] | .value | {name: | |
| .name, content: .text} ' |
OlderNewer