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 / install-package-tgz.md
Created September 14, 2015 05:25
Install package from tgz

###Install package from tgz

$cd package_dir
$cat README
$./configure
$make
$make install

if make command fail OR to remove unnecessary cruft

@dharma017
dharma017 / scp-file-between-two-hosts.md
Created September 14, 2015 05:24
Secure copy files across hosts

Secure copy files across hosts

1.Transfer single file

Open GIT BASH (to use Secure Copy), type below commands.

$cd /e/xampp/htdocs/projname

$touch README.md
@dharma017
dharma017 / email-debugging-mailcatcher.md
Created September 14, 2015 05:21
Email Debugging with MailCatcher

#MailCatcher

MailCatcher runs a super simple SMTP server which catches any message sent to it to display in a web interface. Run mailcatcher, set your favourite app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, then check out http://127.0.0.1:1080 to see the mail that's arrived so far.

Manually Installing MailCatcher

sudo apt-get install -y vim curl python-software-properties lynx nginx
sudo apt-get install -y php5-fpm php5-memcache memcached php-apc
sudo apt-get install -y build-essential libsqlite3-dev ruby1.9.3
@dharma017
dharma017 / install-android-cordova-ionic-in-ubuntu.md
Created September 14, 2015 05:20
Ubuntu Developer Script For Ionic Framework

###Install Android, Cordova, and Ionic Framework in Ubuntu

To install everything using the shell script I provided, download it and do the following

chmod 775 ubuntu_ionic_installer.sh
sudo ./ubuntu_ionic_installer.sh

The installation script will download and configure the following:

@dharma017
dharma017 / extract-mp3-from-swf-linux.md
Created September 14, 2015 05:18
Extract MP3 from SWF files on Linux (Ubuntu)

###Extract MP3 from SWF files on Linux (Ubuntu)

We will use a tool called swfextract contained on the package swftools, so first we will install it

sudo apt-get install swftools

Once installed first we will see wich media we can extract from our swf file.

@dharma017
dharma017 / lamp-setup.md
Last active June 17, 2024 12:44
Install apache, mysql, php with phpmyadmin and adminer (Ubuntu 14 and above)

Install Apache, MySql, Php, Phpmyadmin (Ubuntu 14 and above)

Step 1: Update and Upgrade your system

Open your terminal by opening the dash (Using the Super/Windows key) and typing “terminal”, then type:

sudo apt-get update
sudo apt-get upgrade
@dharma017
dharma017 / install-node-and-npm-without-root.md
Created September 14, 2015 05:05
Install node and npm without root

Install nodejs npm with given link

https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

##Install the npm packages

npm install --global yo bower grunt-cli gulp
@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
@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 / 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.