Skip to content

Instantly share code, notes, and snippets.

View unixfox's full-sized avatar

Émilien (perso) unixfox

View GitHub Profile
@unixfox
unixfox / update-aur-pkg.md
Created June 8, 2022 19:18
Update AUR package
  1. Update the PKGBUILD
  2. makepkg --printsrcinfo > .SRCINFO
  3. git add PKGBUILD .SRCINFO
  4. git commit
  5. git push
@unixfox
unixfox / route48.conf
Created May 18, 2022 12:25
route48 example wireproxy
[Interface]
PrivateKey = xxx
Address = 2axxx/128
[Peer]
PublicKey = xxxx
AllowedIPs = ::/1, 8000::/1
Endpoint = 185.107.82.73:51868
PersistentKeepalive = 25
@unixfox
unixfox / nginx.conf
Created January 16, 2022 12:53
Redirect to a random backend on Invidious - need openresty
location /latest_version {
set_by_lua_block $random {
return math.random(1, 2)
}
return 302 https://eu$random.proxy.yewtu.be$request_uri;
}
@unixfox
unixfox / Dockerfile
Last active June 11, 2021 21:15
aarch64/arm64 dockerfile for Invidious
FROM alpine:edge AS lsquic-builder
RUN apk add --update --no-cache \
tar \
build-base \
cmake \
git \
go \
linux-headers \
ninja \
perl \
@unixfox
unixfox / howto.md
Last active April 24, 2024 15:01
Install Alpine Linux on Oracle Cloud ARM VPS with Ubuntu pre-installed
@unixfox
unixfox / README.md
Last active February 11, 2021 17:42
log sent discord.js requests
  1. Install any MITM proxy that would like to use and make it listening on port 8080. https://mitmproxy.org/ is a good candicate.
  2. 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.
  3. Install proxy-agent and http-proxy: npm install http-proxy proxy-agent.
  4. Run the proxy: node proxy.js.
  5. Modify your discord.js code according to the demo code in bot.js.
  6. That's it!
@unixfox
unixfox / README.md
Last active August 29, 2023 03:52
Install alpine linux on Scaleway stardust
  1. Reboot into the rescue image
  2. 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/
@unixfox
unixfox / config
Created August 22, 2020 13:50
Personal openwrt 19.07 config for my TPLINK WR841N
#
# 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
@unixfox
unixfox / alpine.sh
Last active November 8, 2022 23:52 — forked from trimsj/alpine.sh
Converts LXC VPS to Alpine Linux (Only works with Debian)
#!/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)