… copied as-is from : http://fedorasolved.org/server-solutions/lamp-stack Very useful info, everything works like a charm (I tried on FC15) so I am replicating this here in case that page ever gets archived, goes offline, etc. I will see if I can add some more info about setting phpMyAdmin here as well. Doing the work The best […]
Month: January 2013
git clone gives warning: “remote HEAD refers to nonexistent ref, unable to checkout.”
This warning: “remote HEAD refers to nonexistent ref, unable to checkout.” happened to me today and since it was an odd enough warning (I’ve never seen it before in all my years of work with git) I thought it’s worth describing the situation here and how I solved it. I cloned a remote git repository […]
Converting defines to strings in precompiler directives
Often times it is useful to construct a string visible to the pre-compiler and assemble it from one more more other values, defined by means of a #define dierctive. Here’s some example code (this is some custom environemnt config for U-Boot for a STM-based device I work with): #if defined( DEVELOPER_ALAN ) #define CONFIG_ETHADDR 00:23:b0:00:00:00 […]
Bash quick cheatsheat (‘if’ checks and other useful commands)

Creating this post to dump here various bash shell and script commands, tips and tricks which I found useful in my everyday work. Will update it with new info continually… ——— Check in bash if a file exists or not and do something in each case: if [ -f $FILE ]; then echo “File $FILE […]
Lost window decorations in XFCE!

Yep, that happens from time to time – you start XFCE and you notice that all the window decorations are lost and your windows look like this: Luckily fixing this is pretty easy. To get back your window decorations simply delete all the files in ~/.cache/sessions! 🙂 There is also directories in there – do […]