Skip to content

Instantly share code, notes, and snippets.

View masudcsesust04's full-sized avatar
🏣
Working from office

Md Masud Rana masudcsesust04

🏣
Working from office
  • Dhaka, Bangladesh
  • 19:37 (UTC +06:00)
View GitHub Profile
@masudcsesust04
masudcsesust04 / sdk-command-not-found.md
Created January 22, 2018 12:32
Fix sdk command not found after installing SDKMAN

Fix sdk command not found after installing SDKMAN.

You need to install following packages before installing sdkman:

sudo apt-get install unzip
sudo apt-get install zip
sudo apt-get install sed

Uninstall skdman if you installed already:

1xx Informational

Status Code Status Message Symbol
100 Continue :continue
101 Switching Protocols :switching_protocols
102 Processing :processing

2xx Success

Status Code Status Message Symbol
@masudcsesust04
masudcsesust04 / remove-index.php-from-codeigniter-application-url.md
Last active October 16, 2017 07:04
Steps to remove index.php from the URL of a CodeIgniter application

1. First enable Apache rewrite module on by the following command.

sudo a2enmod rewrite

Then restart the apache service using command below.

sudo service apache2 restart
@masudcsesust04
masudcsesust04 / change-apache-default-document-root-directory.md
Created July 28, 2017 05:57
4 steps to change your apache default document root directory

Step - 1: Create a directory

$ mkdir /home/masud/www/

Step - 2: Open apache2 configuration file

$ sudo nano /etc/apache2/apache2.conf 
@masudcsesust04
masudcsesust04 / rubymine-installatioin.md
Created March 20, 2017 07:18
Rubymine installation and create an application launcher.

First create a directory

sudo mkdir -p /opt/RubyMine

Extract Archive

sudo tar -zxvf RubyMine-x.x.tar.gz --strip-components 1 -C /opt/RubyMine
@masudcsesust04
masudcsesust04 / intellij-installation.md
Created March 20, 2017 07:13
Install intellij ide and create application launcher.

First create a directory in /opt directory

sudo mkdir -p /opt/intellij

Copy downloaed unzipped files to that direcotry

sudo cp -R idea-IU-163.12024.16/* /opt/intellij/
@masudcsesust04
masudcsesust04 / components.md
Last active March 28, 2021 18:41
Twitter bootstrap HAML template

Table

%h1.page-header Listing users

.table-responsive
  %table.table.table-striped
    %thead
      %tr
        %th{width: '20%'} Name
        %th{width: '50%'} Email

If you already have RVM then

Remove RVM

$ rvm implode
or 
$ rm -rf ~/.rvm

Note: Also make sure all of the .rvm files and folder are deleted.

@masudcsesust04
masudcsesust04 / rails-development-environment-setup.txt
Created January 23, 2017 10:29
Rails developer environment preparation in linux(ubuntu) operating system.
Ubuntu OS environment setup for rails development:
1. Install Ubuntu OS then update and upgrade system packages
2. Install Sun JDK-1.6 or Oracle JDK-1.7 or latest availabe version (Not open JDK)
3. Install an IDE (RubyMine for Ruby on Rails team members, Netbeans for Ruby on Rails, Java, PHP etc, PHPStrom for PHP team members)
4. MySQL or PostgreSQL
5. If MySQL then i would recommed to install it with LAMP package which is a linux, apache, MySQL and PHP bundle. Because installing LAMP you can use phpMyadmin as database client.
6. If you install only MySQL then choose workbench as a database client.
7. For PostgreSQL install pgAdmin-III as a database client
8. Install Sublimetext as a text editor
9. Install Nano or Vim as a text editor
@masudcsesust04
masudcsesust04 / git-commands.md
Last active November 29, 2017 11:53
Frequently used git commands as a software developer.

GIT Basic Commands

Clone remote repository

$ git clone repo_path

Or start a new git repository for an existing code base

$ cd /path/to/project/
$ git init (1)