In some cases you create static html/htm file away from whatever CMS you may use (Wordpress – Joomla – Drupal) so your google analytic code “javascript” need to be inject manually.
In case like this and when you have many html/htm files you can use this script to automatically insert google code to them
Pleas take care from the following point:
1- Change TRACKER_ID to be Your
2- Edit the script to meet your need for example if your file have extension htm/html .. etc
3- Backup the original html/htm files
inject google analytics to html files with bash
Patching the SRPM package
In this tutorial we will discuss howto unpack source rpm’s, generate a patch with diff command from the changed sources and create a new rpm, tihs case you aready have the src-rpm and need to patching the SRPM. I assume you have the non-root build environment set up as per previous tutorial building an RPM without having root access
Building RPMs without root access
today i will represent simple trick to building an RPM without having root access. You can build it in your home directory
In this tutorial we will see how to create the RPM build directories and how to setup your ~/.rpmmacros
The .rpmmacros file is used by rpmbuild to provide defaults. You may find references to the .rpmrc file, but it has been deprecated in favor of this file.
More »