Skip to content

Instantly share code, notes, and snippets.

Lekhnath Rijal lekhnath

View GitHub Profile
View gist:fe3388d7a5880c5c96f9b1b16b5ea8d2
// ==UserScript==
// @name helper
// @namespace
// @version 2.70
// @date 2014-07-12
// @author Magicbit, Inc
// @description Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @homepage
// @icon
// @icon64
lekhnath / .babelrc
Created Jul 18, 2017 — forked from andrewmunro/.babelrc
Sequelize cli with ES6
View .babelrc
"presets": ["es2015"],
"plugins": [
lekhnath / config.json
Created Jun 15, 2017
Cannot import / require json files in javascript projects with checkJs enabled
View config.json
"name": "Lekhnath Rijal"
lekhnath / .eslintrc
Created Feb 10, 2017 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
View .eslintrc
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
lekhnath / app.js
Last active Aug 6, 2017
BS to AD converter and vice versa
View app.js
var BS_MONTHS_FULL_NE = ['वैशाख', 'जेठ', 'असार', 'साउन', 'भदौ', 'असोज', 'कात्तिक', 'मंसिर', 'पुष', 'माघ', 'फागुन', 'चैत'];
var BS_DAYS_FULL_NE = ['आईतबार', 'सोमबार', 'मंगलबार', 'बुधबार', 'बिहीबार', 'शुक्रबार', 'शनिबार'];
function convertBs2Ad(e){
var form, bsDate, adDate;
try {
lekhnath /
Created Apr 28, 2016 — forked from staltz/
The introduction to Reactive Programming you've been missing
lekhnath / vagrant-anywhere
Created Apr 9, 2016 — forked from chasingmaxwell/vagrant-anywhere
Run the vagrant command for a particular project from anywhere
View vagrant-anywhere
# Run the vagrant command for a particular project from anywhere.
# To use:
# 1. Put this file in ~/bin/ or some other executable path (also make sure the
# file is executable).
# 2. Insert the path to the directory containing your project's Vagrantfile
# where indicated below.
# 3. Rename this file to match the project you're using it for.
lekhnath /
Created Feb 26, 2016 — forked from sengertwd/
This is my vagrant provision bash script
echo "This is our provisioning script"
apt-get update
apt-get install -y python-software-properties python g++ make
add-apt-repository ppa:chris-lea/node.js
apt-get update
apt-get install -y nodejs
npm install -g grunt-cli
lekhnath / post-receive
Created Sep 25, 2015 — forked from tlrobinson/post-receive
Super simple git post-receive hook for Node.js + nvm + npm + node-foreman + init (Ubuntu) deployment
View post-receive
#!/usr/bin/env bash
set -u
set -e
export GIT_WORK_TREE="/var/www/"
export NODE_VERSION="0.10"
echo "--> Checking out..."
git checkout -f
lekhnath / nginx.conf
Last active Sep 18, 2015 — forked from thomasfr/nginx.conf
nginx vhost / site config file
View nginx.conf
upstream node_backend {
keepalive 32;
server {
root /var/www/testapp/public;
index index.html;
You can’t perform that action at this time.