To turn you monitor off on your:
MacBook pro press Shift-Control-Eject. (eject is the cdrom eject button)
IBM ThinkPad T42 press FN-F3
Sunday, September 5, 2010
Wednesday, September 1, 2010
Exchange remote connectivity analyzer
https://www.testexchangeconnectivity.com/default.aspx#&&/wEXAQUBcwUBM6hsZ7Mm/gYiLf3f68Q6JkwLY9BI
using the mail command
To test postfix mail routing, use the mail command.
make sure mailutils is already installed
to send a message type:
mail -s (enter)
someone@home.com (enter)
(enter)
this is a test (enter)
control-d to send message
or
control-c twice to cancel message
Example:
mail -s testing
To: someone@home.com
CC:
This is a test of my postfix install/routing
^d
make sure mailutils is already installed
to send a message type:
mail -s
someone@home.com (enter)
(enter)
this is a test (enter)
control-d to send message
or
control-c twice to cancel message
Example:
mail -s testing
To: someone@home.com
CC:
This is a test of my postfix install/routing
^d
Monday, July 12, 2010
Wednesday, May 26, 2010
AD userAccountControl values
Here are the values/descriptions for the AD attribute for userAccountControl
512 - Enable Account
514 - Disable account
544 - Account Enabled - Require user to change password at first logon
4096 - Workstation/server
66048 - Enabled, password never expires
66050 - Disabled, password never expires
66080 - Enabled, DONT_EXPIRE_PASSWORD - PASSWD_NOTREQD
262656 - Smart Card Logon Required
532480 - Domain controller
1 - script
2 - accountdisable
8 - homedir_required
16 - lockout
32 - password_not_reqd
64 - password_cant_change
128 - encrypted_text_pwd_allowed
256 - temp_duplicate_account
512 - normal_account
2048 - interdomain_trust_account
4096 - workstation_trust_account
8192 - server_trust_account
65536 - dont_expire_password
131072 - mns_logon_account
262144 - smartcard_required
524288 - trusted_for_delegation
1048576 - not_delegated
2097152 - use_des_key_only
4194304 - dont_req_preauth
8388608 - password_expired
16777216 - trusted_to_auth_for_delegation
512 - Enable Account
514 - Disable account
544 - Account Enabled - Require user to change password at first logon
4096 - Workstation/server
66048 - Enabled, password never expires
66050 - Disabled, password never expires
66080 - Enabled, DONT_EXPIRE_PASSWORD - PASSWD_NOTREQD
262656 - Smart Card Logon Required
532480 - Domain controller
1 - script
2 - accountdisable
8 - homedir_required
16 - lockout
32 - password_not_reqd
64 - password_cant_change
128 - encrypted_text_pwd_allowed
256 - temp_duplicate_account
512 - normal_account
2048 - interdomain_trust_account
4096 - workstation_trust_account
8192 - server_trust_account
65536 - dont_expire_password
131072 - mns_logon_account
262144 - smartcard_required
524288 - trusted_for_delegation
1048576 - not_delegated
2097152 - use_des_key_only
4194304 - dont_req_preauth
8388608 - password_expired
16777216 - trusted_to_auth_for_delegation
Thursday, December 3, 2009
How to read binary files
To read binary .gz files use the "zless" command.
Example:
$ sudo zless /var/log/mail/info.1.gz | grep -i someone@email.com
Example:
$ sudo zless /var/log/mail/info.1.gz | grep -i someone@email.com
Tuesday, October 6, 2009
show apps that are using an Internet connection
Thanks to commandlinefu (http://www.commandlinefu.com/commands/view/3543/show-apps-that-use-internet-connection-at-the-moment.)
To show a list of applications using an Internet connection, use the following commands:
$ lsof -P -i -N | cut -f l -d " " | uniq | tail -n =2 (only shows name of app)
or
$ lsof -P -i -n (shows more info, cleaner look imo)
or
$ ss -p (same result, less clean)
for one line per process:
$ ss -p | cat
for established sockets only:
$ ss -p | grep STA
for just process names:
$ ss -p | cut -f2 -sd\"
or
$ss -p | grep STA | cut -f2 -d\"
To show a list of applications using an Internet connection, use the following commands:
$ lsof -P -i -N | cut -f l -d " " | uniq | tail -n =2 (only shows name of app)
or
$ lsof -P -i -n (shows more info, cleaner look imo)
or
$ ss -p (same result, less clean)
for one line per process:
$ ss -p | cat
for established sockets only:
$ ss -p | grep STA
for just process names:
$ ss -p | cut -f2 -sd\"
or
$ss -p | grep STA | cut -f2 -d\"
Subscribe to:
Posts (Atom)