Showing posts with label Miscellaneous. Show all posts
Showing posts with label Miscellaneous. Show all posts
Thursday, December 1, 2011
Firefox 8 in Ubuntu 10.10
http://news.softpedia.com/news/How-to-Install-Firefox-8-in-Ubuntu-10-04-and-10-10-232859.shtml
P.S. There is also very interesting add-on for the Firefox, that helps to solve the problems with incorrect flash player installations. It's called "Flash-aid".
Friday, August 12, 2011
Nice PDF cropping tool
By using this tool you can easily crop pdf files to help them match the screen of your e-reader or smartphone http://www.pdfscissors.com/
Tuesday, March 1, 2011
Root user and password in Ubuntu
By default, Ubuntu has a root password set as a hash. Sometimes, you can make a mistake, for example, remove your account from the group that allowed to use sudo. In a such cases, it's useful to have an access to the root user itself.
To set root password manually we should type in the shell:
sudo passwd
To set root password manually we should type in the shell:
sudo passwd
Monday, February 28, 2011
Using SCP to copy files between hosts
To copy remote file to your filesystem use the following syntax:
scp your_username@remotehost.edu:foobar.txt /some/local/directory
To copy local file to remote filesystem use the following syntax:
scp foobar.txt your_username@remotehost.edu:/some/remote/directory
To copy folder to a remote filesystem use
scp -r foo your_username@remotehost.edu:/some/remote/directory/bar
scp your_username@remotehost.edu:foobar.txt /some/local/directory
To copy local file to remote filesystem use the following syntax:
scp foobar.txt your_username@remotehost.edu:/some/remote/directory
To copy folder to a remote filesystem use
scp -r foo your_username@remotehost.edu:/some/remote/directory/bar
Tuesday, February 16, 2010
ReGex
Special Character Explanation
. The “.” matches any single character. For example, “d.g” matches “dog”, “dig”, “dug”, and any word that contains those characters, like “daggonnit”.
(exp) The “()” segregates characters from the surrounding characters, so that you can use other metacharacters on the subexpression. For example, “d(o|i)g” matches “dog” and “dig”, but “do|ig” matches “do” and “ig”. A subexpression can also be used with repeated quantifiers to differentiate the characters meant for repetition. For example, “12(34){3}5” matches “123434345”.
| The “|” matches either expression it separates. For example, “dog|cat” matches “dog” or “cat”.
? The “?” indicates that there are 0 or 1 of the previous character. For example, “ra?ise” matches on “raise” or “rise”. Note that you must enter Ctrl+V and then the question mark,
or else the ASA CLI help function is performed instead.
* The “*” indicates that there are 0, 1, or any number of the previous character. For example, “mo*se” matches on “mse”, “mose”, “moose”, and so on.
+ The “+” indicates that there is at least 1 of the previous character. For example, “mo+se” matches on “mose” and “moose”, but not “mse”.
{x} or {x,} The “{}”, with a number between the braces, indicates the previous expression is repeated at least “x” times. For example, “ab(fd){2,}e” matches “abfdfde”, “abfdfdfde”, and so on.
[abc] The “[]” matches any character in the brackets. For example, “[Rr]” matches on “R” or “r”.
[^abc] The “[^]” matches a single character that is not contained within the brackets. For example, “[^abc]” matches any character other than “a”, “b”, or “c”; or “[^A-Z]” matches any single character that is not an uppercase letter.
[a-c] The “[-]” matches any character in the range. For example, “[A-Z]” matches any uppercase letter. You can also mix characters and ranges: “[abcq-z]” matches “a”, “b”, “c”, and “q” through “z”. You could also write this as “[a-cq-z]”.
" abc" The “""” preserves trailing or leading spaces in the string. For example, " secret" preserves the leading space when it looks for a match.
^ The “^” specifies the beginning of a line.
\ The “\”, when used with a regular expression metacharacter, matches a literal character. For example, “\.” matches a period (“.”). This is used when you want to match on a character that is itself a metacharacter.
\r The “\r” matches on a carriage return.
\n The “\n” matches on a new line.
\t The “\t” matches on a tab.
\f The “\f” matches on a form feed (new page).
\xNN The “\x” matches on an ASCII character specified by the two hexadecimal digits (NN).
\NNN The “\” matches on any ASCII character specified as octal (the three digits listed).
. The “.” matches any single character. For example, “d.g” matches “dog”, “dig”, “dug”, and any word that contains those characters, like “daggonnit”.
(exp) The “()” segregates characters from the surrounding characters, so that you can use other metacharacters on the subexpression. For example, “d(o|i)g” matches “dog” and “dig”, but “do|ig” matches “do” and “ig”. A subexpression can also be used with repeated quantifiers to differentiate the characters meant for repetition. For example, “12(34){3}5” matches “123434345”.
| The “|” matches either expression it separates. For example, “dog|cat” matches “dog” or “cat”.
? The “?” indicates that there are 0 or 1 of the previous character. For example, “ra?ise” matches on “raise” or “rise”. Note that you must enter Ctrl+V and then the question mark,
or else the ASA CLI help function is performed instead.
* The “*” indicates that there are 0, 1, or any number of the previous character. For example, “mo*se” matches on “mse”, “mose”, “moose”, and so on.
+ The “+” indicates that there is at least 1 of the previous character. For example, “mo+se” matches on “mose” and “moose”, but not “mse”.
{x} or {x,} The “{}”, with a number between the braces, indicates the previous expression is repeated at least “x” times. For example, “ab(fd){2,}e” matches “abfdfde”, “abfdfdfde”, and so on.
[abc] The “[]” matches any character in the brackets. For example, “[Rr]” matches on “R” or “r”.
[^abc] The “[^]” matches a single character that is not contained within the brackets. For example, “[^abc]” matches any character other than “a”, “b”, or “c”; or “[^A-Z]” matches any single character that is not an uppercase letter.
[a-c] The “[-]” matches any character in the range. For example, “[A-Z]” matches any uppercase letter. You can also mix characters and ranges: “[abcq-z]” matches “a”, “b”, “c”, and “q” through “z”. You could also write this as “[a-cq-z]”.
" abc" The “""” preserves trailing or leading spaces in the string. For example, " secret" preserves the leading space when it looks for a match.
^ The “^” specifies the beginning of a line.
\ The “\”, when used with a regular expression metacharacter, matches a literal character. For example, “\.” matches a period (“.”). This is used when you want to match on a character that is itself a metacharacter.
\r The “\r” matches on a carriage return.
\n The “\n” matches on a new line.
\t The “\t” matches on a tab.
\f The “\f” matches on a form feed (new page).
\xNN The “\x” matches on an ASCII character specified by the two hexadecimal digits (NN).
\NNN The “\” matches on any ASCII character specified as octal (the three digits listed).
Monday, November 30, 2009
RapidShare - Mac-address change
Mac-address change
Download link: http://rapidshare.com/files/314306253/a-Mac_Address_Change_v5.4.rar
Delete link: http://rapidshare.com/files/314306253/a-Mac_Address_Change_v5.4.rar?killcode=3706731593897795541
Download link: http://rapidshare.com/files/314306253/a-Mac_Address_Change_v5.4.rar
RapidShare - books
Miscellaneous books.
Download link: http://rapidshare.com/files/314289157/Books.rar
Delete link: http://rapidshare.com/files/314289157/Books.rar?killcode=1563574289151036471
Download link: http://rapidshare.com/files/314289157/Books.rar
RapidShare - remarks
A lot of remarks have been saved in here!
Cisco, Solaris, FreeBSD.
Download link: http://rapidshare.com/files/314283835/Remarks.rar
Cisco, Solaris, FreeBSD.
Download link: http://rapidshare.com/files/314283835/Remarks.rar
Subscribe to:
Posts (Atom)