Skip to content

Instantly share code, notes, and snippets.

@xabbu
xabbu / 72-dkms-signing.hook
Last active July 4, 2019 12:16
signing DKMS Modules
[Trigger]
Operation = Install
Operation = Upgrade
Type = File
Target = usr/src/*/dkms.conf
Target = usr/lib/modules/*-up/build/include/
Target = usr/lib/modules/*-up/modules.alias
[Action]
Description = Signing DKMS modules
uname -a
Linux ES57 5.2.1-1-ARCH #1 SMP Sun Jul 14 19:29:00 UTC 2019 aarch64 GNU/Linux
---
Machine: Type: ARM Device System: Raspberry Pi 3 Model B details: N/A serial: 00000000f8fc87f8
CPU: Topology: Quad Core model: N/A variant: cortex-a53 bits: 64 type: MCP arch: ARMv8 rev: 4
openssl speed -evp aes-128-cbc
Doing aes-128-cbc for 3s on 16 size blocks: 3395014 aes-128-cbc's in 2.99s
#!/bin/bash
time=0
for file
do
videotime=$(mediainfo --Inform="General;%Duration%" "$file")
time=$(("$time" + "$videotime"/1000))
done
@xabbu
xabbu / novpn.sh
Last active August 18, 2022 16:36 — forked from kriswebdev/novpn.sh
Bypass VPN for specific apps [Linux / OpenVPN]
#!/bin/bash
# === INFO ===
# NoVPN
# Description: Bypass VPN tunnel for applications run through this tool.
VERSION="2.0.0"
# Author: KrisWebDev
# Requirements: Linux with kernel > 2.6.4 (released in 2008).
# traceroute
# libcgroup (AUR)
diff --git a/PKGBUILD b/PKGBUILD
index 45c972e..1cda36d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,8 +7,8 @@
# Contributor: Helmut Stult <helmut[at]manjaro[dot]org>
pkgbase=linux54
-pkgname=('linux54' 'linux54-headers')
-_kernelname=-MANJARO
@xabbu
xabbu / rr.patch
Last active March 29, 2020 10:07
diff -ur rr64xl-linux-src-v1.4.0-a/inc/linux_32mpa/Makefile.def rr64xl-linux-src-v1.4.0-b/inc/linux_32mpa/Makefile.def
--- rr64xl-linux-src-v1.4.0-a/inc/linux_32mpa/Makefile.def 2016-09-19 20:40:55.000000000 +0200
+++ rr64xl-linux-src-v1.4.0-b/inc/linux_32mpa/Makefile.def 2020-03-29 12:06:05.433748827 +0200
@@ -107,7 +107,7 @@
TARGET := $(TARGETNAME).ko
$(TARGETNAME).ko: $(CURDIR)/.build/Makefile
- @$(MAKE) -C $(KERNELDIR) SUBDIRS=$(CURDIR)/.build modules
+ @$(MAKE) -C $(KERNELDIR) KBUILD_EXTMOD=$(CURDIR)/.build modules
@cp -f $(CURDIR)/.build/$(TARGETNAME).ko $(CURDIR)/
# create folder
mkdir rr640l && cd rr640l
# Download driver
wget http://highpoint-tech.com/BIOS_Driver/RR64xL/Linux/RR64xl_Linux_Src_v1.4.6_19_12_04.tar.gz
# extract bin
tar xf RR64xl_Linux_Src_v1.4.6_19_12_04.tar.gz
# Don't run the bin, just get the archive
#!/bin/bash
APPLICATION_NAME=30sek
PPP=$( pwd )
echo "$1"
echo "$2"
echo "$PPP"