Skip to content

Instantly share code, notes, and snippets.

@Bonias
Bonias / msgraph-malformed-response-body.json
Created January 19, 2021 17:21
msgraph-malformed-response-body.json
{"responses": [{"id": "0","status":503,"headers" : {"Content-Type":"text/html; charset=us-ascii"},"body":<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Service Unavailable</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Service Unavailable</h2>
<hr><p>HTTP Error 503. The service is unavailable.</p>
</BODY></HTML>
}]}
@Bonias
Bonias / keybase.md
Created June 19, 2018 13:21
keybase.md

Keybase proof

I hereby claim:

  • I am Bonias on github.
  • I am piotrboniecki (https://keybase.io/piotrboniecki) on keybase.
  • I have a public key whose fingerprint is 5B76 6179 2445 378E DD58 9FA5 C929 A71F 427F 7166

To claim this, I am signing this object:

@Bonias
Bonias / cookies-checker-2.css
Last active December 15, 2015 13:09
cookies checker
.cookie-alert-message {
position: fixed;
bottom: 15px;
right: 15px;
background: #333;
width: 800px;
padding: 10px;
opacity: 0.9;
font-size: 11px;
border-radius: 5px;
require 'net/http'
class UrlValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
url = value
# Regex code by 'Arsenic' from http://snippets.dzone.com/posts/show/3654
if url =~ /^
( (https?):\/\/ )?