Category Linux

nginx secure /user drupal

If you are not serving drupal out of a subdirectory use this config example: location / { # This is cool because no php is touched for static content try_files $uri @rewrite; } location @rewrite { Some modules enforce no…

RHCE Studyguide

Prerequisite skills for RHCT and RHCE Candidates should possess the following skills, as they may be necessary in order to fulfill requirements of the RHCT and RHCE exams: use standard command line tools (e.g., ls, cp, mv, rm, tail, cat,…

nginx php centos6 howto

Remove previous php installation # yum remove php-cli php-common Add the EPEL and REMI repos: wget wget sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm Install nginx prerequisites # yum install perl pcre-devel gperftools-devel geoip geoip-devel Download nginx # wget “”…

cURL Examples

Great examples of how to use cURL from  1. Download a Single File The following command will get the content of the URL and display it in the STDOUT (i.e on your terminal). $ curl To store the output…

One Liners

Linux and Bash One Liners Command Line Fu – Top One Liners [rssinpage rssfeed=’http://www.commandlinefu.com/commands/browse/sort-by-votes/rss/’ rssitems=’20’ rsstarget=’_blank’] Bash one Liners [rssinpage rssfeed=’http://www.bashoneliners.com/main/feeds/’ rssitems=’20’ rsstarget=’_blank’]

sh: rsync: not found

This message means rsync is not in the $PATH of the remote user on the remote system. $ rsync -av –progress Solaris_8_2004-02/ [email protected]:/export/install/OS sh: rsync: not found rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream…

cheap linux hosting coupon

Brakertech has come across some pretty sweet Hostgator.com coupons.   Hostgator is a wonderful alternative to godaddy To Save twenty five percent off your hosting signup, use code: BRAKERTECH25OFF cheap linux hosting coupon

copy teamsite user

To copy teamsite user permissions i’ve written a python script. You’ll need to replace the path with the path of your teamsite’s bin directory: #!/usr/bin/python #Script Name: copyTeamSiteUser.py #Use: . -s (source_user) -d (destination_user) #Note: the bin bath of teamsite…