# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button
# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 1T 0 part
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
#!/bin/bash | |
PATH=/usr/bin:/usr/sbin | |
# Установка переменных | |
SITE_DIRECTORY="/var/www/mysite.ru" # Путь к директории сайта | |
BACKUP_DIRECTORY="/opt/git/site" # Путь к директории для сохранения бэкапов | |
EMAIL_RECIPIENT="mysite@mysite.ru" # Адрес получателя электронной почты | |
MAX_DIFF_SIZE=$((10 * 1024)) # 10 Кб в байтах | |
# Создание временной директории для выполнения операций |
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
import os | |
import sys | |
import time | |
import subprocess | |
import traceback | |
from pymem import Pymem, process, exception | |
############################################################################################# | |
# This is an in-memory patch that launches and patches Voicemeeter Potato in memory on startup. |
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
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c> |
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
const { VK } = require('vk-io'); | |
const { Commander, useMessage, useViewer, onEnter, ref, watch } = require('./core'); | |
const vk = new VK({ | |
token: '' | |
}); | |
const commander = new Commander(); |
Простая галерея для Bitrix по shortCode из Инфоблока
gallery.php
должен находиться в дирректории/bitrix/templates/SITE_TEMPLATE_ID/component_handlers/
result_modifier.php
должен быть в каждом шаблонеnews.detail
, где будут выводиться галереи
[gallery 000]
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
const crypto = require('crypto') //модуль для криптографии Nodejs | |
const { stringify } = require('querystring') //методы для парсинга строки | |
const url = require('url') | |
const URL = | |
'https://example.com/?vk_user_id=494075&vk_app_id=6736218&vk_is_app_user=1&vk_are_notifications_enabled=1&vk_language=ru&vk_access_token_settings=&vk_platform=android&sign=exTIBPYTrAKDTHLLm2AwJkmcVcvFCzQUNyoa6wAjvW6k', | |
CLIENT_SECRET = 'wvl68m4dR1UpLrVRli' | |
const checkVKQueryParamsSign = params => { |
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
Articles █████████████▋░░░░░░░ 65.1% | |
Videos ██████████████████▌░░ 88.3% | |
Books ████████▋░░░░░░░░░░░░ 41.4% | |
Learn React ████████████░░░░░░░░░ 57.1% | |
Learn TypeScript █████████████████████ 100.0% | |
GitHub ████████████████▊░░░░ 80.0% |
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
<? | |
class YoutubeVideo | |
{ | |
function __construct($video) | |
{ | |
$this->video = $video; | |
} | |
private function Prefix() |
NewerOlder