Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 OPEN SOURCE


  Install and configure git plugin in Eclipse

When developing using IDE, it's always a good experience if everything can be done in the IDE including development, testing and version control. This also applies to Eclipse. In this post, we will show the process of installing and configuring git plugin in Eclipse. The pre-requisite is that you have git installed on your local machine. The detailed steps for installing and configuring git plugin are below.1. Installing Git pluginInstall using "Install New Software..." menu. a. Click Help -> Install New Software...b. Click Add... and add below informationName: EgitLocation:&...

37,165 0       GIT PLUGIN GITHUB ECLIPSE


  OpenLDAP Proxy -- Introduction

OpenLDAP is an open source project which is intended to provide some commercial-grade, fully featured applications and development tools based on the well known Light-weight Directory Access Protocol(LDAP). Hence corporations which want to manage their user and group information can freely use these tools. OpenLDAP provides ldap servers, ldap clients and corresponding tools to work on LDAP. The LDAP server is called slapd(Stand-alone LDAP  daemon). And it would serve as the server which provides the capability of creating, updating and deleting organization, group and user informatio...

26,900 0       META OPENLDAP OPENLDAP PROXY SLAPD SLAPD.CONF LDAP


  OpenLDAP Proxy -- slapd.conf

In the introductory post of OpenLDAP proxy, we mentioned that slapd.conf is the configuration file which tells the slapd service what to do.  Apart from this, there is a dynamic way of configuring slapd where the configurations are stored in LDIF database. In the future, LDIF database will be the one for configuring slapd, the old style of slapd.conf is deprecated. The slapd.conf can be converted to LDIF style using the slapdtest command.slapdtest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.dFor demonstration purpose, we will use slapd.conf to explain how to configure the slapd s...

19,920 0       OPENLDAP OPENLDAP PROXY SLAPD.CONF SLAPD


  OpenLDAP Proxy -- Installation and configuration

After understanding what the configuration would be for an OpenLDAP proxy, it's time to explain the installation of OpenLDAP proxy and how to make it run. In this post, we will cover how to install OpenLDAP proxy both locally and using docker.Local installationThe installation is quite easy, there are a few packages to be installed including the ldap server, ldap client and some utilities. Below steps are for CentOS, the instructions for other platforms should be similar with minor differences on packages names and package locations.Install openldap openldap-clients openldap-serversyum in...

19,295 0       INSTALLATION CENTOS DOCKER OPENLDAP OPENLDAP PROXY


  Reset submodule to checkout state in git

Sometimes there would be a submodule or some submodules within one git repository, in some cases the submodule may be out of sync with the checkout state as some files in submodule may be changed unexpectedly. How to reset the submodule to be the same as the original checkout state?Let's take an example that we have a git repository A and there is a submodule called ruby-gems under it. Assuming the submodule at remote origin has commit a.And on our local environment, the repository A has a latest commit of the submodule which causes some diff difference.$ git diffdiff --git a/web-api/ruby-gems...

18,928 0       GIT SUBMODULE GIT RESET


  A simple example of git bisect command

git bisect is a very powerful command for finding out which commit is a bad commit when bug occurs. The rationale behind this command is that it pin locates the bad commit by divide and conquer. It divides the commit history into two equal parts, then determines whether the bad commit is at the first half or at the other half. This process will continue until the bad commit is located.Here is a really good example created by bradleyboy, this is a simple git repository which demonstrates a bad commit in the index.html. First, please clone the repository into local.$ git clone git@gith...

18,378 2       GITHUB GIT GIT BISECT


  Resolve git issue git@github.com: Permission denied (publickey)

Sometimes when clone a remote repository from github.com, you may see below error.D:\Project\Playground\GitBisect>git clone git@github.com:bradleyboy/bisectercise.gitCloning into 'bisectercise'...git@github.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.The issue occurs when there is no key on your machine which is associated with your github account. To fix the issue, please go to ~/.ssh and check whether you have correct private and public key generated and stored and associate th...

17,927 0       GITHUB PERMISSION DENIED GIT PUBLIC KEY


  A tutorial on Github Actions

Github Actions is a CI/CD service created by Github. It aims to make it easy to automate all software workflows, now with world-class CI/CD. Build, test, and deploy code right from GitHub. It was launched in October 2018 and was officially available to all users in November 2019.This post will give an introduction of Github Actions and explain how it works.What is Github ActionsNormally Continuous Integration includes some steps, fetching code, running test, sshing into remote server instance, deploying code/binary on remote server etc. They are called actions in Github Actions. Lots...

13,063 0       CD CI GITHUB ACTIONS GITHUB