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
| services: | |
| frps: | |
| image: snowdreamtech/frps | |
| container_name: frps | |
| restart: unless-stopped | |
| volumes: | |
| - ./frps.toml:/etc/frp/frps.toml:ro | |
| ports: | |
| - "7000:7000" | |
| - "5173:5173" |
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
| { | |
| "mcpServers": { | |
| "context7": { | |
| "type": "stdio", | |
| "command": "npx", | |
| "args": [ | |
| "-y", | |
| "@upstash/context7-mcp@latest", | |
| "--api-key", | |
| "YOUR_API_KEY" |
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
| document.querySelector('.reg_phone').addEventListener('input', (e) => { | |
| const code = '7' | |
| const phone = e.target.value?.replace(/\D+/g, ''); | |
| if(phone.indexOf(`+${code}`) !== 0) { | |
| if(phone.indexOf(code) === 0) { | |
| e.target.value = `+${phone}` | |
| } else { | |
| e.target.value = `+${code}${phone.replace('+', '')}` | |
| } | |
| } |
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
| function get_term_id_by_name_and_parent($term_name, $taxonomy, $parent_id = 0) { | |
| // Get the term by name within the specified taxonomy | |
| $term = get_term_by('name', $term_name, $taxonomy); | |
| // Check if the term exists and if it has the specified parent | |
| if ($term && $term->parent == $parent_id) { | |
| return $term->term_id; | |
| } | |
| // If the term wasn't found or the parent didn't match, return null |
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
| #1 Авто и мото | avtomoto | |
| АЗС | azs | |
| Автобизнес | avtobizness | |
| Автосалоны | avtosalon | |
| Автосервисы | avtoservis | |
| Автострахование | avtostrahovanie | |
| Автофорумы и блоги | avtoforum | |
| Автохимия | avtohim | |
| Автошколы | avtoshkola |
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
| ### VARIANT 1 | |
| #Run command | |
| sudo nvidia-settings | |
| #Ant check getting error: "ERROR: NVIDIA driver is not loaded" | |
| #Your next steps: | |
| sudo prime-select intel | |
| sudo reboot | |
| sudo prime-select nvidia |
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
| This steps should fix "Error mounting /dev/sda2 at media/ Data:unknown error when mounting /dev/sda2" | |
| $ sudo apt install --reinstall ntfs-3g | |
| $ sudo ntfsfix /dev/sda2 | |
| $ sudo mount -o ro /dev/sda2 /media/websofter |
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
| #!/bin/sh | |
| location=./`date +%Y%m%d_%H%M%S`_your_db.sql | |
| mysqldump -u root --password='your_password' your_db > $location | |
| gzip $location |
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
| /********************** */ | |
| if( is_admin() && !class_exists( 'WP_List_Table' ) ) | |
| require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); | |
| class B5F_WP_Table extends WP_List_Table | |
| { | |
| private $order; | |
| private $orderby; | |
| private $posts_per_page = 5; |
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
| APP_TAG=doska | |
| MYSQL_ROOT_PASSWORD=secret | |
| MYSQL_DB=doska | |
| MYSQL_USER=doska | |
| MYSQL_PASSWORD=secret |
NewerOlder