Monday, March 19, 2012
Ubuntu EOL (End-Of-Life)
If you only need access to some old repositories the only step you need to apply is adding/editing few lines in /etc/apt/sources.list.
## EOL upgrade sources.list
# Required
deb http://old-releases.ubuntu.com/ubuntu/ CODENAME main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-security main restricted universe multiverse
# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ CODENAME-backports main restricted universe multivers
Now just execute apt-get update and you can use those repositories.
Ubuntu versions
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Thursday, March 15, 2012
How to check if a processor is capable of 64-bit.
If you are running Linux, open the terminal prompt and run:
grep --color=always -iw lm /proc/cpuinfoIf this command returns lm (Long Mode) as one of the flags, then your processor is capable of 64-bit.
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni monitor cx16 lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt
Thursday, March 1, 2012
Wireshark match operator
matches Does the protocol or text string match the given Perl regular expression?
fix.MsgType == "D" and fix.SecurityDesc matches "CLT|NGT"
The "matches" operator allows a filter to apply to a specified Perl-compatible regular expression (PCRE). The "matches" operator is only implemented for protocols and for protocol fields with a text string representation.
More information on PCRE can be found in the pcrepattern(3) man page (Perl Regular Expressions are explained in http://perldoc.perl.org/perlre.html).
fix.MsgType == "D" and fix.SecurityDesc matches "CLT|NGT"
The "matches" operator allows a filter to apply to a specified Perl-compatible regular expression (PCRE). The "matches" operator is only implemented for protocols and for protocol fields with a text string representation.
More information on PCRE can be found in the pcrepattern(3) man page (Perl Regular Expressions are explained in http://perldoc.perl.org/perlre.html).
Wednesday, February 29, 2012
Wednesday, February 15, 2012
Vim color scheme
I always forgot this:
In gvim, after changing the default color scheme, the next time gvim is started, the default setting is restored.Taken from: http://vim.wikia.com/wiki/Change_the_color_scheme
To retain the color scheme add colorscheme <scheme_name> to vimrc.
For example:
colorscheme murphy
Wednesday, February 8, 2012
AWK and the here-doc string
awk '{print $1}' <<!
jack be
nimble jack be
quick.
!
jas@hardy:~/awk$ ./here.sh
jack
nimble
quick.
Subscribe to:
Posts (Atom)