This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install nodejs npm ruby ruby-devel rubygems git | |
gem install jekyll | |
vi .gemrc | |
# in .gemrc file add ":ssl_verify_mode: 0" | |
gem install jekyll | |
wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz | |
tar xzvf node-v* && cd node-v* | |
sudo yum install gcc gcc-c++ | |
./configure | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### This is how I diabled the firewall on CentOS7 | |
### Disable Firewalld Service. | |
[root@rhel-centos7-tejas-barot-linux ~]# systemctl mask firewalld | |
### Stop Firewalld Service. | |
[root@rhel-centos7-tejas-barot-linux ~]# systemctl stop firewalld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download Maven and untar it. | |
# The first thing we need to do is to download the Maven tar file and untar it to a shared location on the workstation | |
wget http://mirrors.gigenet.com/apache/maven/maven-3/3.2.3/binaries/apache-maven-3.2.3-bin.tar.gz | |
su -c "tar -zxvf apache-maven-3.2.3-bin.tar.gz -C /usr/local“ | |
cd /usr/local | |
sudo ln -s apache-maven-3.2.3 maven | |
# Setup the Maven Environment Variables in shared profile. | |
# The next step is to setup the Maven environment variables in a shared profile so all users on the system will get them import at login # time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# core {{{ | |
[core] | |
editor = /usr/bin/vim | |
excludesfile = /Users/npaolucci/.gitignore_global | |
pager=less -x4 | |
#}}} | |
# user {{{ | |
[user] | |
email = npaolucci@atlassian.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su - | |
sudo yum install epel-release | |
sudo yum install phpmyadmin | |
sudo nano /etc/httpd/conf.d/phpMyAdmin.conf | |
sudo systemctl restart httpd.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Disable Firewalld Service. | |
systemctl mask firewalld | |
### Stop Firewalld Service. | |
systemctl stop firewalld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install ruby ruby-dev make rake | |
sudo gem install jekyll --no-rdoc --no-ri | |
sudo apt-get install nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected String getUser() { | |
String username; | |
LOGGER.debug("getAuthentication().getName():" | |
+ SecurityContextHolder.getContext().getAuthentication() | |
.getName()); | |
Object obj = SecurityContextHolder.getContext().getAuthentication() | |
.getPrincipal(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you are using Fedora, CentOS, Red Hat or Scientific Linux I am going to show you the basic install of MySQL using yum. | |
Install MySQL Client and Server software | |
To install MySQL Client and Server enter the following commands: | |
[root@regan ~]# yum groupinstall "MySQL Database server" | |
[root@regan ~]# yum groupinstall "MySQL Database client" | |
To install the MySQL system tables and setup MySQL to start on boot you need to enter the following commands: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to see the last time a developer commited work and also the number of commits your developer made in your Git repository | |
How would you like to check-up on your developers and see that last time your developers commited work to your Git repository. I do this all the time to check on the developers on my projects. | |
The best way to see who is commiting work to your Git repository and the last time is easy. Just go into one of your Git repositories and type the following: | |
git shortlog -sne |awk '{print $1,$2,$3,system("git log -n1 --format=%cd --author=" $2)}' | |
and your output should look like: |
OlderNewer