network manager - script to disable wifi when using ethernet

i have a docking station for my laptop. so i dont always use wifi. i have also configured static ip addresses for both wifi and cable connections. the same ip address for both.

so i sat down and wrote a script to be run by crontab every minute that would check to see whether i was on the ethernet cable or using the wifi connection. and it would disable the other. i have commented out info messages as i use it from crontab very succesfully. also this script can be run as a normal user.

ssh multi hop tunnel script

i found this script on the net that will help you set up an ssh tunnel with (theoretically) "n" hops in the middle.and this too http://andriusm.github.io/ssh-tunnel-gen/

how to enable root login on centos cloud images

i have been experimenting with ansible lately, and ansible uses ssh to run things as root. but the centos cloud images are set up in such a manner that you need to first logon as centos then sudo into root. not optimal for me. my private cloud's instances all have a single user called root. so i needed to reverse whatever the centos group did to lock my root user out

its actually a two step process

the first is to enable root logins via ssh

MBTI

MBTI is the Myers Briggs Type Indicator

I was taken aback today when I was told a company uses MBTI actively to the extent that it is on the board in the workplace. I took the MBTI about 15 years ago and was told a company cannot ask me to take it.

So that meant I had to some research on that fact and .. maybe you'd better click and read these first few articles on Google.

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

#!/bin/sh
while true
do         
        netstat -an | awk '/tcp/ {print $6}' | sort | uniq -c;         
        sleep 5;         
        clear; 
done

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

Preparation

* 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 working.so 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

Pages

Subscribe to Posix In Egypt RSS