Thursday, September 26, 2013

How to Clean up Directory Service cache

If you can not resolve locally any domain name try to clean up Directory Service cache. Use with sudo this utility:

dscacheutil – gather information, statistics and initiate queries to the Directory Service cache.

Use it with the option:

flushcache – Flushes the entire cache.  This should only be used in extreme cases.  Validation information is used within the cache along with other techniques to ensure the OS has valid information available to it.

For example:

sudo dscacheutil -flushcache

Friday, August 16, 2013

How to add a variable to the the existed environment variable in a bash command

How to add a variable to the the existed environment variable in a bash command:

1. Let's suppose that you already have a some env.variable (check all variables that you have with command env). As an example we'll use REPO_B

2. Say you want to run svn check out from the branch repository and do check out the specific branch branchA.

3. The syntaxys is like this:
svn co REPO_B/branchA branchA

If you're a developer and have an iPad

If you're a developer and have an iPad sheck this link:
http://omz-software.com/editorial/

Thursday, July 18, 2013

How to set correctly current date on linux, mac, etc


How to set timezone on Linux:
Find out your timezone here /usr/share/zoneinfo/
e.g. for Ukraine, Kiev it would be:
/usr/share/zoneinfo/Europe/Kiev

To apply it you need first to remove "localtime" file from etc/localtime
Then create from /usr/share/zoneinfo/Europe/Kiev soft link at /etc/ and name it "localtime", e.g.:
ln -s /usr/share/zoneinfo/Europe/Kiev /etc/localtime

Check created link:
ls -l
... /etc/localtime -> /usr/share/zoneinfo/Europe/Kiev


Update current time on your OS with NTP server:
ntpdate -b pool.ntp.org


Check your current date:
date
Thu Jul 18 13:55:20 EEST 2013

That's it.

Monday, June 3, 2013

How to root Android on Samsung Galaxy Wonder

Check this link http://forum.xda-developers.com/showthread.php?t=1317394

Thursday, March 21, 2013

How to change a HOSTNAME on mac

If you have to change a hostname of your Mac do this in Terminal:

1. Check your hostname with the one of these commands:
hostname
echo $HOSTNAME
uname -n

2. Set a new hostname:
sudo scutil --set HostName yourNewHostname

Wednesday, November 14, 2012

How to protect your Skype account

If you want to protect your Skype account do this:

1. Add to your profile a new unknown for anybody email address.
2. Make it as a primary email address

If you want to know more details read this article:
http://pixus-ru.blogspot.com/2012/11/hack-any-skype-account-in-6-easy-steps.html

Thursday, November 1, 2012