Invocare il debug verso PhpEd da uno script php cli
All’interno dello script aggiungere
debugbreak('[email protected]');
Dove 192.168.0.17 è indirizzo ip su cui è in essecuzione phped (localhost nel caso in cui fate il tunneling con putty)
Solo un altro blog sull’IT
All’interno dello script aggiungere
debugbreak('[email protected]');
Dove 192.168.0.17 è indirizzo ip su cui è in essecuzione phped (localhost nel caso in cui fate il tunneling con putty)
grep -niro –include=*.tpl pattern .
{$node.object.data_map.sfondopagina.content[original].full_path|ezroot}
Configurando il snmp oggi mi sono imbattuto in seguente errore:
# snmpconf -g basic_setup The following installed configuration files were found: 1: /etc/snmp/snmp.conf Would you like me to read them in? Their content will be merged with the output files created by this session. Valid answer examples: "all", "none","3","1,2,5" Read in which (default = all): no such group basic_setup
Errore era dato dal fatto che era installato il pachetto snmp, (quindi snmpwalk e snmpconf erano presenti) ma non snmpd
cd /usr/local/src wget http://nginx.org/download/nginx-1.0.0.tar.gz tar xzvf nginx-1.0.0.tar.gz cd nginx-1.0.0/
### capture all SIP packages on 5060 on all interfaces ngrep -W byline -td any . port 5060 ### capture all SIP packages containing 'username' on port 5060 on all interfaces ngrep -W byline -tqd any username port 5060
filetype plugin indent on
"set mouse=a
scriptencoding utf-8
set viewoptions=folds,options,cursor,unix,slash " better unix / windows compatibility
set history=1000
set backup " backups are nice ...
"set cursorline " highlight current line
hi cursorline guibg=#333333 " highlight bg color of current line
hi CursorColumn guibg=#333333 " highlight cursor
if has('cmdline_info')
set ruler " show the ruler
set rulerformat=%30(%=\:b%n%y%m%r%w\ %l,%c%V\ %P%) " a ruler on steroids
set showcmd " show partial commands in status line and
" selected characters/lines in visual mode
endif
if has('statusline')
set laststatus=2
" Broken down into easily includeable segments
set statusline=%<%f\ " Filename
set statusline+=%w%h%m%r " Options
set statusline+=\ [%{&ff}/%Y] " filetype
set statusline+=\ [%{getcwd()}] " current dir
"set statusline+=\ [A=\%03.3b/H=\%02.2B] " ASCII / Hexadecimal value of char
set statusline+=%=%-14.(%l,%c%V%)\ %p%% " Right aligned file nav info
endif
set backspace=indent,eol,start " backspace for dummys
set linespace=0 " No extra spaces between rows
set nu " Line numbers on
set showmatch " show matching brackets/parenthesis
set incsearch " find as you type search
set hlsearch " highlight search terms
set winminheight=0 " windows can be 0 line high
set ignorecase " case insensitive search
set smartcase " case sensitive when uc present
set wildmenu " show list instead of just completing
set wildmode=list:longest,full " comand <Tab> completion, list matches, then longest common part, then all.
set whichwrap=b,s,h,l,<,>,[,] " backspace and cursor keys wrap to
set scrolljump=5 " lines to scroll when cursor leaves screen
set scrolloff=3 " minimum lines to keep above and below cursor
set foldenable " auto fold code
set gdefault " the /g flag on :s substitutions by default
set nowrap " wrap long lines
set autoindent " indent at the same level of the previous line
set shiftwidth=4 " use indents of 4 spaces
set noexpandtab " tabs are tabs, not spaces
set tabstop=4 " an indentation every four columns
"set matchpairs+=<:> " match, to be used with %
set pastetoggle=<F12> " pastetoggle (sane indentation on pastes)
"set comments=sl:/*,mb:*,elx:*/ " auto format comment blocks
" Remove trailing whitespaces and ^M chars
autocmd FileType c,cpp,java,php,js,twig,xml,yml autocmd BufWritePre <buffer> :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")'))
" visual shifting (does not exit Visual mode)
vnoremap < <gv
vnoremap > >gv
set smartindent
autocmd BufRead *.cfg inoremap # X<c-h>#
function! InitializeDirectories()
let separator = "."
let parent = $HOME
let prefix = '.vim'
let dir_list = {
\ 'backup': 'backupdir',
\ 'views': 'viewdir',
\ 'swap': 'directory' }
for [dirname, settingname] in items(dir_list)
let directory = parent . '/' . prefix . dirname . "/"
if exists("*mkdir")
if !isdirectory(directory)
call mkdir(directory)
endif
endif
if !isdirectory(directory)
echo "Warning: Unable to create backup directory: " . directory
echo "Try: mkdir -p " . directory
else
let directory = substitute(directory, " ", "\\\\ ", "")
exec "set " . settingname . "=" . directory
endif
endfor
endfunction
call InitializeDirectories()
Per disabilitare i numeri durante editing (per esempio per fare copia incolla) digitare
:set nu!
Per evitare seguenti messaggi:
Server: OpenSIPS (1.6.4-2-tls (i386/linux)).
Content-Length: 0.
Warning: 392 xx.xx.xx.xx:5060 “Noisy feedback tells: pid=17578 req_src_ip=xx.xx.xx.xx.xx req_src_port=46498 in_uri=sip:[email protected] out_uri=sip:[email protected] via_cnt==1″.
.
In opensips.cfg impostare seguente variabile:
sip_warning=0
apt-get update apt-get install build-essential linux-headers-`uname -r` psmisc mkdir /media/cdrom mount /dev/cdrom /media/cdrom cp /media/cdrom/VMwareTools*.tar.gz /tmp cd /tmp tar xzf VMwareTools*.tar.gz cd vmware-tools-distrib ./vmware-install.pl -d
Il “trucco” è abbastanza semplice: basta usare seguente codice:
Continua…