Skip to content

Instantly share code, notes, and snippets.

meta:
id: swicwe
file-extension: bin
types:
swicwe_foto_toc:
seq:
- id: toc
size: 0x20
#type: swicwe_foto_toc_element
function FindProxyForURL(url, host) {
return "SOCKS 192.168.8.178:8889";
}
@AKosterin
AKosterin / index.json
Last active January 17, 2022 19:28
Params for Notion Learn Music Ableton Widgets
{"_getstartedcombining1":{"lang":{"@clear":"Стереть","@close":"Закрыть","@exporting":"Экспортирую","@exporttolive":"Экспортировать в Live","@fillinsolution":"Заполнить решение","@highpitch":"Высокий звук","@incompatiblebrowser":"Ваш браузер не может показать интерактивные музыкальные примеры на этой странице.<br/>Пожалуйста, воспользуйтесь браузером, поддерживающим Web Audio, таким как Chrome, Safari, Firefox или Edge.","@keyboard":"Клавиши","@lowpitch":"Низкий звук","@off":"Выкл.","@on":"Вкл.","@reset":"Восстановить","@tempo":"Темп"},"preset":{"name":"Session 1","tempo":102,"tracks":[{"@name":"Барабаны","clips":[{"length":"1m","name":"Drums 1","path":"simplesession/Drums1"},{"length":"1m","name":"Drums 2","path":"simplesession/Drums2"},{"length":"2m","name":"Drums 3","path":"simplesession/Drums3"},{"length":"1m","name":"Drums 4","path":"simplesession/Drums4"}],"theme":"theme-a"},{"@name":"Бас","clips":[{"length":"2m","name":"Bass 1","path":"simplesession/Bass1"},{"length":"2m","name":"Bass 2","path":"simples
@AKosterin
AKosterin / wifihack.src
Last active January 8, 2023 08:45
Grey Hack Scripts
host_comp = get_shell.host_computer
crypto = include_lib("/lib/crypto.so")
if not crypto then exit("Error: Missing crypto library")
get_net_devices = function (computer)
devices = []
for device in computer.network_devices.split("\n")
if device.len > 0 then
params = device.split(" ")
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."git@bitbucket.org:".insteadOf "https://bitbucket.org/"
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
@AKosterin
AKosterin / gist:280dc28ccb451156a9725f7c3e6bf669
Created February 20, 2017 10:04 — forked from iwinux/gist:5578188
Go's html/template with better subdirectory support.
package templates
import(
"html/template"
"io"
"os"
"strings"
"path/filepath"
)
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
AKosterin / DexGuardDecoder.java
Last active July 3, 2019 13:23
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();