Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
APPLICATION_NAME=30sek
PPP=$( pwd )
echo "$1"
echo "$2"
echo "$PPP"
# 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
@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)/
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 / 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)
#!/bin/bash
time=0
for file
do
videotime=$(mediainfo --Inform="General;%Duration%" "$file")
time=$(("$time" + "$videotime"/1000))
done
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
@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
--- xsane/PKGBUILD 2017-11-15 15:11:34.000000000 +0100
+++ xsane-new/PKGBUILD 2018-05-27 12:20:22.679401128 +0200
@@ -11,15 +11,19 @@
license=('GPL2')
makedepends=('gtk2' 'lcms' 'sane' 'zlib' 'libjpeg' 'gimp')
source=(http://www.xsane.org/download/$pkgname-$pkgver.tar.gz
- xsane-0.995-xdg-open.patch)
+ xsane-0.995-xdg-open.patch
+ trivial.patch)
md5sums=('9927f21e1ab6ba96315e7f0e30746deb'
@xabbu
xabbu / trivial.patch
Created May 26, 2018 23:28
trivial.patch for Xsane-email-project
diff -ur xsane-0.999/src/xsane-email-project.c xsane-0.999-new/src/xsane-email-project.c
--- xsane-0.999/src/xsane-email-project.c 2010-11-16 21:55:04.000000000 +0100
+++ xsane-0.999-new/src/xsane-email-project.c 2018-05-27 01:15:40.796141322 +0200
@@ -1777,7 +1777,7 @@
for (i=0; i<strlen(password); i++)
{
- password[i] ^= 0x53;
+ password[i] ^= 0xa3;
}