Skip to content

Instantly share code, notes, and snippets.

View kernelOfTruth's full-sized avatar

kernelOfTruth aka. kOT, Gentoo user kernelOfTruth

  • private
  • Vienna, Austria
View GitHub Profile
@kernelOfTruth
kernelOfTruth / result.md
Created July 4, 2018 23:36 — forked from fffonion/result.md
testing gcc optimization options
args run_time
-Dfoo 1.942
-ftree-sink SAME
-fauto-inc-dec SAME
-fcrossjumping 1.925
-fif-conversion SAME
-faggressive-loop-optimizations SAME
-fconserve-stack SAME
-ftree-vrp SAME
@kernelOfTruth
kernelOfTruth / firefox.md
Created June 29, 2018 00:55
Configuring Firefox for security and privacy (as of Oct. 2017)

Configuring/Hardening Firefox for Security and Privacy

Source for some of these

  1. about:config
  • dom.event.clipboardevents.enabled => false
  • clipboard.plainTextOnly => true
  • referer spoofSource => true
  • media.peerconnection
@kernelOfTruth
kernelOfTruth / compiz-reloaded.conf
Created April 3, 2018 18:46
/etc/portage/repos.conf/compiz-reloaded.conf [config of ethus3h' forked up-to-date compiz-reloaded overlay for gentoo]
[compiz-reloaded]
location = /usr/gentoo/overlays/compiz-reloaded/
sync-type = git
sync-uri = https://github.com/ethus3h/compiz-reloaded-overlay
auto-sync = true
@kernelOfTruth
kernelOfTruth / compiz-reloaded
Created April 3, 2018 18:44
/etc/portage/sets/compiz-reloaded
=dev-python/compizconfig-python-0.8*
=x11-apps/compiz-boxmenu-1.1.12*
=x11-apps/compiz-manager-0.7*
=x11-apps/fusion-icon-0.2.4*
=x11-libs/compiz-bcop-0.8*
=x11-libs/libcompizconfig-0.8*
=x11-misc/ccsm-0.8*
x11-misc/compiz-debug-utils
=x11-misc/simple-ccsm-0.8*
=x11-plugins/compicc-0.8*
@kernelOfTruth
kernelOfTruth / 812-enable-bbr-congestion-control.patch
Created February 3, 2018 23:43
updated 812-enable-bbr-congestion-control.patch to apply on 02/2018 upstream LEDE
--- /dev/null 2017-11-06 13:59:30.740527617 +0100
+++ ./target/linux/ar71xx/config-4.9 2017-11-06 13:58:40.255150736 +0100
@@ -484,3 +484,7 @@
CONFIG_SYS_SUPPORTS_ZBOOT_UART_PROM=y
CONFIG_TICK_CPU_ACCOUNTING=y
CONFIG_USB_SUPPORT=y
+CONFIG_TCP_CONG_BBR=y
+CONFIG_NET_SCH_FQ=y
+CONFIG_TCP_CONG_ADVANCED=y
+CONFIG_DEFAULT_BBR=y
@kernelOfTruth
kernelOfTruth / 009-ar71xx-kernel-options.patch
Created February 3, 2018 23:42
updated 009-ar71xx-kernel-options.patch to apply on 02/2018 upstream LEDE
--- /dev/null 2017-11-06 13:26:19.194928493 +0100
+++ ./target/linux/ar71xx/config-4.9 2017-11-06 13:31:48.696487836 +0100
@@ -18,7 +18,7 @@
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_USE_BUILTIN_BSWAP=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
-CONFIG_AT803X_PHY=y
+# CONFIG_AT803X_PHY is not set
CONFIG_ATH79=y
CONFIG_ATH79_DEV_AP9X_PCI=y
@kernelOfTruth
kernelOfTruth / 005-lzma-mips74kc-optimize.patch
Created February 3, 2018 23:42
updated 005-lzma-mips74kc-optimize.patch to apply on 02/2018 upstream LEDE
diff --git a/target/linux/ar71xx/image/lzma-loader/src/Makefile b/target/linux/ar71xx/image/lzma-loader/src/Makefile
index 5f10bdb..15932cc 100644
--- a/target/linux/ar71xx/image/lzma-loader/src/Makefile
+++ b/target/linux/ar71xx/image/lzma-loader/src/Makefile
@@ -30,12 +30,12 @@ OBJDUMP := $(CROSS_COMPILE)objdump
BIN_FLAGS := -O binary -R .reginfo -R .note -R .comment -R .mdebug \
-R .MIPS.abiflags -S
-CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
+CFLAGS = -D__KERNEL__ -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
@kernelOfTruth
kernelOfTruth / compiz-0.9.13-r4130.ebuild
Created August 15, 2017 19:20
compiz-0.9.13-r4130 ebuild , even the ebuilds at zugaina are dead - github to the rescue !
# Distributed under the terms of the GNU General Public License v2
EAPI=5
#GIT_ECLASS="git-2"
#EGIT_REPO_URI="https://github.com/hedmo/compiz"
#inherit cmake-utils eutils ${GIT_ECLASS} gnome2-utils toolchain-funcs python
# Pick your poison, EITHER the 3 lines above or the 2 lines below
@kernelOfTruth
kernelOfTruth / zfs_revert-0.1.py
Created August 9, 2017 19:20
Revert ZFS changes by destroying uberblocks
#!/usr/bin/python
# -*- coding: utf-8 -*-
#Script for reverting ZFS changes by destroying uberblocks
#Author: Martin Vool
#E-mail: [email protected]
#Version: 0.1
#Date: 16 November 2009
@kernelOfTruth
kernelOfTruth / 4.9-rt-kernel.patch
Last active February 20, 2018 17:57
Patch [use patch -R] to make proprietary linux nvidia driver 370.28 compatible with v4.9-rt1 kernel, change several of the module_license entries to make it "future-proof" for newer kernels [for users only ! non-distribution !]
diff -Nruad nvidia-drivers-370.28-r1/work/kernel/common/inc/nv-mm.h nvidia-drivers-370.28-r1_orig/work/kernel/common/inc/nv-mm.h
--- nvidia-drivers-370.28-r1/work/kernel/common/inc/nv-mm.h 2016-12-29 14:16:47.503650077 +0100
+++ nvidia-drivers-370.28-r1_orig/work/kernel/common/inc/nv-mm.h 2016-09-02 03:32:09.000000000 +0200
@@ -45,8 +45,8 @@
#define NV_GET_USER_PAGES get_user_pages
#define NV_GET_USER_PAGES_REMOTE get_user_pages_remote
#else
- #define NV_GET_USER_PAGES(start, nr_pages, gup_flags, pages, vmas) \
- get_user_pages(current, current->mm, start, nr_pages, gup_flags, pages, vmas)
+ #define NV_GET_USER_PAGES(start, nr_pages, write, force, pages, vmas) \