Skip to content

Instantly share code, notes, and snippets.

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

Shardul Malik aqual3o

🏠
Working from home
View GitHub Profile
@aqual3o
aqual3o / init.vim
Created March 12, 2024 15:25
Neovim config
set nocompatible " disable compatibility to old-time vi
set showmatch " show matching
set ignorecase " case insensitive
set mouse=v " middle-click paste with
set hlsearch " highlight search
set incsearch " incremental search
set tabstop=4 " number of columns occupied by a tab
set softtabstop=4 " see multiple spaces as tabstops so <BS> does the right thing
"set expandtab " converts tabs to white space
set shiftwidth=4 " width for autoindents
#!/bin/bash
sudo wget https://nginx.org/keys/nginx_signing.key -P /tmp/
sudo apt-key add /tmp/nginx_signing.key
echo
echo
echo
echo "Enter codename for your ubuntu version (bionic for 18.04, focal for 20.04 etc -> 'lsb_release -a' to see codename):"
background : radial-gradient(black 15%, transparent 16%) 0 0,
radial-gradient(black 15%, transparent 16%) 8px 8px,
radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 0 1px,
radial-gradient(rgba(255,255,255,.1) 15%, transparent 20%) 8px 9px;
background-color : #282828;
background-szie : 16px 16px;
# Install required pakcages
echo 'Installing required apt packages...'
sudo apt install -y curl git wget vim
# Switch to home dir and copy .vimrc
echo 'Downloading vimrc...'
cd $HOME
wget https://gist.githubusercontent.com/aqual3o/b6c2478c38d1e08f76697b224efb9490/raw/.vimrc
# Switch to home dir and copy .eslintrc.json
@aqual3o
aqual3o / logger.js
Created May 4, 2019 00:40
Custom logger which can be dynamically turned on/off
/* eslint no-console : off */
const logger = {};
let logOptions = {
enabled : true
};
logger.setConfig = function (options) {
logOptions = options;
};
@aqual3o
aqual3o / mongo4.sh
Last active March 5, 2019 14:48
Install mongo 4.0 for Ubuntu 18.04
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod restart
@aqual3o
aqual3o / setup.sh
Last active July 10, 2019 21:54
My ubuntu basic setup after fresh install (not all inclusive) (shell script)
sudo apt update
sudo apt upgrade
#install essential packages
sudo apt install -y vim
sudo apt install -y avahi-daemon
sudo apt install -y python
sudo apt install -y git
sudo apt install -y curl
sudo apt install -y dconf-cli
@aqual3o
aqual3o / .eslintrc.json
Last active June 6, 2022 13:35
Basic .eslintrc for Node and React
{
"env": {
"browser" : true,
"node" : true,
"commonjs": true,
"es6" : true
},
"extends": "eslint:recommended",
"parser" : "babel-eslint",
"parserOptions": {
@aqual3o
aqual3o / .vimrc
Last active August 14, 2019 22:46
.vimrc config for nodejs and react (recommended version 8 and above)
" general vim features toggle
set hlsearch
set t_ut=""
" for vim 7
set t_Co=256
" Theme
syntax on
set background=dark