Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
address=https://ilo.mysite.com:34043
username=Administrator
password=********
session_key=$(
curl -fsS \
--insecure \
"$address/json/login_session" \
@pavgup
pavgup / commands.sh
Last active October 21, 2023 20:29
Install Python 2.7.13 on Debian Wheezy
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz
sudo tar -xzf Python-2.7.13.tgz -C /usr/src
cd /usr/src/Python-2.7.3
sudo ./configure
sudo make
sudo make altinstall
@dipanjanS
dipanjanS / process_affinity_utils.md
Last active November 13, 2023 20:36
Utility commands to check and allocate processor cores to different processes

Get the processor core affinity for a process ( cores on which it is allowed to run )

taskset -cp <PID>

Example,

[root@user]# taskset -cp 74515
pid 74515's current affinity list: 0-7