06 jun 2019
DECBP
04 apr 2019
прочитать прошивку из Anet A6:
avrdude -p ATmega1284P -P /dev/ttyUSB0 -c arduino -b 57600 -Uflash:r:"anet_firmware_error".hex:i
24 feb 2019
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
11 jun 2018
28ffb2918116 - d
25 apr 2018
DROP INDEX <index> ON <table>;


ALTER TABLE <table>
ADD FULLTEXT INDEX `<index>`
(`<column>`);
15 mar 2018
если в битрик24 не создался диск для сотрудника:
CModule::IncludeModule('disk');
Bitrix\Disk\Driver::getInstance()->addUserStorage($userId);
14 feb 2018
[mysql open_files_limit]
https://dima.stefantsov.com/izmenit-limit-open-files-limit-max_open_files-mysql-server/
19 dec 2017
13m Mactracker
31 may 2017
http://repos.1c-bitrix.ru/yum/bitrix-env-crm.sh
24 feb 2017
mysqlcheck -u root -p --auto-repair --optimize --all-databases
08 jan 2017
docker rm $(docker ps -a -q -f status=exited)
16 oct 2016
sierra app quarantine:
sudo xattr -rd com.apple.quarantine
27 jun 2016
docker none:none
docker rmi $(docker images -f "dangling=true" -q)
14 may 2016
orange pi pc cpu temperature:

watch cat /sys/class/thermal/thermal_zone0/temp
06 feb 2016
Проблема:
$./btsync
bash: /usr/bin/btsync: No such file or directory

Решение:
sudo ln -sf /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3
02 feb 2016
bitrix php and db datetime:
date_default_timezone_set("Etc/GMT-3");

Для базы данных добавьте в /bitrix/php_interface/after_connect_d7.php:
$connection = Bitrix\Main\Application::getConnection();
$connection->queryExecute("SET LOCAL time_zone='".date('P')."'");

В файл /bitrix/php_interface/after_connect.php
$DB->Query("SET LOCAL time_zone='".date('P')."'");
19 jan 2016
airport:
/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -s
sudo networksetup -setairportpower en1 off
sudo networksetup -setairportpower en1 on
16 jan 2016
чтобы подобрать значение table_open_cache:
SHOW GLOBAL STATUS LIKE 'Opened_tables';
18 jul 2015
brew qemu dependencies: libtasn1, nettle, gnutls
19 may 2015
nvram boot-args=kext-dev-mode=1
24 nov 2014
exclude folder d in b folder:
tar -zcf b.tgz b --exclude="b/d"
08 nov 2014
OS X Yosemite включить автоповтор при зачатии клавиши (необходимо перелогиниться):
defaults write -g ApplePressAndHoldEnabled -bool false
17 sep 2014
add nophoto.png
dd(CFile::SaveFile(CFile::MakeFileArray('nophoto.png'), 'iblock'));
11 sep 2014
grep -Rl "User username" /etc/vhosts
26 jul 2014
debug smtp server:
python -m smtpd -n -c DebuggingServer localhost:25