Skip to content

Instantly share code, notes, and snippets.

View htaghizadeh's full-sized avatar

Hossein Taghi-Zadeh htaghizadeh

View GitHub Profile
Summary:
sudo hostname NEW_NAME_HERE
sudo nano /etc/hostname # change OLD_NAME by NEW_NAME
sudo nano /etc/hosts # change OLD_NAME by NEW_NAME
sudo systemctl restart systemd-logind.service
hostnamectl set-hostname NEW_NAME_HERE
Also you should recreate your ssh keys on your machine:
@htaghizadeh
htaghizadeh / activemq-ubuntu-installation
Created November 10, 2018 11:21
Install Apache ActiveMQ on Ubuntu 16.04
cd /opt
wget -c "http://www.apache.org/dyn/closer.cgi?filename=/activemq/5.15.7/apache-activemq-5.15.7-bin.tar.gz&action=download" -O apache-activemq-5.15.7-bin.tar.gz
tar xzf apache-activemq-5.15.7-bin.tar.gz
mv apache-activemq-5.15.7 activemq
sudo addgroup --quiet --system activemq
sudo adduser --quiet --system --ingroup activemq --no-create-home --disabled-password activemq
@htaghizadeh
htaghizadeh / git_submodules.md
Last active May 27, 2018 20:02 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@htaghizadeh
htaghizadeh / git_submodules.md
Created May 27, 2018 20:02 — forked from gitaarik/git_submodules.md
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:

  • You can separate the code into different repositories.
@htaghizadeh
htaghizadeh / .block
Created March 17, 2018 11:27 — forked from mbostock/.block
Hierarchical Edge Bundling
license: gpl-3.0
height: 960
border: no
@htaghizadeh
htaghizadeh / 00. tutorial.md
Created January 26, 2018 22:10 — forked from maxivak/00. tutorial.md
Importing/Indexing database (MySQL or SQL Server) in Solr using Data Import Handler