Skip to content

Instantly share code, notes, and snippets.

View AngelAlvarado's full-sized avatar

Angel Alvarado AngelAlvarado

View GitHub Profile
import unittest
import requests
from requests.auth import HTTPBasicAuth
import json
import urllib.parse
import os
class MixpanelGdpr:
"""
@see Readme for more details about this script and why it was needed
```
angular.js?body=1:69 Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: [[{"msg":"formCtrl.$error.required","newVal":[],"oldVal":[]},{"msg":"formCtrl.$error.required","newVal":"...","oldVal":"..."},{"msg":"{selected: human.answers[whichApplicantsId]}","newVal":{"selected":false},"oldVal":{}},{"msg":"fn: ngModelWatch","newVal":false},{"msg":"human.answers[whichApplicantsId]","newVal":false},{"msg":"{selected: human.answers[whichApplicantsId]}","newVal":{},"oldVal":{"selected":false}},{"msg":"fn: ngModelWatch","oldVal":false},{"msg":"human.answers[whichApplicantsId]","oldVal":false},{"msg":"totalHUmansSelected == 0","newVal":false,"oldVal":true},{"msg":"fn: function(){return n.$invalid}","newVal":false,"oldVal":true}],[{"msg":"fn: function() {\n return hasErrors(ctrl);\n }","newVal":false,"oldVal":true},{"msg":"formCtrl.$error.required","oldVal":"..."},{"msg":"formCtrl.$error.required","oldVal":"..."},{"msg":"totalHUmansSelecte
two tables and two columns
moves:
uid
moveId
ownership
state
moveDate
revenue:
@AngelAlvarado
AngelAlvarado / ESApacheLogsIndex.txt
Last active August 8, 2017 17:20
Elasticsearch Apache Logs index
{
"mappings":{
"logs":{
"properties":{
"auth":{
"type":"string"
},
"bytes":{
"type":"long"
},
@AngelAlvarado
AngelAlvarado / gist:9ac977a29e62825fdf435a2dc97c3ae5
Created April 14, 2017 21:38
Xquery find document that belong to Treaty news and belongs to a collection
declare namespace ta="http://www.ixxus.co.uk/model/ta-cms/1.0";
cts:uris(
(),
(),
cts:and-query((
cts:element-query(xs:QName('PublishedDocument'), cts:and-query(())),
cts:element-query(xs:QName("ta:drupalProductSection"),"Treaty News"),
cts:element-query(xs:QName('WTD'), cts:and-query(()))
))

Keybase proof

I hereby claim:

  • I am angelalvarado on github.
  • I am ang (https://keybase.io/ang) on keybase.
  • I have a public key ASD1enWCQb9_Ua1xl3IlTbwu7j1Z5FRrdqNoerQXRkziAwo

To claim this, I am signing this object:

<!--Tags – Checkout-->
<!--Pixel – Checkout-->
<script type="text/javascript" async="async" src='https://cityadspix.com/track/{{order_id}}/ct/q2/c/24145?click_id={{cityAds_clickID_cookie}}&customer_type={{customer_type}}&payment_method={{payment_method}}&order_total={{order_total}}&currency={{currency}}&coupon={{coupon}}&discount={{discount}}&basket={{basket}}&md=2'>
</script>
<noscript>
<img src='https://cityadspix.com/track/{{order_id}}/ct/q2/c/24145?click_id={{cityAds_clickID_cookie}}&customer_type={{customer_type}}&payment_method={{payment_method}}&order_total={{order_total}}&currency={{currency}}&coupon={{coupon}}&discount={{discount}}&basket={{basket}}' width="1" height="1">
</noscript>