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 / 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
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 / 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'
@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 / 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 / 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 / index.html
Created May 14, 2022 11:31
Using Flex to center
<div class="container">
<h1>Center an element both Horizontally and Vertically using flexbox</h1>
</div>
@ManotLuijiu
ManotLuijiu / xcodebuild.log
Created May 23, 2022 02:45
xcodebuild showing info on terminal launch
2022-05-23 09:06:42.839 xcodebuild[2685:28571] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-05-23 09:06:42.840 xcodebuild[2685:28571] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-05-23 09:06:50.572 xcodebuild[2722:28813] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-05-23 09:06:50.573 xcodebuild[2722:28813] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtension
@ManotLuijiu
ManotLuijiu / vimrc.log
Last active October 2, 2022 00:34
vimrc
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'preservim/nerdtree'
Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
@ManotLuijiu
ManotLuijiu / .eslintrc.json
Created December 3, 2022 06:16
import/order for eslint
{
"env": { "browser": true, "node": true, "es6": true },
"extends": ["eslint:recommended", "next/core-web-vitals"],
"rules": {
"import/order": [
1,
{
"groups": [
"external",
"builtin",