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
| // | |
| /* You may copy+paste this file and use it as it is. | |
| * | |
| * If you make changes to your about:config while the program is running, the | |
| * changes will be overwritten by the user.js when the application restarts. | |
| * | |
| * To make lasting changes to preferences, you will have to edit the user.js. | |
| */ | |
| /**************************************************************************** |
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
| public function disable_xmlrpc() { | |
| add_filter( 'xmlrpc_enabled', '__return_false' ); | |
| add_action( | |
| 'xmlrpc_call', | |
| function () { | |
| wp_die( 'XML-RPC services are disabled on this site.', 'XML-RPC Disabled', array( 'response' => 403 ) ); | |
| } | |
| ); | |
| } |
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
| public function disable_user_endpoint() { | |
| add_filter( | |
| 'rest_authentication_errors', | |
| function ( $access ) { | |
| if ( ! isset( $_SERVER['REQUEST_URI'] ) ) { | |
| return $access; | |
| } | |
| if ( ! is_user_logged_in() || ! current_user_can( 'list_users' ) ) { |
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
| “what|why|how|when|where|who|^is|^are|vs” |
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
Show hidden characters
| { | |
| "post frontmatter": { | |
| "prefix": "fm", | |
| "body": [ | |
| "---", | |
| "title: $1", | |
| "date: $CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T$CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND$CURRENT_TIMEZONE_OFFSET", | |
| "id: $UUID", | |
| "tags:", | |
| " - $2", |
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
| local wezterm = require 'wezterm' | |
| local module = {} | |
| function module.apply_to_config(config) | |
| config.inactive_pane_hsb = { | |
| saturation = 0.8, | |
| brightness = 0.7 | |
| } |
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
| "$schema" = 'https://starship.rs/config-schema.json' | |
| format = """ | |
| [\uE0B6](fg:blue)[$directory](bg:blue)\ | |
| [\uE0B0](fg:blue bg:red)$git_branch\ | |
| [\uE0B0](fg:red bg:green)$git_status\ | |
| [\uE0B0](fg:green bg:none) $all $character\ | |
| """ | |
| palette = 'catppuccin_frappe' |
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
| javascript:(function()%7Bvar%20url%20%3D%20document.URL%3B%0Avar%20newURL%20%3D%20%60https%3A%2F%2Fweb.archive.org%2Fweb%2F%24%7Burl%7D%60%3B%0A%0Awindow.location.href%20%3D%20newURL%3B%7D)()%3B |
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
| javascript:(function(){var selectedText=window.getSelection().toString().trim();var searchUrl=selectedText?'https://en.wikipedia.org/wiki/Special:Search?search='+encodeURIComponent(selectedText):'https://en.wikipedia.org/wiki/Main_Page';window.open(searchUrl,'_blank');})(); |
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
| add_action( 'customize_register', function ( $manager ) { }, 10, 1 ); |
NewerOlder