Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bojanbjelic
bojanbjelic / curl-soap.cmd
Last active May 12, 2019 07:25
curl a SOAP service
curl "https://www.example.com/Service.svc" -H "SOAPAction: ""urn:service.example.com/IService/GetObject""" --data-binary @post.txt --comcodessed -k -D responseHeaders.txt -v -o response.txt
@bojanbjelic
bojanbjelic / gist:b3058ea8c1344c57bcd54705c58894fb
Last active May 12, 2019 07:25 — forked from SzymonPobiega/gist:5220595
DDD/CQRS/ES/Architecture videos

If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:

In the evenings read the Domain-Driven Design Quickly Minibook https://www.infoq.com/minibooks/domain-driven-design-quickly. During the day watch following great videos (in this order):

  1. Eric Evans' What I've learned about DDD since the book https://www.infoq.com/presentations/ddd-eric-evans  https://youtu.be/lE6Hxz4yomA
  2. Eric Evans' [Strategic Design - Responsibility Traps]{http://www.infoq.com/presentations/design-strategic-eric-evans}
  3. Udi Dahan's [Avoid a Failed SOA: Business & Autonomous Components to the Rescue]{http://www.infoq.com/presentations/SOA-Business-Autonomous-Components}
  4. Udi Dahan's [Command-Query Responsibility Segregation]{http://www.infoq.com/presentations/Command-Query-Responsibility-Segregation}
  5. Greg Young's [Unshackle Your Domain]{http://www.infoq.com/presentations/greg-young-unshackle-qcon08}
%AppData%\..\Local\Programs\Python\Python35-32\Scripts\pip.exe install jsonschema
py -m pip install svglib
@bojanbjelic
bojanbjelic / scan.cmd
Created August 19, 2015 14:44
wget directory structure (auto index, browsing allowed)
wget -nv -r -np -N --spider -l 6 --no-check-certificate -e robots=off --reject-regex="(\?C=)|(.*/img)|(.*/icons)|(.*/audio)|(.*/css)|(.*/img)|(.*/js)|(.*/swf)|(.*/images)|(.*/video)|(.*/sound)" -R "ico,html,txt,xml,json,jar,swf,zip,7z,unity3d,xnb,mp3,ogg,md5,pdb,exe" "http://www.example.int/"
sync-settings
### Keybase proof
I hereby claim:
* I am bojanbjelic on github.
* I am bojanbjelic (https://keybase.io/bojanbjelic) on keybase.
* I have a public key whose fingerprint is 555A 849B 26DF 25C3 A7D3 56B3 A4A8 F039 9FB1 58BB
To claim this, I am signing this object:
@bojanbjelic
bojanbjelic / img2ascii.js
Created April 9, 2015 08:20
convert image to ascii
// taken from http://thecodeplayer.com/walkthrough/cool-ascii-animation-using-an-image-sprite-canvas-and-javascript
//some variables
var r, g, b, gray;
var character, line = "";
//sprite stuff
var sprite = document.getElementById("sprite");
var W = sprite.width;
var H = sprite.height;
@bojanbjelic
bojanbjelic / gist:3f995b426c2f0d9039a6
Created December 2, 2014 14:07
date time UTC in ISO format
DateTime.Now.ToUniversalTime().ToString("o");
@bojanbjelic
bojanbjelic / cassinikill.cmd
Created December 10, 2013 15:57
Cassini kill
taskkill /IM WebDev.WebServer40.exe /F