Skip to content

Instantly share code, notes, and snippets.

@graysky2
graysky2 / rrdbackup
Last active September 18, 2021 10:00
OpenWrt /etc/init.d/ script to backup and restore the rrd (collectd) database, to preserve data across reboots
#!/bin/sh /etc/rc.common
# OpenWrt /etc/init.d/ script to backup and restore the rrd (collectd) database, to preserve data across reboots
#
#
# howto:
# - upload this file as /etc/init.d/rrdbackup
# - (optional) adjust BACKUP_DIR below to point to a different target directory for the backup (e.g., a USB drive)
# - # chmod +x /etc/init.d/rrdbackup
# - # /etc/init.d/rrdbackup enable
@graysky2
graysky2 / PKGBUILD
Created June 6, 2021 16:59
5.12.9 with clang and thinlto
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgbase=linux
pkgver=5.12.9.arch1
pkgrel=1
pkgdesc='Linux'
_srctag=v${pkgver%.*}-${pkgver##*.}
url="https://git.archlinux.org/linux.git/log/?h=$_srctag"
arch=(x86_64)
license=(GPL2)
@graysky2
graysky2 / config.txt
Created November 26, 2020 15:03
raspbian config 64-bit under 5.4.72
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.4.72 Kernel Configuration
#
#
# Compiler: aarch64-linux-gnu-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90300
@graysky2
graysky2 / config.txt
Created November 26, 2020 15:00
raspbian config 64-bit under 5.4.51
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.4.51 Kernel Configuration
#
#
# Compiler: aarch64-linux-gnu-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=50400
From 8b2b5c8a0cda4551827580c1edf6dd0b8ba0d29f Mon Sep 17 00:00:00 2001
From: graysky2
Date: Sat, 14 Nov 2020 07:10:29 -0500
Subject: [PATCH] enable jumbo frames
---
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 2 +-
include/linux/if_vlan.h | 4 ++--
include/uapi/linux/if_ether.h | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
@graysky2
graysky2 / config
Created March 15, 2020 21:38
crosstool-ng config for x86_64 on Arch ARM
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_cxx11=y
CT_CONFIGURE_has_lzip=y
CT_CONFIGURE_has_wget=y
CT_CONFIGURE_has_curl=y
CT_CONFIGURE_has_make_3_81_or_newer=y
@graysky2
graysky2 / config
Created November 9, 2019 08:26
crosstool-ng config
#
# Automatically generated file; DO NOT EDIT.
# crosstool-NG Configuration
#
CT_CONFIGURE_has_static_link=y
CT_CONFIGURE_has_cxx11=y
CT_CONFIGURE_has_wget=y
CT_CONFIGURE_has_curl=y
CT_CONFIGURE_has_make_3_81_or_newer=y
CT_CONFIGURE_has_make_4_0_or_newer=y
@graysky2
graysky2 / fix.patch
Created October 14, 2019 10:21
fix waylandpp-git
--- a 2019-10-14 06:17:57.571316152 -0400
+++ PKGBUILD 2019-10-14 06:19:07.572774596 -0400
@@ -1,15 +1,15 @@
# Maintainer: Nils Christopher Brause <nilschrbrause@googlemail.com>
pkgname=waylandpp-git
-pkgver=210
-pkgrel=2
+pkgver=294
+pkgrel=1
pkgdesc='Wayland C++ bindings'
@graysky2
graysky2 / update.patch
Last active October 12, 2019 14:09
patch for nvidia-340xx-lts
--- PKGBUILD 2019-06-07 06:25:13.000000000 -0400
+++ new 2019-10-12 09:58:41.055145754 -0400
@@ -1,10 +1,10 @@
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Contributor: Eric Bélanger <eric@archlinux.org>
+# Contributor: graysky <graysky AT archlinux DOT us>
pkgname=nvidia-340xx-lts
pkgver=340.107
-_extramodules=extramodules-4.19-lts
--- a/tools/depends/target/ffmpeg/CMakeLists.txt 2019-07-18 11:05:21.000000000 -0400
+++ b/tools/depends/target/ffmpeg/CMakeLists.txt 2019-07-25 16:22:19.506991490 -0400
@@ -19,7 +19,7 @@ if(CROSSCOMPILING)
endif()
#if(CORE_PLATFORM_NAME STREQUAL rbpi)
- string(CONCAT CMAKE_C_FLAGS ${CMAKE_C_FLAGS} " -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux")
+ string(CONCAT CMAKE_C_FLAGS ${CMAKE_C_FLAGS} " -I/build/kodi-rbp4/src/opt/vc/include -I/build/kodi-rbp4/src/opt/vc/include/interface/vcos/pthreads -I/build/kodi-rbp4/src/opt/vc/include/interface/vmcs_host/linux")
list(APPEND ffmpeg_conf --enable-rpi --disable-ffmpeg --disable-ffprobe)
#endif()