Skip to content

Instantly share code, notes, and snippets.

View abarrak's full-sized avatar

Abdullah Barrak abarrak

View GitHub Profile
@abarrak
abarrak / cockpit.sh
Last active September 16, 2022 17:01
Install & Allow Cockpit on RHEL
sudo yum install cockpit
systemctl enable --now cockpit.socket
sudo firewall-cmd --add-service=cockpit --permanent
sudo firewall-cmd --reload
@abarrak
abarrak / python_env.sh
Created December 24, 2022 17:16
Python Workspace
#!/bin/bash
mkdir my_project && cd my_project
python3.9 -m venv venv
. venv/bin/activate
echo "flask==2.22" > requirements.txt
pip3.9 install -r requirements.txt
@abarrak
abarrak / pcp_install.sh
Last active September 17, 2023 12:12
Performance Copilot
#!/usr/bin/env bash
## installation ..
#
yum install -y pcp pcp-gui pcp-system-tools pcp-doc
systemctl start pmcd
## explore ..
#
@abarrak
abarrak / modules.sh
Last active December 17, 2024 18:58
Managing Kernel modules
# Module location
ls /lib/modules/{uname -r}/kernel
# list currently loaded ones
lsmod
# display details
modinfo virio
# load
@abarrak
abarrak / ldap.sh
Last active December 17, 2024 18:57
The setup files for LDAP server / client.
#!/bin/bash
# The basic, client, and server packages
yum install -y openldap openldap-clients openldap-servers
# ldap name service for local queries ..
yum install -y nss-pam-ldapd
# apache support ..
yum install -y mod-ldap