bloom.contains(el) |
Remarks |
---|---|
TRUE | el may or maynot be present |
FALSE | Not present in set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 --> |
sort -u -t, -k1,1 file
- Unique in columnu
for uniquet
, so comma is the delimiterk1,1
for the key field 1
sed '/^$/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 curl- Portscan using netcat -
nc -z -v 192.168.15.196 1-1000
#Query
# group by, count and sort
Model.objects.values('ingredient','category').annotate(count=Count('ingredient')).order_by('-count')
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__ar": 1, | |
"payload": { | |
"entries": [{ | |
"uid": "keywordSELECT", | |
"subtext": "[FQL keyword]", | |
"text": "SELECT" | |
}, { | |
"uid": "keywordFROM", | |
"subtext": "[FQL keyword]", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select datetime(date, 'unixepoch') as dd,address,duration/60,id, | |
case (flags>>15)&1 when 1 then '1' else '0' end || case (flags>>14)&1 when 1 then '1' else '0' end || case (flags>>13)&1 when 1 then '1' else '0' end || case (flags>>12)&1 when 1 then '1' else '0' end || case (flags>>11)&1 when 1 then '1' else '0' end || case (flags>>10)&1 when 1 then '1' else '0' end || case (flags>>9)&1 when 1 then '1' else '0' end || case (flags>>8)&1 when 1 then '1' else '0' end || case (flags>>7)&1 when 1 then '1' else '0' end || case (flags>>6)&1 when 1 then '1' else '0' end || case (flags>>5)&1 when 1 then '1' else '0' end || case (flags>>4)&1 when 1 then '1' else '0' end || case (flags>>3)&1 when 1 then '1' else '0' end || case (flags>>2)&1 when 1 then '1' else '0' end || case (flags>>1)&1 when 1 then '1' else '0' end || case (flags>>0)&1 when 1 then '1' else '0' end flagbin | |
, flags, answered from call where duration > 0 and face_time_data IS NULL order by dd desc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if %1.==Sub. goto %2 | |
echo Encoding files in %1 | |
set dir=%1 | |
if exist %dir%\encoded\NUL goto processfiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pika | |
import sys | |
connection = pika.BlockingConnection(pika.ConnectionParameters( | |
host='localhost')) | |
channel = connection.channel() | |
channel.exchange_declare(exchange='emsp', | |
type='topic') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="addFlow"> | |
<http:inbound-endpoint keep-alive="true" exchange-pattern="request-response" host="localhost" port="${http.port}" path="add"/> | |
<transformer ref="httpToMapTransformer"/> | |
<message-properties-transformer scope="invocation"> | |
<add-message-property key="contextName" value="#[map-payload:campaignName]" /> | |
</message-properties-transformer> | |
<dynamicflows:add contextName="#[variable:contextName]"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.button { | |
background: #65a9d7; | |
display: inline-block; | |
padding: 10px 20px; | |
text-decoration: none; | |
width: auto; | |
color: white; |
OlderNewer