Skip to content

Instantly share code, notes, and snippets.

View tomysmile's full-sized avatar

Tomy Ismail tomysmile

  • NITOZA
  • Dubai
View GitHub Profile
@tomysmile
tomysmile / mac-sublime-command.md
Created July 11, 2016 06:18
Install Sublime Text 3 on Mac OSX Command Line

Create symlink

ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

Add below path to your .bash_profile or .bashrc

export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH
@tomysmile
tomysmile / mac-rabbitmq-setup.md
Last active January 27, 2023 13:01
Install RabbitMQ using Brew

Update Homebrew’s package database.

brew update

To install the MongoDB binaries, issue the following command in a system shell:

brew install rabbitmq
@tomysmile
tomysmile / mac-mongodb-setup.md
Created July 11, 2016 05:52
MongoDB Brew installation

Update Homebrew’s package database.

brew update

To install the MongoDB binaries, issue the following command in a system shell:

brew install mongodb
@tomysmile
tomysmile / rpi-get-os-version.md
Created June 29, 2016 06:24
Raspberry Pi get OS Version

Open Terminal and type:

cat /etc/os-release

This results in the following output on my Raspberry Pi 2...

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
@tomysmile
tomysmile / mongodb-create-db.md
Last active August 4, 2021 10:56
mongodb: basic operasional

Create Database

Show all database

Issue “show dbs” to display all available databases.

Connect to Server:

$ mongo --port 27017 -u [username] -p [password] --authenticationDatabase admin
@tomysmile
tomysmile / 01-ubuntu-16.04-setup.md
Last active January 28, 2023 21:56
Ubuntu 16.04 Setup in Digital Ocean

Initial Server Setup with Ubuntu 16.04

Update Packages

$ sudo apt-get update

Add Swap

@tomysmile
tomysmile / ionic-upgrade-1.3.md
Created May 24, 2016 07:58
Upgrade to Ionic 1.3

The easiest way is update through npm

$ npm install -g ionic

and then go to your project root directory

$ ionic lib update
@tomysmile
tomysmile / git-track-branch.md
Created May 24, 2016 04:26
Git Track Branch
$ git checkout -b serverfix origin/serverfix

Branch serverfix set up to track remote branch serverfix from origin.
Switched to a new branch 'serverfix'
$ git checkout --track origin/serverfix
@tomysmile
tomysmile / strong-pm-install.md
Last active September 17, 2018 11:41
Strong-PM install script for new Digital Ocean droplet Ubuntu 14.x w/ node x

install system pre-req

sudo apt-get install build-essential sqlite git

install strong-pm

sudo npm install -g strong-pm --unsafe-perm
@tomysmile
tomysmile / memcached_xampp.md
Created April 26, 2016 14:13
XAMPP with Memcached extension

Here are the steps that should be followed when you install memcache.

start your xampp. click on 'config' and open php.ini file. search for

;extension=php_memcache.dll

If not found add