Glossary:
- md: multiple devices
 
| command | description | 
|---|---|
cat /proc/mdstat | 
show status of all raids | 
mdadm --detail /dev/md0 | 
detailed status of raid md0 | 
| <?xml version="1.0" encoding="utf-8"?> | |
| <Client name="Sony Bravia 2014"> | |
| <Identification> | |
| <Header name="X-AV-Client-Info" regex=".*KDL-\d{2}[WR][5689]\d{2}B.*" /> | |
| <DeviceDescription> | |
| <Manufacturer substring="Sony" /> | |
| <FriendlyName regex="KDL-\d{2}[WR][5689]\d{2}B.*" /> | |
| </DeviceDescription> | |
| </Identification> | |
| <DeviceDescription> | 
Google Chrome Developers says:
The new WOFF 2.0 Web Font compression format offers a 30% average gain over WOFF 1.0 (up to 50%+ in some cases). WOFF 2.0 is available since Chrome 36 and Opera 23.
Some examples of file size differences: WOFF vs. WOFF2
| """ | |
| Example of making a request to JIRA as a trusted application. | |
| In this example, we create a new issue as an arbitrary user. | |
| More information on this technique at: | |
| https://answers.atlassian.com/questions/247528/how-do-you-impersonate-a-user-with-jira-oauth | |
| """ | |
| import oauth2 | |
| import time | 
| BIOS Setup | |
| ---------- | |
| 1) Boot into the BIOS setup utility (press F2 or DEL) and open Advanced > Serial Port Console Redirection. | |
| 2) Disable COM1 and EMS console redirection and enable SOL redirection. | |
| 3) Set the SOL console redirection settings as follows: | |
| Aptio Setup Utility - Copyright (C) 2012 American Megatrends, Inc. | |
| Advanced | |
| /----------------------------------------------------+-------------------------\ | 
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' | 
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| #!/usr/bin/env python | |
| # with help and inspiration from | |
| # * ASN1_generate_nconf(3) (specifically the SubjectPublicKeyInfo structure) | |
| # * http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL | |
| # * http://blog.oddbit.com/2011/05/converting-openssh-public-keys.html | |
| import sys | |
| import base64 | |
| import struct |