пятница, 31 мая 2019 г.

Logging out other users from the command line


show users
who -u

kill sessions with username
skill -KILL -u username


packet_write_wait: Connection to port 22: Broken pipe

configure client host /etc/ssh/ssh_config

Host *
  ServerAliveInterval 30
  ServerAliveCountMax 5

суббота, 7 апреля 2012 г.

изменить язык в netbeans 7.1.1

~/netbeans-7.1.1/etc/netbeans.conf
default:
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true"
русский:
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true --locale ru:RU"
английский:
# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true --locale en:EN"

четверг, 5 апреля 2012 г.

Install bash IDE.(vim+bash-support)


sudo apt-get install vim && mkdir -p ~/.vim && cd ~/.vim \
&& wget -q -O bash_support.3.9.zip http://www.vim.org/scripts/download_script.php?src_id=17122 \
&& unzip -q bash_support.3.9.zip

среда, 28 марта 2012 г.

Netbeans PHP не останавливается на точках останова.



problem:
  1. Netbeans Xdebug not stop at breakpoints.
solved:
  1. File ->Project Properties ->Sources
  2. uncheck checkbox "Copy files from Sources Folder to another location"


environment:
  1. Ubuntu 12.04
  2. Netbeans 7.1.1(PHP Version: 1.27.2)
  3. PHP 5.3
  4. Xdebug 2.2.0rc1
  5. /etc/php5/conf.d/xdebug.ini
    zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
      
    xdebug.remote_enable=on
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
    xdebug.remote_handler="dbgp"