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
# Create a socat proxy to /var/run/docker.sock | |
# Usefull to connect third party apps to docker API | |
# Usage: | |
# ~ $ export DOCKER_HOST=127.0.0.1:1234 | |
docker run -d -v /var/run/docker.sock:/var/run/docker.sock \ | |
--name=docker-api-proxy -p 127.0.0.1:1234:1234 \ | |
bobrik/socat TCP-LISTEN:1234,fork UNIX-CONNECT:/var/run/docker.sock |
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
function lazyman_latest_git_tag() { | |
git tag|sort -V|grep '^[0-9]'|tail -n 1 | |
} | |
function lazyman_increment_tag_version() { | |
awk 'BEGIN { FS = "." } ; { print $1"."$2"."$3+1 }' | |
} | |
function lazyman_update_wc() { | |
git fetch && git checkout master && git merge origin/master && git checkout develop && git merge origin/develop |
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 | |
// Script written by Vladislav "FractalizeR" Rastrusny | |
// http://www.fractalizer.ru | |
//MySQL connection settings | |
$db_server = 'localhost'; | |
$db_user="root"; | |
$db_password=""; | |
mysql_connect($db_server, $db_user, $db_password) or die(mysql_error()); |