New York was hut by hurricane Irene last weekend. My apartment located in Zone A (mandatory evacuation).. I did not evacuate.
Public transportation was shutdown for the weekend first time.
New York was hit by hurricane last week. My apartment was located in Zone A (mandatory evacuation). I did not evacuate ... The building was not flooded. Here some picture of flooding Sheepsheadbay/Manhattan Beach area. Mayor Mike Bloomberg shut down public transportation.
Wednesday, August 31, 2011
drush
Helpful Drush Commands:
- drush fra - feature # Revert all
- drush fu $module # update the code
- drush dis $module # disable module
- drush en $module # enable module
- drush cc menu # clear cache for menu
- drush cc all # clear all cache
- drush sm # show modules The official full name of the command is pm-list which is confusing so just ignore it
- drush scr test.php # running a Drupal script
- drush php-script test.php # run a Drupal Script
- drush php-eval 'global $user; print_r($user)' # executing code
Tuesday, August 23, 2011
SSH Login Without Password
Server A (Local Server)
Server B (Remote Server)
Server A:
1. ssh-keygen -t rsa // generate a key using ssh-keygen
// More Secure: ssh-keygen -t rsa -b 4096
2. scp id_rsa.pub myname@SERVERB:/home/myname/
SERVER B:
1. ssh-keygen -t rsa
2. cp id_rsa.pub .ssh/authorized_keys2
3. chmod 700 ../.ssh
4. chmod 640 .ssh/authorized_keys2
Server B (Remote Server)
Server A:
1. ssh-keygen -t rsa // generate a key using ssh-keygen
// More Secure: ssh-keygen -t rsa -b 4096
2. scp id_rsa.pub myname@SERVERB:/home/myname/
SERVER B:
1. ssh-keygen -t rsa
2. cp id_rsa.pub .ssh/authorized_keys2
3. chmod 700 ../.ssh
4. chmod 640 .ssh/authorized_keys2
Troubleshooting MySQL Slow Queries with Tcpdumps
Great article by Sean Hull - Troubleshooting MySQL Slow Queries with Tcpdumps
Monday, August 22, 2011
VIM (tutorial 1)
I - insert at the begin of line
A - append to end of line
o/O - open a new line after/before the current
v/V - Visual mode to select text
Shift+R - replace text
C - change remaining part of line
r - replace one character
~ - changes case
J - joins lines
Ctrl+A - increment a number
Ctrl+B - decrement a number
. - repeat last command (a simple macro)
= indent line
A - append to end of line
o/O - open a new line after/before the current
v/V - Visual mode to select text
Shift+R - replace text
C - change remaining part of line
r - replace one character
~ - changes case
J - joins lines
Ctrl+A - increment a number
Ctrl+B - decrement a number
. - repeat last command (a simple macro)
= indent line
Thursday, August 18, 2011
Thursday, August 11, 2011
Git on RHEL/CENTOS
Git is not available in RHEL repository. Use the following commands to install it.
rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install git
rpm -ivh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
yum install git
Wednesday, August 10, 2011
wget utlity on MAC
By default wget utility is not included in MAC. So I decided to install it through 'port'
sudo port install wget
---> Computing dependencies for wget
---> Fetching archive for wget
---> Fetching wget
---> Attempting to fetch wget-1.12.tar.gz from ftp://ftp.gnu.org/gnu/wget
---> Verifying checksum(s) for wget
---> Extracting wget
---> Applying patches to wget
---> Configuring wget
---> Building wget
---> Staging wget into destroot
---> Installing wget @1.12_3+ssl
---> Activating wget @1.12_3+ssl
To customize wget, you can copy wgetrc.sample to wgetrc
in /opt/local/etc and then make changes.
---> Cleaning wget
sudo port install wget
---> Computing dependencies for wget
---> Fetching archive for wget
---> Fetching wget
---> Attempting to fetch wget-1.12.tar.gz from ftp://ftp.gnu.org/gnu/wget
---> Verifying checksum(s) for wget
---> Extracting wget
---> Applying patches to wget
---> Configuring wget
---> Building wget
---> Staging wget into destroot
---> Installing wget @1.12_3+ssl
---> Activating wget @1.12_3+ssl
To customize wget, you can copy wgetrc.sample to wgetrc
in /opt/local/etc and then make changes.
---> Cleaning wget
Skirt Steak
I made barbecure at "Ford Street balcony" (aka my apartment). I inivted few friends and relatives to my place. We decided to make skirt steak.
It is really good choice for barbecue because:
Skirt Steak price is about $10 per lb. For more information read on wikipedia
here
It is really good choice for barbecue because:
- delicious
- healthy
- fast
Skirt Steak price is about $10 per lb. For more information read on wikipedia
here
Old Craton Aqueduct & Groton Gorge Park (hiking)
I hiked Old Craton Aqueduct path from Ossining Train Station to New Craton Dam that is located in Groton Gorge Park.
It was my third time exploring this area, few years back went with Ignat. I really enjoyed the hike before. So on 8/6/2011 I decided to explore the area again in my first date with Alina.
We drove from NYC to Ossining Station and park there. August is not great idea for hiking but it was not so hot. We hiked for about 15 miles both ways and enjoyed the hike.
It was my third time exploring this area, few years back went with Ignat. I really enjoyed the hike before. So on 8/6/2011 I decided to explore the area again in my first date with Alina.
We drove from NYC to Ossining Station and park there. August is not great idea for hiking but it was not so hot. We hiked for about 15 miles both ways and enjoyed the hike.
Tuesday, August 2, 2011
Tesla motors
There is "Tesla Motors" store on West 25th street between 9th & 10th street. The store is located on my way from subway station to work. I am very interested in electrical cars and see huge future in them. It is good for environment, country, people and etc.
I would consider to buy one of the cars in near future.
See some pictures that I took from my iPhone 4.
I would consider to buy one of the cars in near future.
See some pictures that I took from my iPhone 4.
Victor's Birthday
Sunday July 31, 2011 after soccer game in Garritsen beach we meet at Victor's house to celebrate his 45th birthday... There were 6 people in the birthday celebration. I had good time and have a chance to know some people better.
One show that I like to watch is House MD. Accidently I find out that Lisa Edelstein that plays Cuddy on the show is related to Lesha. Small world.
One show that I like to watch is House MD. Accidently I find out that Lisa Edelstein that plays Cuddy on the show is related to Lesha. Small world.
The Starett-Lehigh Building
The Starett-Lehigh Building located at 601 West 26th Street, New York New York 10001.
Martha Stewart Living Omnemedia office located here. The building is huge and has very interesting history.
For more information click here
Martha Stewart Living Omnemedia office located here. The building is huge and has very interesting history.
For more information click here
Subscribe to:
Posts (Atom)