Wednesday, June 27, 2012
[windows] insert text into existing file
cmd
type filename.txt >> oldfile.txt
ref:
http://stackoverflow.com/questions/903491/display-text-from-txt-file-in-batch-file
http://www.computerhope.com/copyhlp.htm
http://ask.metafilter.com/28875/Append-to-text-file
keywords:
append to text file, insert text using cmd, windows cmd command
type filename.txt >> oldfile.txt
ref:
http://stackoverflow.com/questions/903491/display-text-from-txt-file-in-batch-file
http://www.computerhope.com/copyhlp.htm
http://ask.metafilter.com/28875/Append-to-text-file
keywords:
append to text file, insert text using cmd, windows cmd command
Sunday, June 17, 2012
free ssl enabled flash clock
Get your SSL Clock here: http://www.timeanddate.com/clocks/free.html
this website offers flash clock with SSL support to embed to your website.
mine (Kuala Lumpur, Malaysia +8GMT)
https://freesecure.timeanddate.com/clock/i35omvcs/n122/szw110/szh110/hoced1c24/hbw10/cf100/hgr0/fiv0/fas34/fdi72/mqv0/mhc000/mhs3/mhl20/mhw1/mhd84/mmv0/hhs1/hms1/hsc000/hss1
get your now. :)
this website offers flash clock with SSL support to embed to your website.
mine (Kuala Lumpur, Malaysia +8GMT)
https://freesecure.timeanddate.com/clock/i35omvcs/n122/szw110/szh110/hoced1c24/hbw10/cf100/hgr0/fiv0/fas34/fdi72/mqv0/mhc000/mhs3/mhl20/mhw1/mhd84/mmv0/hhs1/hms1/hsc000/hss1
get your now. :)
Saturday, June 16, 2012
[windows] reset network connection
ref: http://ttcshelbyville.wordpress.com/tag/winsock-reset/
Every have that laptop or netbook that connects to your computer but won’t go online at another location? You can quickly rebuild the IP stack and force the computer to get online at another location by typing the following command:
netsh int ip reset C:iplog.txt
Of course if you have a computer that won’t get online even if it has an ip address, do several things -
- Click Start Menu, type cmd in the search box or run box ( Hold down Ctrl + Shift and hit Enter)Type the following commands, each followed by pressing enter.
- ipconfig /flushdns
- nbtstat -R
- nbtstat -RR
- netsh int reset all
- netsh int ipv4 reset
- netsh winsock reset catalog
This will rebuild the tcp/ip protocol stack (fully)
After rebooting, run a command prompt as an administrator and type:
- netsh interface tcp set global autotuninglevel=disabled
Reboot
Tuesday, June 05, 2012
keychain activation
ref:
http://www.gentoo.org/doc/en/keychain-guide.xml
[FIXED] this is missing instruction
$ exec /usr/bin/ssh-agent $SHELL
$ ssh-add
ref: http://www.cyberciti.biz/faq/ssh-password-less-login-with-dsa-publickey-authentication/
load keychain before rsync
problem [solved]
[FIXED] this is missing instruction
$ exec /usr/bin/ssh-agent $SHELL
$ ssh-add
ref: http://www.cyberciti.biz/faq/ssh-password-less-login-with-dsa-publickey-authentication/
Code Listing 3.6: Enabling keychain in .bash_profile
|
keychain ~/.ssh/id_dsa . ~/.keychain/$HOSTNAME-sh . ~/.keychain/$HOSTNAME-sh-gpg |
load keychain before rsync
source $HOME/.keychain/$HOSTNAME-sh
rsync -avrtz root@hostname.com:/path/from /path/destination
problem [solved]
Subscribe to:
Posts (Atom)