To push to a Git repository with a personal access token, you can create a new token on GitHub, GitLab, or other platforms. Here’s how you can get a personal access token on GitHub: 1. Navigate to Settings Go to GitHub and sign in. Click on your profile picture in the upper-right corner and select […]
Author: admin
Connect Oracle to Mysql
To create a database link to MySQL, follow these steps: Prerequisites: Oracle Database: Ensure that Oracle Database is installed and running. MySQL Database: Have access to a MySQL database. Steps: Install MySQL ODBC Driver: Download and install the MySQL ODBC driver from the official MySQL website. After installation, configure the ODBC driver in the ODBC […]
How to deploy ORDS on Tomcat
Deploy ORDS to Tomcat install ORDS as standalone in your webserver and connect to your database server (if it is not in localhost you need to open listener port on database server and allow access to it remotely) Java -jar ords.war –config configdirectory install check if it works ok using: Java -jar ords.war –config configdirectory […]
Change Ords_public_user password
to change ords_public_user password: Java -jar ords.war –config configdirectory config secret db.password If you user tomcat you need to update the application in tomcat. create the webapp for tomcat again: Java -jar ords.war –config configdirectory war appname.war Replace the old webapp file with the new one the tomcat/webapp directory. restart tomcat if nessecary.
Add new user
Use the adduser command to add a new user to your system: adduser sammy Use the usermod command to add the user to the sudo group: usermod -aG sudo sammy
Docker Commands
1. List Running Containers docker ps 2. Stop a Specific Container docker stop <container_id_or_name> 3. Stop Multiple Containers at Once docker stop container1 container2 container3 4. Stop All Running Containers docker stop $(docker ps -q) $(docker ps -q) returns a list of all running container IDs, which is then passed to the docker stop command. […]
Allow a list of IP addresses through the firewall
to allow traffic from 192.168.1.10 and 203.0.113.5, you would run: sudo ufw allow from 192.168.1.10 sudo ufw allow from 203.0.113.5 Allow IP Address for Specific Port (Optional): sudo ufw allow from 192.168.1.10 to any port 80 Reload UFW (Optional): sudo ufw reload Verify the Rules: sudo ufw status
Dangling Images
What Causes Dangling Images? Dangling images usually occur in the following situations: 1.Rebuilding Images: When you rebuild a Docker image with the same tag, the old layers that are no longer used become dangling images. 2.Failed Builds: If a Docker build fails or is interrupted, it may leave behind dangling images. 3.Unreferenced Layers: Sometimes, images […]
How to Ban Failed login attempt IP
To block IP addresses with several failed SSH login attempts, you can use several methods, with fail2ban being one of the most popular and effective solutions. Using Fail2Ban Step 1: Install Fail2Ban On Ubuntu/Debian: sudo apt update sudo apt install fail2ban Step 2: Configure Fail2Ban Create a local configuration: It’s a good practice to create […]
Push to Gitub
To push a local repository to a remote GitHub repository, follow these steps: 1. Create a Remote Repository on GitHub: Go to GitHub and log in to your account. Click the + icon in the upper-right corner and select New repository. Name your repository and add a description (optional). Choose whether the repository should be […]