Skip to content

Instantly share code, notes, and snippets.

View artynet's full-sized avatar

Arturo Rinaldi artynet

View GitHub Profile
@artynet
artynet / virtualbox-modules-5.1.28-udp.patch
Created November 14, 2017 11:16 — forked from ObserverHerb/virtualbox-modules-5.1.28-udp.patch
virtualbox-modules-5.1.28 SKB_GSO_UDP patch for Gentoo
diff --git a/work/vboxnetflt/linux/VBoxNetFlt-linux.c b/work/vboxnetflt/linux/VBoxNetFlt-linux.c
index f824654..b61d82c 100644
--- work/vboxnetflt/linux/VBoxNetFlt-linux.c
+++ work/vboxnetflt/linux/VBoxNetFlt-linux.c
@@ -126,6 +126,10 @@ typedef struct VBOXNETFLTNOTIFIER *PVBOXNETFLTNOTIFIER;
# endif
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
+#define SKB_GSO_UDP 0
@artynet
artynet / eq.preset
Created December 9, 2017 21:51 — forked from kra3/eq.preset
Audacious presets: ~/.config/audacious/eq.preset
[Presets]
Preset0=Classical
Preset1=Club
Preset2=Dance
Preset3=Flat
Preset4=Live
Preset5=Laptop Speakers/Headphone
Preset6=Rock
Preset7=Pop
From 070b07f0d41c8a1481a7e40ad5869868aad8c680 Mon Sep 17 00:00:00 2001
From: MilhouseVH <[email protected]>
Date: Mon, 27 Nov 2017 20:38:14 +0000
Subject: [PATCH 1/2] kernel 4.15 fix
---
kernel/nvidia-modeset/nvidia-modeset-linux.c | 8 +++-----
kernel/nvidia-uvm/uvm8_va_block.c | 2 ++
kernel/nvidia/nv.c | 10 ++++------
3 files changed, 9 insertions(+), 11 deletions(-)
From 5e1cb0b78142bf7ed7d348f4a47c236590e72b57 Mon Sep 17 00:00:00 2001
From: MilhouseVH <[email protected]>
Date: Mon, 27 Nov 2017 20:48:13 +0000
Subject: [PATCH] kernel 4.15 fix
---
kernel/nv.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/kernel/nv.c b/kernel/nv.c
@artynet
artynet / Install NVIDIA Driver and CUDA.md
Created January 4, 2018 13:54 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@artynet
artynet / git-completion.bash
Created March 3, 2018 15:51
bash/zsh completion support for core Git.
#!bash
#
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
@artynet
artynet / jinfo
Created July 31, 2018 13:28 — forked from mdevan/jinfo
/usr/lib/jvm/.jdk1.8.0_102.jinfo file for Oracle JDK 8u102
name=jdk1.8.0_102
alias=oracle-jdk1.8
priority=180
section=main
hl rmid /usr/lib/jvm/jdk1.8.0_102/jre/bin/rmid
hl java /usr/lib/jvm/jdk1.8.0_102/jre/bin/java
hl keytool /usr/lib/jvm/jdk1.8.0_102/jre/bin/keytool
hl pack200 /usr/lib/jvm/jdk1.8.0_102/jre/bin/pack200
hl rmiregistry /usr/lib/jvm/jdk1.8.0_102/jre/bin/rmiregistry
@artynet
artynet / update-alternatives
Created July 31, 2018 13:28 — forked from mdevan/update-alternatives
update-alternatives commands for Oracle JDK 8u102
sudo update-alternatives --install /usr/bin/appletviewer appletviewer /usr/lib/jvm/jdk1.8.0_102/bin/appletviewer 180
sudo update-alternatives --install /usr/bin/extcheck extcheck /usr/lib/jvm/jdk1.8.0_102/bin/extcheck 180
sudo update-alternatives --install /usr/bin/idlj idlj /usr/lib/jvm/jdk1.8.0_102/bin/idlj 180
sudo update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.8.0_102/bin/jar 180
sudo update-alternatives --install /usr/bin/jarsigner jarsigner /usr/lib/jvm/jdk1.8.0_102/bin/jarsigner 180
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_102/jre/bin/java 180
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_102/bin/javac 180
sudo update-alternatives --install /usr/bin/javadoc javadoc /usr/lib/jvm/jdk1.8.0_102/bin/javadoc 180
sudo update-alternatives --install /usr/bin/javafxpackager javafxpackager /usr/lib/jvm/jdk1.8.0_102/bin/javafxpackager 180
sudo update-alternatives --install /usr/bin/javah javah /usr/lib/jvm/jdk1.8.0_102/bin/javah 1
@artynet
artynet / tomcat.sh
Created December 7, 2018 16:34 — forked from pecigonzalo/tomcat.sh
Tomcat Init Script (Centos/RHEL/Fedora)
#!/bin/bash
#
# tomcatd Start Tomcat server
#
# chkconfig: - 80 20
# description: Tomcat Web Application Server
#
# processname: tomcat
# pidfile: /var/run/tomcat.pid
@artynet
artynet / httpd
Created December 7, 2018 16:35 — forked from vittee/httpd
Apache 2.2 Init.d script for CentOS/RHEL
#!/bin/bash
#
# Startup script for the Apache Web Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
# processname: httpd
# pidfile: /usr/local/apache2/logs/httpd.pid
# config: /usr/local/apache2/conf/httpd.conf