Skip to content

Instantly share code, notes, and snippets.

View hiend's full-sized avatar

Dmitry Averbakh hiend

View GitHub Profile
0xd05b5852f67843e9a86087633461d1da4c4d9d63
### Keybase proof
I hereby claim:
* I am hiend on github.
* I am hiend (https://keybase.io/hiend) on keybase.
* I have a public key whose fingerprint is 10B8 968C C01E A1E0 8FD0 AC7C B0A2 121D 3EA7 E845
To claim this, I am signing this object:
@hiend
hiend / jetbrains-phpstorm.desktop
Created March 23, 2015 14:29
phpStorm unity launcher with read .bashrc (need when phpfarm, nvm, rvm, etc is installed locally)
[Desktop Entry]
Version=1.0
Type=Application
Name=PhpStorm
Icon=/opt/phpstorm/bin/webide.png
Exec=/bin/bash -lc "/opt/phpstorm/bin/phpstorm.sh" %f
Comment=Develop with pleasure!
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-phpstorm
@hiend
hiend / gist:c6bed7c97fecb21005f5
Last active August 29, 2015 14:17
Мониторинг всякого
Сетевая активность процесса php:
watch 'netstat -etpn|grep php'
sudo pktstat -i eth0 -nt
График сетевой активности на интерфейсе:
nload eth0
speedometer -tx eth0 -rx eth0
Дамп сетевого интерфейса:
tcpdump -i eth0
<?php
class hashThread extends Thread {
private $max = 1;
private $index = 0;
function __construct($max, $index)
{
$this->max = $max;
$this->index = $index;