To send mail from a Unix/Linux shell script
Wiki Terms: Unix/Linux echo "This is mail body" | mail -s "This is subject" mail_ID@somedomain.com
View Articlesearch content of files using grep and find
Wiki Terms: Unix/LinuxOn solaris boxes I need to use this command to search through the content of files recursively through all directories: find . -exec grep -l "text to find"'{}' \; on linux this...
View ArticleCreate a virtual host on ubuntu
Wiki Terms: ApacheUnix/Linuxcreate a file: /etc/apache2/sites-available/cf_facultyportal.babsondrupal.org where the filename is the name of the url that will hit the webserver.Put this in the file...
View ArticleRun a query from php / ubuntu on sql server
Wiki Terms: PHPSql ServerUnix/Linux(note to run stored procs on sql server from php/ubuntu there's another tech note I've...
View ArticleTo install lamp with PDO on Ubuntu (worked on rackspace server)
Wiki Terms: Drupal 7Unix/LinuxTo install lamp with PDO on Ubuntu (worked on rackspace server)http://churchit.com/php-pdo-errors-while-installing-ubuntu-10-4-php-5-3-... (here's a linkback for this guy...
View ArticleSetup Ubuntu with SSL (for Drupal)
Wiki Terms: ApacheUnix/LinuxI have this working, SSL is setup for Drupal 71.) At the bottom of apache2.conf file in /etc/apache2 #setup name based virtual hosting instead of IP based (JLB)...
View ArticleManaging multiple ssh keys
Wiki Terms: Unix/Linuxlinkback: http://www.karan.org/blog/index.php/2009/08/25/multiple-ssh-private-keys ssh-keygen -t rsa -f ~/.ssh/id_rsa.acquia -C "Key for my Acquia accounts" touch ~/.ssh/config...
View ArticleBasic Linux Hardware analysis Notes:
Wiki Terms: Unix/LinuxHow many php procs are running: ps -A | grep php-cgi | grep -v grep | wc -l A box with a 1 minute load average of 6.92 should have been below 2 if it had a 2 cpu core. To find...
View ArticleTip of the Day: have your mac command prompt tell you which git branch you're in
Wiki Terms: MacUnix/LinuxA colleague just shared this tip with me to have my Mac command prompt tell me which git branch I'm in: Put the following in your .bash_profile function parse_git_branch () {...
View ArticleChange the default group for a user in Linux
Wiki Terms: Unix/Linuxusermod -g group userThis will also allow them to use chgrp to change the group ownership of any files.
View ArticleHaving a service start automatically in debian linux
Wiki Terms: Unix/Linuxupdate-rc.d ssh enableorupdate-rc.d apache2 enableThis will have the ssh service or apache2 service start up on boot up.
View ArticleEncrypting VIM files
Wiki Terms: Unix/Linux:set cm=blowfish:X to encrypt a file:set key= to turn off encryption
View ArticleUpdate everything installed via composer
Wiki Terms: DrupalUnix/LinuxUse the command:composer global update
View Articlecount the number of lines written by an author in a file
Wiki Terms: Unix/Linuxgit blame droogle.module | grep James | wc -l
View Article