Skip to content

Instantly share code, notes, and snippets.

View dharma017's full-sized avatar

Dharma R. Thapa dharma017

  • Melbourne, Australia
View GitHub Profile
@dharma017
dharma017 / vagrant-up-and-running.md
Last active November 22, 2015 10:16
Vagrant Up and Running

Vagrant Up and Running

$mkdir vagrant_www/www -p

$cd vagrant_www

$echo "<h1>Hello from a Vagrant VM</h1>" > www/index.html

$vagrant init
@dharma017
dharma017 / vagrant-ionic-box-installation.md
Created September 13, 2015 11:42
Vagrant Ionic Box Installation
@dharma017
dharma017 / git-cheatsheet.md
Created September 13, 2015 11:43
Git Cheatsheet

Getting Started

Clone an existing repository

git clone _[repository]_

Create a new local respository

@dharma017
dharma017 / mysql-basic-commands.md
Last active January 7, 2016 05:32
Mysql basic commands

How to Access the MySQL shell

mysql -u root -p

How to Create and Delete a MySQL Database

You can quickly check what databases are available by typing:

@dharma017
dharma017 / install-adminer-on-ubuntu.md
Created September 13, 2015 11:52
Install Adminer on Ubuntu

##Install Adminer on Ubuntu is very easy. Just type:

sudo apt-get install adminer

Now Adminer should run on http://127.0.0.1/adminer/

But unfortunately, for same reason don`t run...

Then you will need to configure your apache2.conf to make adminer works.

@dharma017
dharma017 / common-git-usage.md
Last active September 13, 2015 12:26
GIT Getting Started with best practices

Common Git Usage

Push an existing repos to Github

Assuming you have a repos on github already, issue the following commands:

cd existing_git_repo
git remote add origin git@github.com:[user]/[reponame].git
@dharma017
dharma017 / delete-svn-directores-recursively.md
Last active September 13, 2015 11:59
Migrate SVN to GIT

Recursively Delete .svn Directories

An awesome command line script which recursively removes .svn directories from parent directories.

find . -type d -name .svn -exec rm -rf {} \;

The script starts within the current directory, so be sure you navigate to the directory you want to start searching from first.

@dharma017
dharma017 / tips-to-work-better-with-git.md
Created September 14, 2015 04:57
8 Tips to help you work better with Git

Git is a very powerful version control system. It can be a little bit daunting to try to learn everything around it, so most people just use the basic commands. We want to give you here some help with some tips you may or may not have heard. Either way, these tips can make your workflow a little easier.

Git aliases

One of the best ways to ease your daily workflow with Git is to create aliases for common commands you use every day. This can save you some time in the terminal.

You can use the following commands to create aliases for the most used Git commands, checkout, commit and branch.

@dharma017
dharma017 / install-code-formatter-st3.md
Created September 14, 2015 05:01
Code Formatter plugin for ST3

##Code Formatter plugin for ST3 in Linux

Install Package

https://packagecontrol.io/packages/CodeFormatter

Install Pear

@dharma017
dharma017 / .editorconfig
Created September 14, 2015 05:03
EditorConfig helps developers maintain consistent coding styles between different editors
# editorconfig.org
root = true
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true