Skip to content

Instantly share code, notes, and snippets.

View btctcn's full-sized avatar
🚀

Andrey Butcitcyn btctcn

🚀
  • Russia
  • 23:06 (UTC +03:00)
View GitHub Profile

Для обхода блокировки достаточно отправить 1 любой udp пакет, тем самым нарушим начальное определение протокола WireGuard
Способ с использованием Windows PowerShell. Без скачивания Nmap и подобного софта.

Шаг 0: Отключитесь от всех туннелей.

Шаг 1: Редактируем Клиент конфиг

Добавим в него "ListenPort", это позволит иметь статичный порт на котором будет работать WireGuard
Нажмите ПКМ на нужный "туннель" и выберите "Редактировать выбранный туннель..." Step1

После DNS добавляем новую строку

//для некоторых команд нужен root
//все команды работают от имени приложения com.android.shell
//вызвать креш приложения
adb shell am crash com.os33.android
//посмотреть что в буфере крешей
adb logcat -b crash
//предоставить пермишен
adb shell pm grant com.os33.android [permission_name]
//посмотреть установленные приложения (с путями)
adb shell pm list packages -f

Xamarin.Android Performance Issues

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Errors is to first ensure you have the proper tooling available:

  • Diagnostic MSBuild Output Enabled(Instructions)
  • Android SDK Installed
  • Android API Level Documentation
1. sharpie pod init ios AWSS3
2. Do magic: https://forums.xamarin.com/discussion/126860/sharpie-pod-bind-and-simulator-architecture
3. useful commands
lipo -create ./device/AWSCore.framework/AWSCore ./sim/AWSCore.framework/AWSCore -output ./uni/AWSCore.framework/AWSCore
lipo -create ./device/AWSS3.framework/AWSS3 ./sim/AWSS3.framework/AWSS3 -output ./uni/AWSS3.framework/AWSS3
lipo -info AWSSDK/AWSCore.framework/AWSCore
lipo -info AWSSDK/AWSS3.framework/AWSS3
from here: https://forums.xamarin.com/discussion/126860/sharpie-pod-bind-and-simulator-architecture
I solved this problem by creating Release-iphoneos framework and Release-iphonesimulator framework and then merged them using lipo.
Most answers would end here, but I will give you the steps as well :)
Here is the solution:
1. sharpie pod init ios YourPodName
@btctcn
btctcn / find_rollbar_mentions.sh
Last active January 16, 2020 09:12
Find substring in project files
grep -r --include '*.csproj' Rollbar ~/my.folder
cd ~/.cocoapods/repos
git clone --depth 1 https://github.com/CocoaPods/Specs.git master
cd ~/projects/Rollbartest
sharpie pod init ios Rollbar
sharpie pod bind
успешный билд с https://github.com/kikettas/Xamapod
sharpie https://docs.microsoft.com/en-us/xamarin/cross-platform/macios/binding/objective-sharpie/tools?context=xamarin/ios
import threading
import socket
class ClientThread(threading.Thread): # при тестах это будет мок-обьект
def __init__(self, conn, addr):
super().__init__()
self._connection = conn # экземпляр класса socket
self._address = addr # ip-адрес и порт
import mock
import socket
import unittest
import sys
sys.path.append('/users/ab/python2019') # указать нужный путь
from homework_server_lecture10.task_2.class_User import User
from tcp_server2_threading import TcpServer, ClientThread
from threading import Timer
import time