Skip to content

Instantly share code, notes, and snippets.

View userow's full-sized avatar

Pavlo Vasylenko userow

View GitHub Profile
@userow
userow / filter_app_id.py
Created October 2, 2016 14:09
Filters out only one appID from parse exported json
#!/usr/bin/python
#usage:
# python filter_app_id.py source.json destination.json com.application.identifier
import sys, json
inputfile = sys.argv[1]
outputfile = sys.argv[2]
appID = sys.argv[3]
//
// Counter.h
//
#import <Foundation/Foundation.h>
@interface Counter : NSObject <NSCoding>
/**
текущее значение счётчика
//
// CounterSpecs.m
//
#import <Specta.h>
#define EXP_SHORTHAND
#import <Expecta.h>
#import "Counter.h"
#import "ViewController.h"
static NSString * const adCountKey = @"adCountKey";
static NSString * const highScoreKey = @"highScoreKey";
@import WebKit;
@interface ViewController () <WKScriptMessageHandler>
@property (strong, nonatomic) WKWebView *webView;
@userow
userow / 0.README.md
Created May 2, 2018 08:03 — forked from agentcooper/0.README.md
Telegram chat backup/export

How to use

  1. Login to https://web.telegram.org
  2. Copy-paste contents of telegram-scripts.js into JS console
  3. Run showContacts() to get the list of contacts with ids
  4. Run saveChat(userId) where userId is the id from step 3

Process can take a while, check console for progress. Occasionall FLOOD_WAIT errors are expected. Once done, browser will download the JSON file.

Motivation

#disabling APSD
https://discussions.apple.com/thread/4459153
Niko Käst Nov 16, 2015 10:20 AM in response to Brian Cross Level 1 Level 1 (0 points)
Nov 16, 2015 10:20 AM in response to Brian Cross
To Disable APSD (Apple Push Notification Service Daemon)
Open Terminal, enter:
REQUEST performIdScanAction
2018-09-07 21:13:35.237 Health Gorilla[768:262760] POST 'https://qa.healthgorilla.com/mobileservice?app_version=GrupoAngeles_2.33': {
Accept = "application/json-rpc";
"Accept-Language" = "ru-RU;q=1, uk-UA;q=0.9, es-RU;q=0.8, en-RU;q=0.7";
"Content-Type" = "application/json-rpc;charset=UTF-8";
Cookie = "AWSELB=1F17A167104976A5A38E7C8333580351CA79460A7AC30BF2BE6791C93A50AFA4B7CADCD2FAC196B1EB4A653405D80508366F99C73EE37FE1783BACB87DD70B99C77BE3EA22;hg.lang=es;AWSELB=1F17A167104976A5A38E7C8333580351CA79460A7A3130FF3E66E8782FBA0A0E04E9023775AC0127516BA6FD5C5FE574405CB82AD11FF8D6EE731677FC70702EF712EBD884;hg.lang=es;JSESSIONID=3F4B27280E62E3A5AFC6F8B9BE200EA3;";
"User-Agent" = "Health Gorilla/2.33 (iPhone; iOS 9.3.2; Scale/2.00)";
chmod -a "group:everyone deny add_file,delete,add_subdirectory,delete_child,writeattr,writeextattr,chown"
- (void)loginComplete {
dispatch_group_t group = dispatch_group_create();
dispatch_group_enter(group);
dispatch_group_enter(group);
[self.languageRouter receiveWithSuccess:^(NSDictionary *object) {
[self createOrUpdateLanguagesWithJSON:object completion:^{
dispatch_group_leave(group);
sudo spctl --master-disable