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-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 / 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 / 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 / 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 / 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 / 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 / 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 / get-started-with-zsh.md
Created September 14, 2015 05:26
Getting Started With Zsh

Zsh is a much better bash.

It is a command line shell that will improve your productivity. For example, it can autocomplete common commands. If you type git a, it will prompt add, am, etc.. And it has community driven theme.

Install ZSH sudo apt-get install zsh

To get started, go to oh-my-zsh on github.

@dharma017
dharma017 / install-webmin-on-ubuntu-server.md
Created September 14, 2015 05:31
Install Webmin On Ubuntu Server

Add the webmin official repository:

Edit file /etc/apt/sources.list,

sudo vi /etc/apt/sources.list

Add the following lines:

@dharma017
dharma017 / Cobal2-Preferences.sublime-settings
Last active August 12, 2016 11:26
My Sublime Text 3 setup
{
"binary_file_patterns":
[
"nodde_modules/",
"vendor",
"tmp/",
"bower_components/"
],
"bold_folder_labels": true,
"caret_extra_bottom": 2,