Skip to content

Instantly share code, notes, and snippets.

View nzatsepilov's full-sized avatar

Nikita Zatsepilov nzatsepilov

View GitHub Profile
❌ Decoding error:
The given data was not valid JSON.
📄 for JSON: {}<!DOCTYPE html>
<html>
<head>
<title>Асинхронной модуль или обработчик завершил работу, когда асинхронная операция была ещё в состоянии ожидания.</title>
<meta name="viewport" content="width=device-width" />
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
$ curl -v \
-X POST \
-b "ASPSESSIONIDAQTBDABA=EDMLCIPDIIDIPDOEEMILKAMI" \
-H "Content-Type: application/x-www-form-urlencoded; charset=utf-8" \
-H "Accept-Language: en;q=1.0, ru-RU;q=0.9" \
-H "apiKey: LINK53116" \
-H "User-Agent: EntourageLink/2.8 (com.bytepace.entourageyearbook.LinkMobile; build:1.9; iOS 11.2.0) Alamofire/4.7.1" \
-H "Accept-Encoding: gzip;q=1.0, compress;q=0.5" \
-d "audience=EVERYONE&credential_key=064C06A9-E4F0-4095-9E54-7784517C1342&message=THIS%20IS%20TEST&message_type=MESSAGE&type=POST_MESSAGE&yearbook_id=6981" \
"http://brahma.edo.entourageyearbooks.com/apis/MobileRequestHandler.asp"
@nzatsepilov
nzatsepilov / error.html
Created April 13, 2018 05:38
Ошибка при логине
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"/>
<title>502 - Веб-сервером в качестве шлюза или прокси-сервера получен недопустимый ответ.</title>
@nzatsepilov
nzatsepilov / script.sh
Created March 20, 2018 11:08
Swiftlint script
START_DATE=$(date +"%s")
SWIFT_LINT=/usr/local/bin/swiftlint
# Run SwiftLint for given filename
run_swiftlint() {
local filename="${1}"
if [[ "${filename##*.}" == "swift" ]]; then
${SWIFT_LINT} lint --path "${filename}"
fi
@nzatsepilov
nzatsepilov / crash.txt
Created March 12, 2018 10:02
Register crash
2018-03-12 16:01:48.033740+0600 EntourageLink[12978:178545] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x60000086f500>) doesn't contain a view controller with identifier 'RegisterViewController''
*** First throw call stack:
(
0 CoreFoundation 0x0000000113c4712b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00000001132adf41 objc_exception_throw + 48
2 UIKit 0x00000001105490d7 -[UIStoryboard instantiateInitialViewController] + 0
3 EntourageLink 0x000000010f067986 _T013EntourageLink26SelectSchoolViewControllerC17startRegistration33_5AD1248A8EE9A844B7C0506DD8A35E50LLyAA0D0V4with_tF + 614
4 EntourageLink 0x000000010f0693bd _T013EntourageLink26SelectSchoolViewControllerC05tableE0ySo07UITableE0C_10Foundation9IndexPathV03didC5RowAttF + 701
5 EntourageLink 0x000000010f0694ac _T013EntourageLink26S
@nzatsepilov
nzatsepilov / script.sh
Created March 12, 2018 09:26
Yearbook broken old shell script
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
# This script loops through the frameworks embedded in the application and
# removes unused architectures.
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
do
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH"
//
// OrderTableViewCell.swift
// foamline
//
// Created by Albert Musagitov on 18/11/2017.
// Copyright © 2017 BytePace. All rights reserved.
//
import UIKit
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
<Add_Ticket xmlns="b2b.mobile">
<ticket>
<guid>guid</guid>
<number>number</number>
<client_guid>ca7192bc-e301-11e6-80c7-2c768a54e9c5</client_guid>
<contact_guid>b5d20c59-a9b6-11e7-80c3-005056af014f</contact_guid>
<class_guid>5947ce48-def1-11e6-80c7-2c768a54e9c5</class_guid>
@nzatsepilov
nzatsepilov / MapViewContainer.h
Created January 25, 2018 08:36
Example map view controller with map view container
//
// MapViewContainer.h
// trackingapp
//
// Created by Nikita Zatsepilov on 03/09/16.
// Copyright © 2016 Synergy. All rights reserved.
//
@interface MapViewContainer : UIView
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:Add_Order>
<order is_deleted="false" replicator="10" hide="false">
<guid>guid</guid>
<number>number</number>
<date>2017-12-12T17:26:53</date>
<client_guid>ca7192bc-e301-11e6-80c7-2c768a54e9c5</client_guid>
<contract_guid>75d4fb00-9214-11e7-80c3-005056af014f</contract_guid>