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
View sublime-text-3-setup.md

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
Nikeshsuwal / sublime-command-line.md
Created Feb 19, 2018 — forked from martinbuberl/sublime-command-line.md
Launch Sublime Text from the command line on OSX
View sublime-command-line.md

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.

Requirements

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

Setup

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
Nikeshsuwal / cmd.txt
Created Mar 6, 2017
Open sublime from Terminal of MAC
View cmd.txt
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin/subl
@Nikeshsuwal
Nikeshsuwal / footer.css
Created Dec 26, 2016
display the footer section on bottom boddy
View footer.css
@Nikeshsuwal
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
Issue:
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
Solution:
brew reinstall --HEAD tig
View change_authorname.sh
git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "Josh Lee" ];
then export GIT_AUTHOR_NAME="Hobo Bob"; export GIT_AUTHOR_EMAIL=hobo@example.com;
fi; git commit-tree "$@"';
@Nikeshsuwal
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.