This file contains hidden or 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 netstat -plten | grep {PORT} | |
sudo kill -8 {PID} |
This file contains hidden or 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
def flattify(array) | |
array.each_with_object([]) do |element, result| | |
flattened = element.is_a?(Array) ? flattify(element) : element | |
result.push(flattened) | |
end | |
end | |
puts flattify([[1, 2, [3]], 4]) |
This file contains hidden or 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
SELECT | |
table_schema, | |
ROUND(SUM(data_length + index_length) / 1024 / 1024) "size, MB" | |
FROM information_schema.TABLES | |
WHERE table_schema NOT IN ('mysql', 'information_schema', 'performance_schema', 'test') | |
GROUP BY table_schema; |
This file contains hidden or 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 -i |grep -C4 -i version |
This file contains hidden or 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.debiantutorials.com/install-mysql-server-5-6-debian-7-8/ |
This file contains hidden or 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
ab -n 1000 -c 10 -k -H "Accept-Encoding: gzip, deflate" http://symfony-bootstrap.local/ |