- Update the PKGBUILD
makepkg --printsrcinfo > .SRCINFO
git add PKGBUILD .SRCINFO
- git commit
- git push
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Interface] | |
PrivateKey = xxx | |
Address = 2axxx/128 | |
[Peer] | |
PublicKey = xxxx | |
AllowedIPs = ::/1, 8000::/1 | |
Endpoint = 185.107.82.73:51868 | |
PersistentKeepalive = 25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /latest_version { | |
set_by_lua_block $random { | |
return math.random(1, 2) | |
} | |
return 302 https://eu$random.proxy.yewtu.be$request_uri; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:edge AS lsquic-builder | |
RUN apk add --update --no-cache \ | |
tar \ | |
build-base \ | |
cmake \ | |
git \ | |
go \ | |
linux-headers \ | |
ninja \ | |
perl \ |
Better tutorial (a little bit more complicated): https://gist.github.com/karolba/a3f1c5f8d50c67f5a19e6c8f38e53e12
- Download the "virtual" type aarch64 ISO file from https://www.alpinelinux.org/downloads/ with wget
- Execute
sudo dd if=alpine.iso of=/dev/sda
- On the Oracle Cloud panel, setup a console connection and connect to the serial console.
- Execute
sudo reboot
- When Alpine is launched and you are logged in as root, execute these commands in the serial console:
- Install any MITM proxy that would like to use and make it listening on port 8080. https://mitmproxy.org/ is a good candicate.
- Place every other file except
bot.js
of this GitHub gist into a same directory.bot.js
is not required, it's just a demo for showing you how to include the proxy into your code. - Install proxy-agent and http-proxy:
npm install http-proxy proxy-agent
. - Run the proxy:
node proxy.js
. - Modify your discord.js code according to the demo code in
bot.js
. - That's it!
- Reboot into the rescue image
- Then execute these commands:
cd /dev/shm
mkdir alpine
cd alpine
wget https://dl-cdn.alpinelinux.org/alpine/v3.16/releases/x86_64/alpine-minirootfs-3.16.0-x86_64.tar.gz
tar xzvf alpine*
mount -t proc /proc proc/
mount -t sysfs /sys sys/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Automatically generated file; DO NOT EDIT. | |
# OpenWrt Configuration | |
# | |
CONFIG_MODULES=y | |
CONFIG_HAVE_DOT_CONFIG=y | |
# CONFIG_TARGET_sunxi is not set | |
# CONFIG_TARGET_apm821xx is not set | |
# CONFIG_TARGET_ath25 is not set | |
# CONFIG_TARGET_ar71xx is not set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Converts LXC VPS to Alpine Linux | |
# WARNING: This script will wipe any data in your VPS! | |
# GPLv2; Partly based on https://gitlab.com/drizzt/vps2arch | |
# Original work by trimsj | |
server=http://images.linuxcontainers.org | |
path=$(wget -O- ${server}/meta/1.0/index-system | \ | |
grep -v edge | awk '-F;' '($1=="alpine" && $3=="amd64") {print $NF}' | tail -1) |