Skip to content

Instantly share code, notes, and snippets.

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,
},
},
@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(" ")
@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
function FindProxyForURL(url, host) {
return "SOCKS 192.168.8.178:8889";
}
@AKosterin
AKosterin / nv.ksy
Last active February 27, 2025 12:31
meta:
id: nv
endian: le
file-extension:
- nv
- nvu
seq:
- id: revision
type: u2