Skip to content

Instantly share code, notes, and snippets.

" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'morhetz/gruvbox'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'preservim/nerdtree'
Plug 'scrooloose/nerdcommenter'
@souparno
souparno / .htaccess file ,subdomain and cakePHP
Created October 5, 2014 08:36
.htaccess file ,subdomain and cakePHP
onsider a domain www.example.com. You have created an appliaction in its root folder.
Now you purchase a new subdomain www.newdomain.net that is like root/newdomain/ in your server.
When you place your cake application inside this newdomain folder, you will encounter problem regarding
redirect, sometimes you css will be not getting loaded same is with javascript and images.
To overcome this problem create 3 .htaccess files in this order:-
1) .htaccess file in root/newdomain/ folder write this:-
<IfModule mod_rewrite.c>
RewriteEngine on
@souparno
souparno / .vimrc
Created February 19, 2020 10:48 — forked from Tset-Noitamotua/.vimrc
Powerline Setup for my VIM
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
" "
" __ _ _ _ __ ___ _ __ ___ "
" \ \ / / | '_ ` _ \| '__/ __| "
" \ V /| | | | | | | | | (__ "
" \_/ |_|_| |_| |_|_| \___| "
" "
" "
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
@souparno
souparno / compile-node-alpine.txt
Created January 28, 2019 12:04 — forked from neilstuartcraig/compile-node-alpine.txt
Compiling Node.JS on Alpine Linux
apk update
apk install curl python build-base gcc abuild binutils binutils-doc gcc-doc linux-headers
curl -L -O https://nodejs.org/dist/v4.6.0/node-v4.6.0.tar.gz
tar xzf node-v4.6.0.tar.gz
cd node-v4.6.0
./configure
make
make install
@souparno
souparno / jsio.js
Last active January 10, 2019 21:22
jsio bundler
var jsio = (function() {
var util = {
slice: Array.prototype.slice,
bind: function bind(method, context) {
var args = util.slice.call(arguments, 2);
return function() {
return method.apply(context, args.concat(util.slice.call(arguments, 0)));
};
}
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@souparno
souparno / app.html
Created November 30, 2018 22:12 — forked from derekchiang/app.html
[electron]Use electron as a Web Server
<!doctype html>
<html><head><script src="app.js"></script></head><body></body></html>
@souparno
souparno / .vimrc
Last active November 23, 2018 19:44
.vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'lrvick/Conque-Shell'
Plugin 'scrooloose/nerdtree'
Plugin 'maksimr/vim-jsbeautify'
curl -sSL https://get.docker.com/ | sh
sudo usermod -aG docker ubuntu
@souparno
souparno / waya-dl-setup.sh
Created January 30, 2018 09:14 — forked from mjdietzx/waya-dl-setup.sh
Install CUDA Toolkit v8.0 and cuDNN v6.0 on Ubuntu 16.04
#!/bin/bash
# install CUDA Toolkit v8.0
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network))
CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb"
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG}
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-get update
sudo apt-get -y install cuda