Skip to content

Instantly share code, notes, and snippets.

Nikesh suwal Nikeshsuwal

Block or report user

Report or block Nikeshsuwal

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

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
Nikeshsuwal /
Created Feb 19, 2018 — forked from martinbuberl/
Launch Sublime Text from the command line on OSX

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.


  • Sublime text 2 or 3 installed in your system within Applications folder


View gist:8bf2c0fe790f47b01a5b504e413985c9
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
View Mysql setup on system
Mysql setup on system
sudo apt-get install libmysqlclient-dev
gem install mysql2 -v '0.3.18'
Nikeshsuwal / cmd.txt
Created Mar 6, 2017
Open sublime from Terminal of MAC
View cmd.txt
sudo ln -s /Applications/Sublime\ /usr/bin/subl
Nikeshsuwal / footer.css
Created Dec 26, 2016
display the footer section on bottom boddy
View footer.css
Nikeshsuwal / script.js
Created Dec 1, 2016
fixed widget on scroll
View script.js
$(function() {
if ($('#subs-wrapper').length) {
sub_width = $('#subs-wrapper').parent('div').width()
var el = $('#subs-wrapper');
var stickyTop = $('#subs-wrapper').offset().top - 100;
var stickyHeight = $('#subs-wrapper').height();
screen_width = $(window).width();
if ( 767 < screen_width){
$(window).scroll(function() {
var limit = $('#footer-top').offset().top - stickyHeight - 100;
View tig.html
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Referenced from: /usr/local/bin/tig
Reason: image not found
[1] 71009 trace trap tig
brew reinstall --HEAD tig
git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "Josh Lee" ];
then export GIT_AUTHOR_NAME="Hobo Bob"; export;
fi; git commit-tree "$@"';
Nikeshsuwal / aa.html
Created Mar 28, 2016
Use of data-link
View aa.html
<div class="browse-media-bg" data-link="/societies/1" >hello</div>
You can’t perform that action at this time.