Fuck you Times New Romain. Long live fixed width font. TNR is like the asshole who doesn't know he's an asshole, until now.
It's a new year and things just keep moving. We change, things change, our circumstances change - if you let them change. Good things can happen. Good thoughts and good intention channeled though good actions are catalysts for these things.
Over the weekend I attended a Post Secret event in sunny Modesto, CA. There Frank Warren said (to the effect), if he had to relive all the pain in his life, every moment of heart wrenching pain, he'd do it all over again because it made him who he is today and appreciate the things he had in his life now.
Anyway, here's for change in 2012. Cheers all you assholes using TNR.
2012-04-02
2012-01-22
S/CP/SH BatchMode
Totally stolen via some internet page. ssh and scp use the same -o "BatchMode". The scp -B option is also very handy, however scripts are already running and I'm not going to change them.
1. ssh -o “BatchMode yes” Usage Example
If you have the password less login enabled, following example will login to the remote host and execute the who command without asking for the password.
local-host# ssh ramesh@remote-host who
If the password less login is not enabled, it will prompt for the password on the remote host as shown below.
local-host# ssh ramesh@remote-host who ramesh@remote-host's password:
If you use ssh -o “BatchMode yes”, then it will do ssh only if the password-less login is enabled, else it will return error and continues.
local-host# ssh -o "BatchMode yes" ramesh@remote-host Command
Batch mode command execution using SSH — success case
local-host# ssh -o "BatchMode yes" ramesh@remote-host who .. [Note: This will display the output of remote-host's who command]
Batch mode command execution using SSH — Failure case
local-host# ssh -o "BatchMode yes" ramesh@remote-host who
Permission denied (publickey,password).
Note: If you didn’t use -o “BatchMode yes”, the above command would’ve asked for the password for my account on the remote host. This is the key difference in using the BatchMode yes option.
2. scp -B option Usage Example
If you use scp -B option, it will execute scp only if the passwordless login is enabled, else it will exit immediately without waiting for password.
$ scp -B file root@IP:PATH
SCP in Batch mode — Successful Case
local-host# scp -B /etc/yp.conf ramesh@remote-host:/tmp yp.conf 100% 84 0.1KB/s 00:00
SCP in Batch mode — Failure Case
In this example, if scp is possible without authentication, the command will execute else it will exit as shown below.
local-host# scp -B /etc/yp.conf ramesh@remote-host:/tmp
Permission denied (publickey,password).
lost connection
2011-11-07
2011-10-11
2011-09-15
2011-09-14
2011-09-08
Yes, for those of us who manage somehow to cope with our mortality. The very meaninglessness of life forces man to create his own meaning. Children, of course, begin life with an untarnished sense of wonder, a capacity to experience total joy at something as simple as the greenness of a leaf; but as they grow older, the awareness of death and decay begins to impinge on their consciousness and subtly erode their joie de vivre, their idealism – and their assumption of immortality. As a child matures, he sees death and pain everywhere about him, and begins to lose faith in the ultimate goodness of man. But if he’s reasonably strong – and lucky – he can emerge from this twilight of the soul into a rebirth of life’s elan. Both because of and in spite of his awareness of the meaninglessness of life, he can forge a fresh sense of purpose and affirmation. He may not recapture the same pure sense of wonder he was born with, but he can shape something far more enduring and sustaining. The most terrifying fact about the universe is not that it is hostile but that it is indifferent; but if we can come to terms with this indifference and accept the challenges of life within the boundaries of death – however mutable man may be able to make them – our existence as a species can have genuine meaning and fulfillment. However vast the darkness, we must supply our own light.Stanley Kubrick.
Inner strength and struggle and all that. My perspective is always changing which may or may not be a bad thing. When things are down and out, I keep coming back to a nihilistic view of the world, but this is the very complementary to that in a way.
Subscribe to:
Posts (Atom)
