Skip to content

Instantly share code, notes, and snippets.

View audacioustux's full-sized avatar
🐧

Tanjim Hossain audacioustux

🐧
View GitHub Profile
" don't be compatible :)
set nocompatible
call plug#begin()
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'vim-syntastic/syntastic'
Plug 'octol/vim-cpp-enhanced-highlight', { 'for': ['c', 'cpp', 'objc'] }
Plug 'vim-jp/cpp-vim', { 'for': ['c', 'cpp', 'objc'] }
Plug 'ervandew/supertab'
Plug 'vim-airline/vim-airline'
@audacioustux
audacioustux / mkswap.sh
Last active December 27, 2016 23:09
make swapfile easily with this simple script
#!/bin/sh
MEMSIZE=$(free -m | awk 'NR==2{print $2}')
if [ $MEMSIZE -gt 4096 ]; then
RECMEMSIZE=$MEMSIZE
else
RECMEMSIZE=$(($MEMSIZE*2))
fi
echo "enabling all swap partitions & files"
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@audacioustux
audacioustux / init.vim
Last active August 18, 2017 13:36
spacevim config ~/.SpaceVim.d/init.vim
" Dark powered mode of SpaceVim, generated by SpaceVim automatically.
let g:spacevim_enable_debug = 1
let g:spacevim_realtime_leader_guide = 1
call SpaceVim#layers#load('incsearch')
call SpaceVim#layers#load('lang#c')
call SpaceVim#layers#load('lang#elixir')
call SpaceVim#layers#load('lang#go')
call SpaceVim#layers#load('lang#haskell')
call SpaceVim#layers#load('lang#java')
call SpaceVim#layers#load('lang#javascript')
"=============================================================================
" dark_powered.vim --- Dark powered mode of SpaceVim
" Copyright (c) 2016-2017 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
" SpaceVim Options: {{{
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Flex extends Component {
render() {
const {
children,
element,
// display,
// colBase,
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/tux/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
POSTGRES_PASSWORD="aluvajivalobashi"
POSTGRES_USER=audacioustux
POSTGRES_DB=nobinalo
@audacioustux
audacioustux / standard.sh
Created August 27, 2019 19:11 — forked from hfossli/standard.sh
Standard bash script format
#!/bin/bash
CLEAR='\033[0m'
RED='\033[0;31m'
function usage() {
if [ -n "$1" ]; then
echo -e "${RED}👉 $1${CLEAR}\n";
fi
echo "Usage: $0 [-n number-of-people] [-s section-id] [-c cache-file]"
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
"airbnb-base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',