Custom Search
Showing posts with label Other. Show all posts
Showing posts with label Other. Show all posts

Saturday, May 26, 2012

how to checkout, track and pull all remote git branches as local branches

how to checkout, track and pull all remote git branches as local branches

1) Type this command in one line and run
#for remote in `git branch -r | grep -v master `; 
do git checkout --track $remote ; done
 
2) 
#git branch 
 
3)
#git checkout somebranch
#git pull

4)
#git branch -a
 
5)
#git branch -r

Wednesday, September 29, 2010

how deny ping to a system

how deny ping to a system using IP

1)
[root@localhost trunk]# vim /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT --source 192.168.1.105 -j DROP <---- Means DROP any request to 192.168.1.105 from our machine.


2) Restart iptables
[root@localhost trunk]# service iptables restart

3) Try to ping
[root@localhost trunk]# ping 192.168.1.105
PING 192.168.1.105 (192.168.1.105) 56(84) bytes of data.

--- 192.168.1.105 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1029ms

Wednesday, March 10, 2010

how to register irc nickname

how to register irc nickname

1) /msg NickServ help

2) /msg NickServ help register

3) /msg NickServ register 123456 xxxx@gmail.com


-------------------------------------1

/msg NickServ help <--------

[09:23] <-> NickServ> help
[09:23] [Notice] -NickServ- ***** NickServ Help *****
[09:23] [Notice] -NickServ- NickServ allows users to 'register' a nickname, and stop
[09:23] [Notice] -NickServ- others from using that nick. NickServ allows the owner of a
[09:23] [Notice] -NickServ- nickname to disconnect a user from the network that is using
[09:23] [Notice] -NickServ- their nickname.
[09:23] [Notice] -NickServ-
[09:23] [Notice] -NickServ- For more information on a command, type:
[09:23] [Notice] -NickServ- /msg NickServ help
[09:23] [Notice] -NickServ- For a verbose listing of all commands, type:
[09:23] [Notice] -NickServ- /msg NickServ help commands
[09:23] [Notice] -NickServ-
[09:23] [Notice] -NickServ- The following commands are available:
[09:23] [Notice] -NickServ- GHOST Reclaims use of a nickname.
[09:23] [Notice] -NickServ- GROUP Adds a nickname to your account.
[09:23] [Notice] -NickServ- UNGROUP Removes a nickname from your account.
[09:23] [Notice] -NickServ- IDENTIFY Identifies to services for a nickname.
[09:23] [Notice] -NickServ- INFO Displays information on registrations.
[09:23] [Notice] -NickServ- LISTCHANS Lists channels that you have access to.
[09:23] [Notice] -NickServ- REGISTER Registers a nickname.
[09:23] [Notice] -NickServ- SET Sets various control flags.
[09:23] [Notice] -NickServ- RELEASE Releases a services enforcer.
[09:23] [Notice] -NickServ-
[09:23] [Notice] -NickServ- Other commands: ACCESS, DROP, HELP, LISTOWNMAIL, LOGOUT,
[09:23] [Notice] -NickServ- SETPASS, ACC, STATUS, TAXONOMY, VERIFY,
[09:23] [Notice] -NickServ- VACATION
[09:23] [Notice] -NickServ- ***** End of Help *****


-------------------------------------2

/msg NickServ help register <---------

[09:24] <-> NickServ> help register
[09:24] [Notice] -NickServ- ***** NickServ Help *****
[09:24] [Notice] -NickServ- Help for REGISTER:
[09:24] [Notice] -NickServ-
[09:24] [Notice] -NickServ- This will register your current nickname with NickServ.
[09:24] [Notice] -NickServ- This will allow you to assert some form of identity on
[09:24] [Notice] -NickServ- the network and to be added to access lists. Furthermore,
[09:24] [Notice] -NickServ- NickServ will warn users using your nick without
[09:24] [Notice] -NickServ- identifying and allow you to kill ghosts.
[09:24] [Notice] -NickServ- The password is a case-sensitive password that you make
[09:24] [Notice] -NickServ- up. Please write down or memorize your password! You
[09:24] [Notice] -NickServ- will need it later to change settings.
[09:24] [Notice] -NickServ-
[09:24] [Notice] -NickServ- You have to confirm the email address. To do this,
[09:24] [Notice] -NickServ- follow the instructions in the message sent to the email
[09:24] [Notice] -NickServ- address.
[09:24] [Notice] -NickServ-
[09:24] [Notice] -NickServ- Syntax: REGISTER
[09:24] [Notice] -NickServ-
[09:24] [Notice] -NickServ- Examples:
[09:24] [Notice] -NickServ- /msg NickServ REGISTER bar foo@bar.com
[09:24] [Notice] -NickServ- ***** End of Help *****

-------------------------------------------3

/msg NickServ register 123456 xxxx@gmail.com <-------


-------------------------------------------

Tuesday, October 6, 2009

howto install new softwares in debian ubuntu fedora linux

howto install softwares in debian ubuntu fedora linux
----------------------
howto install new softwares in debian ubuntu linux.
HOWTO Install *.deb?.(debian package)

#apt-get install firefox
#dpkg -i firefox.deb
#yum install firefox <--- to work it first install #apt-get install yum

*********************
howto install new softwares in fedora linux
HOWTO Install *.rpm?.(redhat package)

#rpm -ivh firefox.rpm
#yum install firefox

*********************
HOWTO Instal using Source Code in linux debian ubuntu fedora
HOWTO Instal from Source Code?.

Download source code and extract it,then change directory to extracted directory,then type following commands.
Read readme or install file in the extracted directory.

#./configure <----- for create makefile.
or
#./configure --prefix /home/user/ <---- for specify installation directory
#make
<------------- for compiling C files specified in the makefile or run makefile
#make install <------- for install compiled software
#make clean
<----to remove installed software

*********************

Howto find device associated with a /dev file.

Howto find /dev file associated with a device.
Howto find device associated with a /dev file.

Suppose we want to check that the file "/dev/rfcomm0" associated with which device.
For that use following command.

#echo 1 > /dev/rfcomm0

If you get an indication in your device,then you can ensure that.

Suppose your device is a mobile and connected via bluetooth.
Then above command show a connection request in your mobile.

------------------------------------
Examples:
#echo 1 > /dev/audio <---- You can hear a sound in speaker
#echo 1 > /dev/cd <---- You can see CD drive LED blink
#echo 1 > /dev/dvd <---- You can see DVD drive LED blink
#echo 1 > /dev/stdin <--- Print "1" in terminal
#echo 1 > /dev/stdout <--- Print "1" in terminal
#echo 1 > /dev/stderr <--- Print "1" in terminal

------------------------------------