#Query
# group by, count and sort
Model.objects.values('ingredient','category').annotate(count=Count('ingredient')).order_by('-count')
#Query
# group by, count and sort
Model.objects.values('ingredient','category').annotate(count=Count('ingredient')).order_by('-count')
sort -u -t, -k1,1 file - Unique in column
u for uniquet, so comma is the delimiterk1,1 for the key field 1sed '/^$/d' myFile - remove blank lines from a filefind ~/ -type d -maxdepth 3 -exec du -hs '{}' \; - display usage for all folders in a directorycurl http://requestb.in/10wkj9v1 -x http://183.220.199.76:8123 - proxy testingcurl -o /dev/null -s -w "Connect: %{time_connect} \nTime to first byte: %{time_starttransfer}\nTotal time: %{time_total} \n" <url> - Webpage perf stats using curlnc -z -v 192.168.15.196 1-1000| <system.webServer> | |
| <staticContent> | |
| <remove fileExtension=".svg" /> | |
| <remove fileExtension=".svgz" /> | |
| <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> <!-- Scalable Vector Graphics iPhone, iPad --> | |
| <mimeMap fileExtension=".svgz" mimeType="image/svg+xml" /> | |
| <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> <!-- Web Open Font Format for Firefox --> | |
| <mimeMap fileExtension=".ttf" mimeType="application/x-font-truetype" /> <!-- true type font for IE--> | |
| <mimeMap fileExtension=".otf" mimeType="application/x-font-opentype" /> <!-- OpenType--> | |
| <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /> <!-- embedded open type for IE --> |
bloom.contains(el) |
Remarks |
|---|---|
| TRUE | el may or maynot be present |
| FALSE | Not present in set |