This blog moved to medium->https://medium.com/@cocoamaemae

Wednesday, September 14, 2016

User management on CentOS

Brief
Surmise about user management on CentOS

See the below regarding basic commands
https://gist.github.com/cocoa-maemae/fd29e2e91d0a75226b09b89e2a367231

# How to add user groups
On centos, add a file under /etc/sudoers.d


e.g.
sudo cat /etc/sudoers.d/hoge
%hoge ALL=(ALL) NOPASSWD: ALL

In this example, the left hoge is a group name.


FYI
If sudo visudo is executed, the following can be seen.
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d


includedir is commented out, but this is an unique spec, files under /etc/sudoers.d are loaded automatically.

Saturday, September 3, 2016

Hot install vim plug-ins by using dein

# After dein install is done, set dein to .vimrc. 
Regarding dein install, refer the blow.
https://cocoamaemae-tec-diary.blogspot.jp/2018/01/how-to-install-dein-for-vim-plugin.html

OS: Linux(Debian, Ubuntu, RHEL, CentOS or etc)

# Add the blow sample to $HOME/.vimrc



dein configuration sample
# Please attach the blow to $HOME/.vimrc

" dein setting
if &compatible
set nocompatible
endif
set runtimepath+=~/.dein/repos/github.com/Shougo/dein.vim

call dein#begin('~/.vim')

" Write plug-ins you want to install
call dein#add('~/.dein/repos/github.com/Shougo')
call dein#add('tpope/vim-fugitive')
call dein#add('vim-scripts/vim-auto-save')
call dein#add('vim-scripts/grep.vim')
call dein#end()

" You can add more plug-ins
call dein#save_state()

filetype plugin indent on
syntax enable

" auto save
let g:auto_save = 1



# After .vimrc is set, execute dein install on vim command mode.
:call dein#install()




Front End Development Tools

TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...