Skip to content

Instantly share code, notes, and snippets.

View abhijithvijayan's full-sized avatar
👋
Hey I am open for UI frontend roles(if anyone's offering)

Abhijith Vijayan abhijithvijayan

👋
Hey I am open for UI frontend roles(if anyone's offering)
View GitHub Profile
@abhijithvijayan
abhijithvijayan / docker-help.md
Created December 13, 2019 06:42 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@abhijithvijayan
abhijithvijayan / bling.js
Last active June 2, 2019 03:10 — forked from paulirish/bling.js
bling dot js
/* bling.js */
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@abhijithvijayan
abhijithvijayan / web-servers.md
Created June 1, 2019 06:41 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

Keybase proof

I hereby claim:

  • I am abhijithvijayan on github.
  • I am abhijithvijayan (https://keybase.io/abhijithvijayan) on keybase.
  • I have a public key ASA25-4f1U2Ya4TYNUcz-pG9MNki8PPER9BoLnzx-1vNFwo

To claim this, I am signing this object:

@abhijithvijayan
abhijithvijayan / _variables.scss
Created October 21, 2018 05:24
SASS Media Query Variables for Desktop, Tablet, Mobile.
/* Device = Most of the Smartphones Mobiles (Portrait) */
$screen-xxs-min: 320px;
$screen-xxs-max: 480px;
/* Device = Low Resolution Tablets, Mobiles (Landscape) */
$screen-xs-min: 481px;
$screen-xs-max: 767px;
/* Device = Tablets, Ipads (portrait) */
$screen-sm-min: 768px;
@abhijithvijayan
abhijithvijayan / reset-mysql-password.md
Last active January 8, 2020 03:39
Reset MySql Root Password

Use the following steps to reset a MySQL root password by using the command line interface.

Stop the MySQL service

(Ubuntu and Debian) Run the following command"

sudo /etc/init.d/mysql stop

(CentOS, Fedora, and Red Hat Enterprise Linux) Run the following command:

@abhijithvijayan
abhijithvijayan / rename.md
Created September 9, 2018 05:15
Rename a local and remote branch in git

1. Rename your local branch.

If you are on the branch you want to rename:

git branch -m new-name

If you are on a different branch:

git branch -m old-name new-name
@abhijithvijayan
abhijithvijayan / sync.md
Created September 9, 2018 04:55
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream https://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@abhijithvijayan
abhijithvijayan / update.md
Last active September 9, 2018 04:56
Keep a branch in sync with master

1.Switch to master branch

git checkout master
git pull

2. Switch to other branch (eg: remote_br)

git checkout remote_br
git merge master
@abhijithvijayan
abhijithvijayan / fix.md
Last active August 29, 2018 03:29
win10-lockscreen wallpaper fix
  1. Put the new lockscreen Wallpaper
  2. Go to
C:\ProgramData\Microsoft\Windows
  1. Right-click SystemData if it exists
  2. Change ownership of SystemData folder so you have the full control over it.

pic