Skip to content

Instantly share code, notes, and snippets.

View notsure2's full-sized avatar

Secretary of the Interior, Not Sure notsure2

View GitHub Profile
@notsure2
notsure2 / build-qbittorrent-ubuntu-16.04-static.sh
Last active July 3, 2021 12:23
How to compile latest qBittorrent-nox with static qt, boost and openssl for Ubuntu 16.04 xenial (using Ubuntu 16.04 xenial)
#!/bin/bash
set -e
apt update -y
apt install -y build-essential git perl python2.7 python2.7-dev zlib1g-dev autoconf libicu-dev pkg-config perl ccache
OPENSSL_TAG=OpenSSL_1_1_1-stable
QBITTORRENT_TAG=v4_2_x
LIBTORRENT_TAG=RC_1_2
QT5_TAG=5.14
BOOST_VER=1.72.0
@notsure2
notsure2 / build-qbittorrent-static.sh
Last active November 13, 2022 21:06
How to compile latest qBittorrent-nox with static qt and boost for Debian Stretch 9.0 (using Debian Stretch 9.0)
#!/bin/sh
set -e
apt install -y build-essential git perl python2.7 libboost-all-dev libboost-tools-dev zlib1g-dev autoconf libssl-dev
QBITTORRENT_TAG=v4_2_x
LIBTORRENT_TAG=RC_1_2
QT5_TAG=5.12
rm -rf work
mkdir work
@notsure2
notsure2 / build-conntrack-tools-tomato-arm-static.sh
Last active June 15, 2019 00:06
Compile conntrack-tools for tomato statically using modern buildroot
#!/bin/sh
# Requires also checking out freshtomato-arm source code
# and adding in kernel/config_base: CONFIG_NF_CT_NETLINK=m
# and then compiling the kernel, then extracting nf_conntrack_netlink.ko
# and insmod before using conntrack utility.
BUILDROOT=/home/android/freshtomato/buildroot-2019.02.3
BUILDHOST=arm-buildroot-linux-uclibcgnueabi
BUILDROOT_BIN=$BUILDROOT/output/host/bin
@notsure2
notsure2 / tunsafe@.service
Last active May 31, 2019 00:26
tunsafe systemd script
[Unit]
Description=TunSafe VPN Service - %i
Wants=network-online.target
After=network-online.target
After=multi-user.target
[Service]
Type=simple
User=root
WorkingDirectory=/etc/tunsafe
@notsure2
notsure2 / build_tomato_arm.sh
Last active July 13, 2019 00:37
tunsafe 1.5rc2 compile for freshtomato arm
#!/bin/sh
set -e
#cpp -D__ARM_ARCH__=7 crypto/chacha20/chacha20-arm.s > crypto/chacha20/chacha20-arm.preprocessed.s
#cpp -D__ARM_ARCH__=7 crypto/poly1305/poly1305-arm.s > crypto/poly1305/poly1305-arm.preprocessed.s
~/freshtomato/buildroot-2019.02.2/output/host/bin/arm-linux-g++ \
-march=armv7-a -mtune=cortex-a9 -mfloat-abi=soft -mthumb \
-I . -g -O2 -DNDEBUG -DWITH_NETWORK_BSD=1 \
-fno-omit-frame-pointer -pthread -lrt -o tunsafe \