Skip to content

Instantly share code, notes, and snippets.

View csrutil's full-sized avatar

TSAO csrutil

View GitHub Profile
{
"folder_exclude_patterns":
[
".meteor",
".svn",
".git",
".hg",
"CVS",
".node_modules"
],
## Place your custom repositories here, they must match the architecture and version.
# src/gz %n https://downloads.openwrt.org/snapshots
# src custom file:///usr/src/openwrt/bin/rockchip/packages
## Remote package repositories
# src/gz openwrt_core https://downloads.openwrt.org/releases/21.02.1/targets/rockchip/armv8/packages
src/gz openwrt_base https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_generic/base
src/gz custom file:///home/mel/r2c-20211205-5.10/packages/aarch64_generic/base
# src/gz openwrt_kmods https://downloads.openwrt.org/releases/21.02.1/targets/rockchip/armv8/kmods/5.10.82-1-b49ee63beabb8730fa31631b76281465
src/gz openwrt_luci https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_generic/luci
## Place your custom repositories here, they must match the architecture and version.
# src/gz %n https://downloads.openwrt.org/snapshots
# src custom file:///usr/src/openwrt/bin/rockchip/packages
## Remote package repositories
# src/gz openwrt_core https://downloads.openwrt.org/releases/21.02.1/targets/rockchip/armv8/packages
src/gz openwrt_base https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_generic/base
src/gz custom file:///home/mel/r2c-20211205-5.10/packages/aarch64_generic/base
# src/gz openwrt_kmods https://downloads.openwrt.org/releases/21.02.1/targets/rockchip/armv8/kmods/5.10.82-1-b49ee63beabb8730fa31631b76281465
src/gz openwrt_luci https://downloads.openwrt.org/releases/21.02.1/packages/aarch64_generic/luci
@csrutil
csrutil / tracker.rb
Last active November 19, 2021 08:19
require 'open-uri'
base_url="https://cdn.jsdelivr.net/gh/ngosang/trackerslist@master/"
urls = %w[
trackers_best.txt
trackers_all.txt
trackers_all_udp.txt
trackers_all_http.txt
trackers_all_https.txt
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set -g prefix C-a
bind-key C-a send-prefix
build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 python2.7 unzip zlib1g-dev libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync python3 git-core curl
@csrutil
csrutil / r2c.config
Last active September 8, 2021 00:34
CONFIG_TARGET_rockchip=y
CONFIG_TARGET_rockchip_armv8=y
CONFIG_TARGET_rockchip_armv8_DEVICE_friendlyarm_nanopi-r2c=y
CONFIG_TARGET_KERNEL_PARTSIZE=120
CONFIG_TARGET_ROOTFS_PARTSIZE=1200
CONFIG_TARGET_ROOTFS_TARGZ=y
CONFIG_TARGET_ROOTFS_EXT4FS=y
CONFIG_TARGET_ROOTFS_SQUASHFS=y
apt update && apt install pve-headers-$(uname -r) build-essential
# download r8125 linux driver form
# https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
tar xvf r8125-9.004.01.tar
cd r8125-9.004.01
make
wpasupplicant