Skip to content

Instantly share code, notes, and snippets.

View artembeloglazov's full-sized avatar
🚴

Artem Beloglazov artembeloglazov

🚴
View GitHub Profile
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=192.168.65.2
xdebug.idekey=PHPSTORM
; Profiler
xdebug.profiler_enable = 0
xdebug.mode = profile
xdebug.profiler_enable_trigger = 1
xdebug.start_with_request=trigger
@artembeloglazov
artembeloglazov / README.md
Created March 12, 2019 22:00
Full mysql dump

Скрипт архивирования всех таблиц указанного сервера mysql

Использование

git clone http://git.rg1.ru/artem/mysql_dump.git
cd ./mysql_dump
./main.sh -u USER -pPASS ...
@artembeloglazov
artembeloglazov / index.html
Created January 17, 2019 11:56
iOS Like iMessage Responsive HTML5
<div class="iphone">
<div class="border">
<div class="responsive-html5-chat">
</div>
</div>
</div>
<!-- DEMO -->
<a href="http://www.adobewordpress.com/iphone-mesajlar-ekrani" target="_blank" class="article" style="display:none">Read Article</a>
@artembeloglazov
artembeloglazov / xdebug.ini
Created September 25, 2018 12:00
Docker + xdebug
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=10.20.2.63
xdebug.idekey=PHPSTORM
#xdebug.profiler_enable=1
db.getCollection('matching_api').find({}).forEach( function(x){db.getCollection('matching_api_copy').insert(x)} );
This file has been truncated, but you can view the full file.
var edges ={
"edges": [
{
"id": 2456160,
"source_id": 2796015,
"target_id": 2796046,
"created_at": {
"date": "2016-05-25 16:03:15.000000",
"timezone_type": 3,
"timezone": "UTC"
// htmlentities_encoding на javascript'e
$('<div/>')
.text(html_string)
.text()
.replace(/&/g, '&amp;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
docker-machine regenerate-certs default
@artembeloglazov
artembeloglazov / gist:81433a9ae14c7ea344ed
Last active March 25, 2016 08:26
Получение списка клиентов внутреннего dhcp-сервера mac osx в режиме "Общий интернет"
cat /var/db/dhcpd_leases