Skip to content

Instantly share code, notes, and snippets.

View abinashmeher999's full-sized avatar
🤓
Don't mind me, just browsing

Abinash Meher abinashmeher999

🤓
Don't mind me, just browsing
  • Autonomous Ground Vehicle Research Group
  • Kharagpur, India
View GitHub Profile
@abinashmeher999
abinashmeher999 / longest_palindromic_substring
Created January 22, 2015 10:42
An O(n) time algorithm to find the longest palindromic substring
/*
* File: main.cpp
* Author: abinashmeher999
*
* Created on 16 November, 2014, 2:13 PM
*/
#include <iostream>
#include <string>
#include <cmath>
@abinashmeher999
abinashmeher999 / err_23012015
Created January 23, 2015 08:13
Error while pushing
abinashmeher999@JARVIS:~/shogun.wiki$ git push origin abinash
Username for 'https://github.com': abinashmeher999
Password for 'https://abinashmeher999@github.com':
remote: Permission to shogun-toolbox/shogun.wiki.git denied to abinashmeher999.
fatal: unable to access 'https://github.com/shogun-toolbox/shogun.wiki.git/': The requested URL returned error: 403
@abinashmeher999
abinashmeher999 / git_status
Created January 23, 2015 08:34
Git Status
abinashmeher999@JARVIS:~/shogun$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: doc/md
Changes not staged for commit:
abinashmeher999@JARVIS:~/shogun$ git remote show origin
* remote origin
Fetch URL: https://github.com/abinashmeher999/shogun.git
Push URL: https://github.com/abinashmeher999/shogun.git
HEAD branch: develop
Remote branches:
boost_serialization tracked
c50 tracked
develop tracked
diffusion_kernel tracked
@abinashmeher999
abinashmeher999 / errormake
Created January 31, 2015 15:29
error on make
abinashmeher999@JARVIS:~/shogun/build$ make
[ 0%] Running C++ protocol buffer compiler on ShogunVersion.proto
/bin/sh: 1: PROTOBUF_PROTOC_EXECUTABLE-NOTFOUND: not found
make[2]: *** [../src/shogun/io/protobuf/ShogunVersion.pb.cc] Error 127
make[1]: *** [src/shogun/CMakeFiles/class_list.dir/all] Error 2
make: *** [all] Error 2
abinashmeher999@JARVIS:~/shogun/build$
@abinashmeher999
abinashmeher999 / dockererror
Created February 1, 2015 14:42
Error while testing the installation of docker
abinashmeher999@JARVIS:~$ sudo docker run -i -t ubuntu /bin/bash
[sudo] password for abinashmeher999:
Unable to find image 'ubuntu:latest' locally
Pulling repository ubuntu
FATA[0000] Get https://index.docker.io/v1/repositories/library/ubuntu/images: dial tcp 162.242.195.84:443: connection refused
abinashmeher999@JARVIS:~$ sudo -E docker run -i -t ubuntu /bin/bash
Unable to find image 'ubuntu:latest' locally
Pulling repository ubuntu
FATA[0000] Get https://index.docker.io/v1/repositories/library/ubuntu/images: dial tcp 162.242.195.84:443: connection refused
@abinashmeher999
abinashmeher999 / rebase
Last active August 29, 2015 14:16
Rebasing problem
abinashmeher999@JARVIS:~/agv/git-sandbox$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: Added 'Abinash Meher'
Using index info to reconstruct a base tree...
M README.md
Falling back to patching base and 3-way merge...
Auto-merging README.md
CONFLICT (content): Merge conflict in README.md
Failed to merge in the changes.
Patch failed at 0001 Added 'Abinash Meher'
require "mkmf"
$srcs = [
'hypergeometric.c'
]
#if have_header("gsl/gsl_sf_exp.h", ["/usr/local/Cellar/gsl/1.15/include/"])
# have_library("gsl")
#end
@abinashmeher999
abinashmeher999 / .vimrc
Created March 16, 2015 16:37
vimrc trim space
call plug#begin('~/.vim/plugged')
"
" always enabled
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/syntastic'
Plug 'bling/vim-airline'
Plug 'scrooloose/nerdcommenter'
"Plug 'jiangmiao/auto-pairs'
Plug 'xolox/vim-misc'
Plug 'docunext/closetag.vim'
@abinashmeher999
abinashmeher999 / error_rake_compile
Created May 27, 2015 13:19
Error while running rake compile
make
linking shared-object symengine/symengine.so
/usr/bin/ld: symengine.o: relocation R_X86_64_PC32 against undefined symbol `cbasic_alloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [symengine.so] Error 1
rake aborted!
Command failed with status (2): [make...]
/home/abinashmeher999/.rvm/gems/ruby-2.2.0/gems/rake-compiler-0.9.5/lib/rake/extensiontask.rb:155:in `block (2 levels) in define_compile_tasks'
/home/abinashmeher999/.rvm/gems/ruby-2.2.0/gems/rake-compiler-0.9.5/lib/rake/extensiontask.rb:154:in `block in define_compile_tasks'