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
cat < /dev/tcp/mail.localhost.ru/22 |
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
sudo lsblk -o name,mountpoint,label,size,uuid | |
fdisk -l | |
mkfs -t ext4 /dev/ssd #mkfs -t xfs /dev/ssd | |
mkdir mntssd | |
mount /dev/ssd mntssd | |
mc -e /etc/fstab | |
/dev/ssd /mntssd ext4 defaults 0 2 | |
mount -a |
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 | |
return array ( | |
'cache' => array( | |
'value' => array ( | |
'type' => 'memcache', | |
'memcache' => array( | |
'host' => 'unix:///tmp/memcached.sock', | |
'port' => '0' | |
), | |
'sid' => $_SERVER["DOCUMENT_ROOT"]."#01" |
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
sudo yum install -y sshfs | |
sshfs root@127.0.0.1:/ /var/mnt/ |
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
mysqldump --user=username --password=password --default-character-set=latin1 --skip-set-charset dbname > dump.sql | |
sed -r 's/latin1/utf8/g' dump.sql > dump_utf.sql | |
mysql --user=username --password=password --execute="DROP DATABASE dbname; CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;" | |
mysql --user=username --password=password --default-character-set=utf8 dbname < dump_utf.sql |
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 | |
//title: SocketTest | |
ini_set("display_errors", true); | |
error_reporting(6135); | |
$a = fsockopen ("ssl://pub.bitrix24.site", 443, $b, $c, 5); | |
echo $a, $b, $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
<?php | |
/** | |
* Images resize on the fly | |
**/ | |
$arParams['THUMB']['width'] = 48; | |
$arParams['THUMB']['height'] = 48; | |
$arParams['PREVIEW_PICTURE']['height'] = 275; | |
$arParams['PREVIEW_PICTURE']['width'] = 350; | |
$arFilter = array("name" => "sharpen", "precision" => 90); |
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 | |
define('STOP_STATISTICS', true); | |
define('BX_SECURITY_SHOW_MESSAGE', true); | |
define("NO_KEEP_STATISTIC", true); | |
define("NO_AGENT_STATISTIC", true); | |
define("NOT_CHECK_PERMISSIONS", true); | |
require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php'); | |
use Bitrix\Main\Application; |
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
http://www.softpanorama.org/OFM/MC/mc_tips.shtml | |
For directories history and whenever it is present Alt-y moves to the previous directory in the history, equivalent to clicking the < with the mouse. | |
[Alt-u] moves to the next directory in the history, equivalent to clicking the > with the mouse. | |
[Alt-Shift-h, Alt-H] displays the directory history, equivalent to depressing the 'v' with the mouse. | |
[Alt-p, Alt-n] use these keys to browse through the command history. Alt-p takes you to the last entry, Alt-n takes you to the next one. | |
[Alt-h] displays the history for the current input line. |
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
BX.UI.Dialogs.MessageBox.confirm("Message"); | |
BX.UI.Dialogs.MessageBox.confirm("Message", () => {}); | |
BX.UI.Dialogs.MessageBox.confirm("Message", () => {}, "Продолжить"); | |
BX.UI.Dialogs.MessageBox.confirm("Message", () => {}, "Продолжить", () => {}); | |
BX.UI.Dialogs.MessageBox.confirm("Message", "Title"); | |
BX.UI.Dialogs.MessageBox.confirm("Message", "Title", () => {}); | |
BX.UI.Dialogs.MessageBox.confirm("Message", "Title", () => {}, "Продолжить", () => {}); | |
//https://dev.1c-bitrix.ru/api_d7/bitrix/ui/dialogs/dialogs.php |
NewerOlder