Skip to content

Instantly share code, notes, and snippets.

View z-turk3's full-sized avatar

Zoran Turk z-turk3

  • Zagreb, Croatia
View GitHub Profile
{
"response": {
"responseCode": "OK",
"currentTcVersion": "13",
"tcContent": "Version 16, last changed: 2016-02-18\n\n1.\tDefinitions\n\n1.1\t\"Big Bet World\", \"We\", \"Us\", \"Our\" \u2013 refers to Big Bet World, a business name of M-Hub Gaming Operations Limited, a company under registration number C63954, entered into Malta Financial Service Authority Registry of Companies on February 14th, 2014, and registered office and business address at No. 12, Tigne place, Office 2\/1, Tigne Street, Sliema SLM 3173, Malta. M-Hub Gaming Operations Limited is established in accordance with Maltese law and is licensed and regulated by the Malta Gaming Authority (MGA), therefore it is authorised to offer and accept bets on any international event with an uncertain outcome. The MGA license was issued on October 27th, 2014. License number is CL2\/976\/2014.\n\n1.2\t\"Website\" \u2013 refers to Big Bet World official website www.bigbetworld.com and any other websites owned by Big Bet World, including websit
REQUEST: https://perioddiary-api.nanobitgames.com/api/v2/sign_in/oauth
$ curl -i \
-X POST \
-H "X-USER-AGENT: Simulator;iOS 9.3;1.0" \
-H "Content-Type: application/x-www-form-urlencoded; charset=utf-8" \
-H "Accept-Language: hr-SA;q=1.0,en-SA;q=0.9,ar-SA;q=0.8,ja-SA;q=0.7" \
-H "Accept-Encoding: gzip;q=1.0,compress;q=0.5" \
-H "User-Agent: Period Diary Pro/co.infinum.Period-Diary (61; OS Verzija 9.3 (Izdanje 13E230))" \
-d "device_id=f16Qa1U8IP1YKMK64O4W&lang=hr&oauth_token=EAADKhq883QMBAObKVPTnoz77EHu8vl6eL5O1LgDjpR18pcsPljW4nF2gQypNbZAzkFWr9Cii914F7vPUqmcrgS9OmHSxwPDl23ZBd2kh7sCYzZATxaMblrXq8LSOpFHRfqzObDvECwOwIZAWwpzQGZCWDw0npkidEkCAfFRlCEeLXoXVeIxlT26LZCamIHBWEZD" \
"https://perioddiary-api.nanobitgames.com/api/v2/sign_in/oauth"
@z-turk3
z-turk3 / xccov-to-sonarqube-generic.sh
Last active March 28, 2021 14:11
Extension to the sonarqube script for converting xcode code coverage to generic report found at: https://github.com/SonarSource/sonar-scanning-examples/tree/master/swift-coverage
#!/usr/bin/env bash
set -euo pipefail
function convert_file {
local xccovarchive_file="$1"
local file_name="$2"
local xccov_options="$3"
echo " <file path=\"$file_name\">"
xcrun xccov view $xccov_options --file "$file_name" "$xccovarchive_file" | \
sed -n '