Linux

Docker links

Docker on Ubuntu 2 https://docs.docker.com/engine/installation/linux/ubuntulinux/#/install-the-latest-version Windows http://stackoverflow.com/questions/30496116/how-to-disable-hyper-v-in-command-line http://serverfault.com/questions/767994/can-you-run-docker-natively-on-the-new-windows-10-ubuntu-bash-userspace http://www.poweronplatforms.com/enable-disable-hyper-v-windows-10-8/ Docker articles http://stackoverflow.com/questions/17236796/how-to-remove-old-docker-containers https://techoverflow.net/blog/2013/10/22/docker-remove-all-images-and-containers/ http://severalnines.com/blog/mysql-docker-building-container-image https://docs.docker.com/engine/tutorials/dockerimages/ http://blog.thoward37.me/articles/where-are-docker-images-stored/ Docker images http://docker4wordpress.org/

Continue Reading
Linux

Autossh forward ports to whole network

Use -g swith after -L section to forward ports to whole network Other notes Configuration file : /etc/init/autossh.conf Start service:   Other links https://github.com/jokesterfr/how-to/blob/master/howhowhow/autossh.md https://www.async.fi/2013/07/autossh-with-ubuntu-upstart/ http://linux.die.net/man/1/autossh http://www.debianadmin.com/howto-use-ssh-local-and-remote-port-forwarding.html

Continue Reading
Linux Mac OS

Using ssh as proxy/tunnel between Mac OS and Linux

How to connect to remote computer with private key by using ssh: Note: If your private key was created for Windows, it will probably not work on linux/mac. It’s necessary to convert it by using puttygen (on mac or windows). You need to open it by puttygen and choose “Save as openssh” from menu. Additional …

Continue Reading
Linux

Debugging segmentation fault

Show information that save kernel when application crashed http://www.slideshare.net/noobyahoo/introduction-to-segmentation-fault-handling-5563036 http://mytechrants.wordpress.com/2009/05/22/debugging-a-segmentation-fault-using-gdb/ https://wiki.archlinux.org/index.php/Step_By_Step_Debugging_Guide

Continue Reading
Linux Mac OS

Customize OSX terminal prompt

How to customize default terminal prompt which looks like this? simply define PS1 variable with required format. To display only full path, use following: \d – date \t – time \h – hostname \# – command number \u – username \W – current directory (e.g.: Desktop) \w – current directory path (e.g.: /Users/Admin/Desktop) External links: http://stackoverflow.com/questions/14416274/how-to-suppress-or-customize-mac-terminal-shell-prompt

Continue Reading
Linux Mac OS Programming Windows

nginx and fast-cgi – tips and tricks

How to pass full path to fast-cgi app It’s necessary to configure which parameters are passed to fast-cgi application from nginx server. For this purposes serves fastcgi_param keyword. It’s a good practice to keeps all fastcgi params together. For this purposes nginx has fastcgi.conf file. This file already contains most of useful fastcgi_param bindings. To include …

Continue Reading