MOVE TO HERE
首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:
首先确定已经安装完成 docker,如果没有安装可以使用以下脚本快速安装并配置:
Moved to git repository: https://github.com/aliesbelik/load-testing-toolkit
Tools to benchmark & load-test your code or services
CC| # Author: ALiangLiang <me@aliangliang.top> | |
| # Replace VPN_NAME, ADDRESS and ACCOUNT first!! | |
| # Ref: https://docs.microsoft.com/en-us/powershell/module/vpnclient/add-vpnconnection?view=win10-ps | |
| $VPN_NAME = 'VPN' | |
| $ADDRESS = 'vpn.example.com' | |
| $ACCOUNT = 'user1' | |
| function Connect { |
| # step 1: 安装必要的一些系统工具 | |
| sudo apt-get update | |
| sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
| # step 2: 安装GPG证书 | |
| curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - | |
| # Step 3: 写入软件源信息 | |
| sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" | |
| # Step 4: 更新并安装 Docker-CE | |
| sudo apt-get -y update | |
| sudo apt-get -y install docker-ce |
In this gist I show how to disassemble and modify a Linux executable binary to change the body of a function. This will allow you to control how a binary behaves, even when you don't have access to the source code and you can't recompile it.
In my case, I was asked to try and bypass the protection mechanism implemented. The protection mechanism implemented was meant to only allow a binary to be run in presence of a valid license.
So basically my activity involved:
| #Fully based on https://boxofcables.dev/accelerated-kvm-guests-on-wsl-2/ | |
| if [ -z "$1" ] | |
| then | |
| echo "Must supply your Windows 10 username" | |
| exit | |
| fi | |
| WIN_USERNAME=$1 | |
| #package updates and installations |
I recently made a fresh install of windows and all the tools I needed to develop software including git-for-windows. Unfortunatnly git-for-windows doesn't come with a packagemanager buildt in and going full cygwin seems a little overkill. After some research I ran in to this post on stackoverflow describing a way to install pacman in to git-for-windows. Unfortuntly only "most of it" worked in my case. This document attempts to describe the entire process I went through to install pacman.
The packages in the MSYS2 repositoy seem to be packaged using zstd now and not xz as described. Obviously it would be great to use a package manager to install zstd and un-tar the files... Given that this guide is geared towards windows installs you can install 7zip and add the Modern7z plugins to unpack zstd files.
I previously write a gist about how to set up v2ray + openvpn to unblock gfw and netflix
Refers to that gist for more detail.
In short, this a solution to proxy your network to bypass Firewall with stable connections, and also unblock Proxy detection for Netflix/Spotify/etc....
In my use case from China network:
| from uuid import uuid4 | |
| from nicegui import ui | |
| messages = [] | |
| @ui.refreshable | |
| def chat_messages(own_id): | |
| for user_id, avatar, text in messages: | |
| ui.chat_message(avatar=avatar, text=text, sent=user_id==own_id) |