Skip to content

Instantly share code, notes, and snippets.

Anton Kosterin AKosterin

Block or report user

Report or block AKosterin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View go: *http.Client with Proxy.go
func initProxyHttpClient(proxyUrl string, insecure bool) *http.Client {
pu, _ := url.Parse(proxyUrl)
return &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyURL(pu),
TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper),
TLSClientConfig: &tls.Config{
InsecureSkipVerify: insecure,
$ git config --global url."".insteadOf ""
$ git config --global url."".insteadOf ""
AKosterin / gist:280dc28ccb451156a9725f7c3e6bf669
Created Feb 20, 2017 — forked from iwinux/gist:5578188
Go's html/template with better subdirectory support.
View gist:280dc28ccb451156a9725f7c3e6bf669
package templates
View gist:6254f0652f3c348be3bd20df871b5077
func separateString(str, seporator string, count int) string {
rs := []rune(str)
log.Println("rs = ", rs)
srs := []rune(seporator)
log.Println("srs = ", srs)
for i := 0; i * (count + len(srs)) < len(rs)-count; i++ {
rs = append(rs[:i * (count + len(srs)) + count] ,append(srs, rs[i * (count + len(srs)) + count :]...)...)
AKosterin /
Last active Jul 3, 2019
New Dexguard String decoder for JEB 1.5. Tested on GFE 3.1.3. This release auto parse decoder function.
import jeb.api.IScript;
import jeb.api.JebInstance;
import jeb.api.ast.*;
import jeb.api.ast.Class;
import jeb.api.dex.*;
import jeb.api.ui.JavaView;
import jeb.api.ui.View;
import java.util.Arrays;
import java.util.HashMap;
import rx.Observable;
import rx.subjects.PublishSubject;
public class Property<T> {
private T value;
private PublishSubject<T> property;
public Property() {
property = PublishSubject.create();
AKosterin / themes-debug.xml
Created Jan 24, 2016 — forked from dlew/themes-debug.xml
With the new theming in AppCompat, a lot of assets are tinted automatically for you via theme attributes. That has often led me to wonder "where the hell did this color come from?" You can replace your normal theme with this debug theme to help figure out the source of that color.
View themes-debug.xml
<!-- You can change the parent around to whatever you normally use -->
<style name="DebugColors" parent="Theme.AppCompat">
<!-- System colors -->
<item name="android:windowBackground">@color/__debugWindowBackground</item>
<item name="android:colorPressedHighlight">#FF4400</item>
<item name="android:colorLongPressedHighlight">#FF0044</item>
<item name="android:colorFocusedHighlight">#44FF00</item>
<item name="android:colorActivatedHighlight">#00FF44</item>
AKosterin /
Created Jan 18, 2016 — forked from jgilfelt/
An OkHttp interceptor that logs requests as curl shell commands
* Copyright (C) 2016 Jeff Gilfelt.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
AKosterin /
Created Aug 16, 2015
JEB Plugin for decrypt DexGuard encrypted Strings.
import jeb.api.IScript;
import jeb.api.JebInstance;
import jeb.api.ast.*;
import jeb.api.ast.Class;
import jeb.api.dex.Dex;
import jeb.api.dex.DexCodeItem;
import jeb.api.dex.DexFieldData;
import jeb.api.dex.DexMethod;
import jeb.api.ui.JavaView;
import jeb.api.ui.View;
View material_colors.xml
<?xml version="1.0" encoding="utf-8"?>
<color name="material_red50">#ffffebee</color>
<color name="material_red100">#ffffcdd2</color>
<color name="material_red200">#ffef9a9a</color>
<color name="material_red300">#ffe57373</color>
<color name="material_red400">#ffef5350</color>
<color name="material_red500">#fff44336</color>
<color name="material_red600">#ffe53935</color>
<color name="material_red700">#ffd32f2f</color>
You can’t perform that action at this time.