20180510

Updated vimrc

set number
syntax on
set tabstop=4
set autoindent

set cursorline
hi CursorLine term=bold cterm=bold ctermbg=DarkBlue
hi LineNr ctermfg=grey guifg=#2b506e guibg=#000000
hi CursorLineNr  term=bold ctermfg=Yellow gui=bold guifg=Yellow ctermbg=DarkBlue

set showmatch
set expandtab
set shiftwidth=4

20180419

Sending JSON data via curl

curl -i -H "Content-Type: application/json" \
-X POST -d '{"name":"Zuck","type":"Snake"}' \
http://127.0.0.1:8080/animal

-X [DELETE|POST|GET]

20171229

vi tricks

:sp  # opens another file in a vertical window
:vs  # opens another file in a horizontal window

20171220

Get website cert info via CLI

echo | openssl s_client -showcerts -servername r.inq.ph -connect r.inq.ph:443 2>/dev/null | openssl x509 -inform pem -noout -text

What's your vimrc?

set number
syntax on
set tabstop=2
set shiftwidth=2
set autoindent

set cursorline
highlight CursorLine term=bold cterm=bold ctermbg=DarkBlue

set expandtab
set showmatch

20170119

.bashrc / .profile

PS1="\n\[\e[30;1m\](\[\e[34;1m\]\u@\[\e[32;1m\]\h\[\e[30;1m\])-(\[\e[31;1m\]\t\[\e[30;1m\])-(\[\[\e[32;1m\]\w\[\e[30;1m\])\[\e[30;1m\]\n(jobs:\[\e[34;1m\]\j\[\e[30;1m\])\`if [ \$? -eq 0 ]; then echo \[\e[32m\] \(^_^\); else echo \[\e[31m\] \(o\.O\) ; fi\`\[\e[0m\] $ "

20140102

Installing PHP 5.2.17 on CentOS 5.x

But why? Don't ask... Install EPEL Repo: http://ftp.riken.jp/Linux/fedora/epel/5/i386/repoview/epel-release.html Install CentALT: http://centos.alt.ru/pub/repository/centos/readme.txt done

20131203

Usefull varnish monitoring commands

varnishlog -c -m"VCL_call:hit" | grep RxURL
varnishlog -c -m"VCL_call:miss" | grep RxURL
varnishlog -a -w /tmp/varnish.log
varnishlog -r /tmp/varnish.log
varnishlog -i RxHeader -I Cookie

varnishtop -i RxHeader -I \^User-Agent
varnishtop -i RxRequest
varnishtop -i RxHeader -I \^Host
varnishtop -i RxHeader -I Cookie