Do not use free wordpress Theme

New to wordpress? and wanted to have a website? please do not use free wordpress theme.

You may be amazed by how fast to build one but later it may be very difficult to update it.

As quoted below:

“While the core WordPress is developed by Automatic Inc, a professional web development company, who pay really close attention to details, most third-party plugins and themes are created by unskilled persons.

Not optimized code can not only slow down your site or cause errors, but can also be the back-door for a hacker to break into your site.”

https://webhostingmedia.net/when-not-use-wordpress/

Advertisements

Install GULP dependencies

sudo npm install minimist gulp-autoprefixer browser-sync gulp-changed gulp-concat stream-combiner less chalk gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del –save-dev

VIM Tree configurations

execute pathogen#infect()
syntax on
filetype plugin indent on

cd /var/www/

map <F2> :NERDTreeToggle<CR>
“open Nerd Tree in folder of file in active buffer
” map <Leader>nt :NERDTree %:p:h<CR>

autocmd vimenter * NERDTree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists(“s:std_in”) | NERDTree | endif

autocmd bufenter * if (winnr(“$”) == 1 && exists(“b:NERDTreeType”) && b:NERDTreeType == “primary”) | q | endif

:set number
:set mouse=a

let g:airline#extensions#tabline#enabled = 1 3

let g:airline#extensions#tabline#fnamemod = ‘:t’

let g:nerdtree_tabs_open_on_console_startup=1

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
— VISUAL — 1,1 All

Rails validate phone and email

validates_format_of :phone, with: /\A(\d{10}|\(?\d{3}\)?[-. ]\d{3}[-.]\d{4})\z/
validates_format_of :email, with: /\A[\w]([^@\s,;]+)@(([\w-]+\.)+(com|edu|org|net|gov|mil|biz|info))\z/i



wow!!!! thats complicated

validates_format_of :email, :with => /@/


thansk to this blogger : http://davidcel.is/blog/2012/09/06/stop-validating-email-addresses-with-regex/

Vim set indent

1. edit ~/.vimrc file

vi ~/.vimrc

 

2. And add this set of commands to the vimrc file.

set expandtab
set shiftwidth=2
set softtabstop=2
filetype plugin indent on

 

3. Save the changes

:wq!

iptables -I INPUT -p tcp --dport 3000 -j ACCEPT

should do what you want.

 

If you want rules saved so after reboot all will be ok, do:

service iptables save


Note: 
if you want to access without the port (ipaddress:3000) 
run this command

iptables -I INPUT -p tcp --dport 80 -j ACCEPT

then save and reboot:
service iptables save