Open terminal
ssh-keygen -t ed25519 -C "your key title"
Provide path to custom-named ssh key
Enter a passphrase (twice for verification)
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ssh_key_custom_name
cat ~/.ssh/id_ssh_key_custom_name.pub | clip
Add new ssh key(github settings - ssh and gpg keys)
Test the setting with ssh -T [email protected]
This file contains 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
Array.from(document.styleSheets).filter((sheet) => { try { sheet.cssRules; return true; } catch (err) { console.log(`Due to CORS issues, this script can't access "${sheet.href}"`); return false; }}).map((sheet) => Array.from(sheet.cssRules).map((rule) => rule.type === rule.FONT_FACE_RULE ? rule.cssText : rule.type === rule.STYLE_RULE ? Array.from(document.querySelectorAll(rule.selectorText)).some((node) => node.getBoundingClientRect().top < window.innerHeight && window.getComputedStyle(node).display !== 'none') ? rule.cssText : null : rule.type === rule.MEDIA_RULE ? `@media ${rule.conditionText} {${Array.from(rule.cssRules).map((mediaRule) => mediaRule.type === mediaRule.FONT_FACE_RULE ? mediaRule.cssText : mediaRule.type === mediaRule.STYLE_RULE ? Array.from(document.querySelectorAll(mediaRule.selectorText)).some((node) => node.getBoundingClientRect().top < window.innerHeight && window.getComputedStyle(node).display !== 'none') ? mediaRule.cssText : null : null).filter((mediaRule) => mediaRule != null).join( |
This file contains 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
[2024-06-19 14:00:48] local.ERROR: Class 'XMLWriter' not found {"userId":1,"email":"[email protected]","exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class 'XMLWriter' not found at /var/www/domen4test.ru/data/www/olymp1.domen4test.ru/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/XMLWriter.php:7) | |
[stacktrace] | |
#0 /var/www/domen4test.ru/data/www/olymp1.domen4test.ru/vendor/composer/ClassLoader.php(578): include() | |
#1 /var/www/domen4test.ru/data/www/olymp1.domen4test.ru/vendor/composer/ClassLoader.php(432): Composer\\Autoload\\ClassLoader::Composer\\Autoload\\{closure}('/var/www/domen4...') | |
#2 [internal function]: Composer\\Autoload\\ClassLoader->loadClass('PhpOffice\\\\PhpSp...') | |
#3 /var/www/domen4test.ru/data/www/olymp1.domen4test.ru/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/ContentTypes.php(28): spl_autoload_call('PhpOffice\\\\PhpSp...') | |
#4 /var/www/domen4test.ru/data/www/olymp1.domen4test.ru/vendor/phpoffice/phpspreadsheet/src/PhpS |
This file contains 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 | |
namespace App\Http\Controllers; | |
use Illuminate\Http\RedirectResponse; | |
use Illuminate\Http\Request; | |
use Inertia\Inertia; | |
use Inertia\Response; | |
class MyController extends Controller |
This file contains 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 | |
namespace App\Http\Controllers; | |
use Illuminate\Http\RedirectResponse; | |
use Illuminate\Http\Request; | |
use Illuminate\Http\Response; | |
use Illuminate\View\View; | |
POSTS:
Get a post by id:
http://mixmeals.com/wp-json/wp/v2/posts/?filter[p]=12
Get multiple posts by id:
http://mixmeals.com/wp-json/wp/v2/posts/?include=470,469
This file contains 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
<IfModule mod_rewrite.c> | |
#Close the listing of files and folders | |
Options +FollowSymLinks -Indexes | |
#Activate mod_rewrite extension | |
RewriteEngine On | |
#### @RS | |
# Block out any script trying to base64_encode data within the URL. |
This file contains 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 brand new file | |
import axios from 'axios' | |
export default class Profile { | |
constructor() { | |
this.profileNav = document.querySelector('.profile-nav') | |
this.profileContent = document.getElementById('profileContent') | |
this.username = document.getElementById('username').textContent | |
this.events() |
- Имена полей в ответе задавать в
snake_case
(prr_page
,created_at
,system_name
,...) - Для времени использовать
ISO 8601
(формат: YYYY-MM-DDTHH:MM:SSZ) - Отдавать данные (сам контент, поля сущностей, массивы сущностей), помещая их в
data
- GET: /api/users — получить список пользователей;
- GET: /api/users/123 — получить указанного пользователя;
- POST: /api/users — создать нового пользователя;
This file contains 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
<!DOCTYPE html> | |
<html> | |
<style> | |
.custom-input { | |
font-size: 16px; | |
letter-spacing: 0.2px; | |
padding-left: 40px; | |
font-family: "Fira Sans SemiBold"; | |
margin: 0 0 26px 0; | |
padding-top: 4px; |
NewerOlder