Skip to content

Instantly share code, notes, and snippets.

rajeshpv

Block or report user

Report or block rajeshpv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker_on_ubuntu.md

Install Docker

sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
@rajeshpv
rajeshpv / NVM_on_Windows_10.md
Last active May 31, 2019
NVM on windows 10 even having admin prev, did not work for me, The Issue is, nvm installs node, but fails at npm for that new node version.
View NVM_on_Windows_10.md
View proverb.txt
Proverb's are means to suffice ambiguities in life and continue. If you consider the above phrase is a proverb, then so be it, recursive.
@rajeshpv
rajeshpv / int_sort.sql
Created Jul 18, 2014
Given a table with one int column with random int ordered, write a query to get sorted asc and desc, as 2 columns of output
View int_sort.sql
-- the idea here is to populate rownum after sorting is done
-- if sorting is done along with row num, it defeats the purpose
-- rowid, does not help, since it almost generates a hascode value like
with l_table as (
select measure_id from int_table order by 1 asc
), r_table as (
select measure_id from int_table order by 1 desc
)
View chrome-console-load-jquery.js
var jq = document.createElement('script');
jq.src = "//code.jquery.com/jquery-latest.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
!function () {
var script = document.createElement("script");
script.setAttribute("src", "//code.jquery.com/jquery-2.0.0.min.js");
document.body.appendChild(script);
}();
View books-to-sell.txt
0521179447
0262516419
1422160596
1933988740
875843425
1591391869
0262640640
1590596166
1565928695
@rajeshpv
rajeshpv / node-notes.txt
Last active Dec 27, 2015
nodejs, npm, bower, grunt, jekyll
View node-notes.txt
download and unzip nodejs runtime from http://nodejs.org/download/
cd ~/Downloads
wget http://nodejs.org/dist/v0.10.28/node-v0.10.28-linux-x64.tar.gz
mkdir -p ~/programs/node && cd $_
tar xfz ~/Downloads/node-v0.10.28-linux-x64.tar.gz
ln -s ~/programs/node/node-v0.10.28-linux-x64 ~/programs/node_current
sudo vi /etc/bash.bashrc
>>put and append bin to path
export NODE_HOME=~/programs/node_current
@rajeshpv
rajeshpv / gist:6383811
Created Aug 29, 2013
rajesh-karma.conf.js
View gist:6383811
module.exports = function(config) {
config.set({
basePath : '../',
files : [
//JASMINE,
//JASMINE_ADAPTER,
'app/lib/angular/angular.js',
'app/lib/angular/angular-*.js',
'test/lib/angular/angular-mocks.js',
You can’t perform that action at this time.