Skip to content

Instantly share code, notes, and snippets.

View ManotLuijiu's full-sized avatar
🏠
Working from home

Manot Luijiu ManotLuijiu

🏠
Working from home
View GitHub Profile
@ManotLuijiu
ManotLuijiu / index.html
Created May 14, 2022 11:27
Using Grid to center
<div class="container">
<h1>Center an element both Horizontally and Vertically using grid</h1>
</div>
@ManotLuijiu
ManotLuijiu / nanorc
Created September 8, 2021 12:13
Enable colorize for nano on Mac
set autoindent
set historylog
set linenumbers
set numbercolor lagoon,black
set functioncolor lagoon,black
set titlecolor lagoon,black
set mouse
set regexp
set speller "aspell -x -c"
set tabsize 4
@ManotLuijiu
ManotLuijiu / crontab_e.txt
Last active September 3, 2021 04:37
updateNVM.sh via crontab and zsh script
20 14 1 * * /bin/zsh ~/Documents/CustomScripts/updateNVM.sh
@ManotLuijiu
ManotLuijiu / vimrc
Created August 27, 2021 11:25
Put this file in folder ~/.vim
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
port 13000
unixsocket /var/run/redis/redis-13000.sock
pidfile /var/run/redis/redis-13000.pid
logfile /var/log/redis/redis-13000.log
dbfilename redis_cache.rdb
dir /var/lib/redis13000
maxmemory 819mb
maxmemory-policy allkeys-lru
@ManotLuijiu
ManotLuijiu / redis12000.conf
Created August 24, 2021 05:20
Redis Configuration for Debian
port 12000
unixsocket /var/run/redis/redis-12000.sock
pidfile /var/run/redis/redis-12000.pid
logfile /var/log/redis/redis-12000.log
dbfilename redis_socketio.rdb
dir /var/lib/redis12000
@ManotLuijiu
ManotLuijiu / redis11000.conf
Created August 24, 2021 05:00
Redis Configuration file for Debian
port 11000
unixsocket /var/run/redis/redis-11000.sock
pidfile /var/run/redis/redis-11000.pid
logfile /var/log/redis/redis-11000.log
dbfilename redis_queue.rdb
dir /var/lib/redis11000
@ManotLuijiu
ManotLuijiu / mariadb.cnf
Created August 24, 2021 01:07
MariaDB Configuration for MeansERP
[mysqld]
# GENERAL #
user = mysql
default-storage-engine = InnoDB
socket = /var/lib/mysql/mysql.sock
pid-file = /var/lib/mysql/mysql.pid
# MyISAM #
key-buffer-size = 32M
@ManotLuijiu
ManotLuijiu / redis13000.conf
Created August 13, 2021 06:59
Redis port 13000 configuration for ERPNext
# /usr/local/etc/redis13000.conf
# Redis port 13000 configuration for ERPNext
bind 127.0.0.1 ::1
protected-mode yes
port 13000
tcp-backlog 511
@ManotLuijiu
ManotLuijiu / redis12000.conf
Created August 13, 2021 06:54
Redis port 12000 configuration for ERPNext
# /usr/local/etc/redis12000.conf
# Redis port 12000 configuration for ERPNext
bind 127.0.0.1 ::1
protected-mode ye
port 12000
tcp-backlog 511