Tuesday, October 28, 2014

diffrence of $JAVA_HOME and JAVA_HOME

Tip of the day !

$JAVA_HOME is gonna be global and requires the right permissions
JAVA_HOME is a gonna be local

Wednesday, October 1, 2014

Echo the return status of the last command

echo $?

Monday, September 22, 2014

Find a file in linux

find / -name nameOfTheFile

Tuesday, September 9, 2014

even if it is not a scam, is AmEx that stupid ?

Today I got a phone call, someone with a heavy accent asking me,


- Hello is this "Medya ..." ?

I am pausing...hm...should I confirm my full name to this unknown number ? and I decided to say :

- Me: Who is this ?

- I am from AmEx, you had left a message for us on the website, this is regarding your question. can you please confirm your date of birth ?

- Why ?

- Sir I have to ...before I can blah blah

- if I left a message through email , why dont you just email me back ?

- Sir I need you to verify your DOB

- I am not gonna tell an uknown number who called me, my DOB or SSN, I have to drop this call, if there is something important, just email me.

-Sir it is important and I can't email you.

- I am sorry, I don't trust who you are, and this is not professional for a company to call me and ask me my DOB, if you have something important for me just email me .


so I it made me think is that a scam ? even if it is not a scam, is AmEx that stupid ? calling from a unkown number asking people to tell them their DOB ? wouldn't that be advising customers to do bad practice ? to give their info to anyone who calls them and claims they are from AmEX ?


CD (change directory) to a long path without lots of tab ...

I used to go to this directory every time I wanted to develope this cookbook,
cd /home/chef-repo/cccis-cookbooks-parent/cccis-weblogic

which involved lots of tab... one way to fix that would be creating a soft link at home or any where else you wanna acccess it, but thats would be lots of soft links,

I decided to go with environment variables

export weblogic_cookbook=/home/medya/chef-repo/cccis-cookbooks-parent/cccis-weblogic
now anywhere I am all I have to do is,
cd $weblogic_cookbook


the good thing is I dont even have to type $weblogic_cookbook, I can type $web...and press tab it will auto complete me. pretty sweet :)

to make this permanent, and make it run every time you open a new seassion (like when you duplicate a SSH seassion) you need to add to to the profile.d foder

I added it to a file under /etc/profile.d/MedyaProfile.sh


Related

Labels

computer (45) ubuntu (45) linux (23) tutorial (20) software overview (13) terminal (12) programming (11) opinion (8) troubleshooting (8) life (7) bash (5) vim (5) phpBB (4) suggestion (4) tips (4) 12.04 (3) extension and addons (3) firefox (3) java (3) personal (3) python (3) shell (3) windows (3) 64bit (2) Vagrant (2) backup (2) bug (2) code (2) google (2) google chrome (2) monitor (2) php (2) phpBB3 (2) shorter prompt (2) virtualbox (2) $_SERVER['REQUEST_URI'] (1) 2.7 (1) ALT+Backspace (1) AVR (1) Alt-Printscreen-K (1) CTRL+ALT+DELETE (1) Chef (1) Chicago (1) DRM (1) Debugging (1) Gimp (1) Gimp 2.8 (1) Microcontroler (1) Restart X (1) UML (1) Ventra (1) adsense (1) apple (1) audio (1) aws (1) background process (1) bing (1) blank (1) boot (1) business review (1) cd (1) chrome (1) comcast (1) computer kubuntu (1) cookie (1) database (1) date (1) display (1) domain name (1) download manager (1) dual boot (1) dual monitor (1) eclipse (1) extensions (1) feature request (1) file (1) folder (1) freeze (1) funny (1) gimp single window (1) gnome 3.10 (1) google docs (1) google plust (1) google+ (1) grep (1) icon (1) idea (1) install (1) iterator (1) linux links (1) list (1) literature (1) microsoft (1) moonlight (1) mysql (1) name (1) nautilus (1) netflix (1) notepad++ (1) permission (1) photo (1) prompt (1) protest (1) putty (1) read from file (1) realtek (1) resolution (1) roku (1) samsung (1) screenshot (1) security (1) server (1) skype (1) space (1) spam (1) spambot (1) sql (1) system monitor (1) tar (1) task manager (1) template design (1) th23 domain (1) thinking (1) ubuntu 13.10 (1) unity (1) vimrc (1) virtual machine (1) wget (1) with space (1) xorg (1) xrand (1)