script to update drupal core

this site runs on drupal. and drupal every so often will release a bug fix or security update. that means i will need to update my drupal core. i have been doing this for years using the script below. its fast, quick and automated. doesnt take more than a minute even.

it doesnt use drush, because the hosting provider has locked php down so, without further ado, the bash script!

using the OSI model to troubleshoot network issues

so i was doing some research on troubleshooting network issues and found this article that explains how to use the OSI model (the 7 layer network model) to troubleshoot network issues.

what i really liked about it was the direct questions you can ask that get straight to the point. I am putting them here, and the scenario was for a user unable to open a graphic on the internet:

tcp connection monitoring

i found this script immensely useful to determine the activity of your tcp stack

while true
        netstat -an | awk '/tcp/ {print $6}' | sort | uniq -c;         
        sleep 5;         

teaching yourself: the 3 day project paradigm

i just came across this video and i liked it so much i wrote down the plan

The 3 Day Project Paradigm


* Pick a small project idea
* Eg. web crawler

Day 1

* Get some basic functionality working
* Learn basics of Python
* Make mistakes

Day 2

* Complete functionality | cut scope if too big
* Refractor
* Eliminate bugs

howto: run webex on fedora linux

so, here i am and i need webex on fedora linux today. i did a little research and found how to run webex on fedora AND it is tested and the original article is from over here and it is basically 2 commands. Note we _REALLY_ do want to install the 32 bit version of the rpms as webex is a 32 bit application

epel repo for centos

so the news is that the epel repo files are now part of the centos extra repoto install it simply run

yum -y install epel-release

howto: install ansible on centos

ansible is configuration and management tool like puppet or chef or salt. its advantage over other solutions is the fact that it doesnt need agents on its clients; it can connect to them over ssh and just as there are no agents, a primary server is not required. think of it of the next generation of clusterssh

to install ansible is pretty easy. its a 2 step process:

drush autocompletion

if you have bash-completion installed  you can use it with drush

cd /etc/bash_completion.d

logout and back in again

kde sound volume too low?

i use kde almost exclusively on my personal laptop. the other gui being the cli. but when i watch a movie or a flash video the volume is kind of low.

i am not going into the reasons for the sound volume in kde is low but suffice it to say that one of the reasons given was that above 100% sound distortions may kick in.

SO! here are a couple of things to note

a) 100% is not the max volume

b) you can't increase the volume past 100% via the kde sound applet

whats the solution? well

linux performance monitoring tools

there is something wrong with the performance of your linux device and you need to know what. this article will help you out by giving you a few linux tools to help you identify the issue


Subscribe to Posix In Egypt RSS