Skip to content

Instantly share code, notes, and snippets.

View NexAdn's full-sized avatar

Adrian Schollmeyer NexAdn

View GitHub Profile

Keybase proof

I hereby claim:

  • I am nexadn on github.
  • I am nexadn (https://keybase.io/nexadn) on keybase.
  • I have a public key ASCuQ7J3sGUnupT9QkHN_q-PQFtpozZv5vGj-UxGyTKpLwo

To claim this, I am signing this object:

@NexAdn
NexAdn / cmake.patch
Created December 31, 2018 09:42
Patch to allow installation on Ubuntu systems
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2871b4c..6a90515 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.8)
+cmake_minimum_required (VERSION 3.0)
project (obs-linuxbrowser LANGUAGES C CXX VERSION 0.5.2)
set(CMAKE_BUILD_TYPE Release CACHE STRING "CMake build type")
@NexAdn
NexAdn / ktchat.js
Created October 31, 2018 22:47
KT-Chat Helper JS
// Eigener Benutzername, exakt angeben
var ownUsername = "";
// Nicknamen in "", gefolgt von einem Komma, kürzeste Variante ist hinreichend. Zu kurze Angaben können zu falsch positiven Ergebnissen führen (Nachrichten werden fälschlicherweise markiert).
var nicknames = [
"",
];
// HTML5-Sounds aktivieren. Achtung! Flash-Sounds bleiben weiterhin aktiv. Flash ggf. deinstallieren!
var audioEnable = true;
// Visuelle Benachrichtigungen:
// 0: keine Benachrichtigungen
@NexAdn
NexAdn / youtubechat2.css
Last active August 28, 2018 11:50
YouTube overlay CSS
/* Transparenz */
body {
background: rgba(0, 0, 0, 0);
/* background: #0f0 */
}
yt-live-chat-renderer {
background: transparent !important;
/* background: #0f0; */
diff --git a/src/browser/browser-client.cpp b/src/browser/browser-client.cpp
index 744aae5..09dc31d 100644
--- a/src/browser/browser-client.cpp
+++ b/src/browser/browser-client.cpp
@@ -17,6 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <algorithm>
#include <math.h>
+#include <sstream>
+#include <string>
@NexAdn
NexAdn / install.sh
Created January 15, 2018 13:35
Installation script for obs-linuxbrowser with cef-minimal
#!/bin/bash
# Change to '32' when installing on a 32-bit machine
ARCH=64
CEF_VER=3.3239.1723.g071d1c1
LINUXBROWSER_VER=0.3.1
CEF_DIR=/opt/cef
OBS_INCLUDE=/usr/include/obs
OBS_LIB=/usr/lib
0x0073Bb7559969cAF9ec74f282437938f9FF9Ea6f
Mai 16 21:22:59 pc01 kernel: usercopy: kernel memory overwrite attempt detected to ffff8801ea698f98 ((null)) (8 bytes)
Mai 16 21:22:59 pc01 kernel: ------------[ cut here ]------------
Mai 16 21:22:59 pc01 kernel: kernel BUG at mm/usercopy.c:75!
Mai 16 21:22:59 pc01 kernel: invalid opcode: 0000 [#1] PREEMPT SMP
Mai 16 21:22:59 pc01 kernel: Modules linked in: snd_seq_midi snd_seq_midi_event snd_seq_dummy snd_seq xt_CHECKSUM iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_nat_ipv4 nf_nat libcrc32c cr
Mai 16 21:22:59 pc01 kernel: intel_rapl_perf snd_hda_codec_generic mac_hid pcspkr snd_hda_intel drm_kms_helper snd_usb_audio drm snd_hda_codec snd_usbmidi_lib snd_usb_caiaq snd_hda_core snd_rawmidi syscopyarea
Mai 16 21:22:59 pc01 kernel: CPU: 0 PID: 3209 Comm: SGI_video_sync Tainted: P O 4.10.13-1-ARCH #1
Mai 16 21:22:59 pc01 kernel: Hardware name: System manufacturer System Product Name/P8Z77-M, BIOS 1504 08/01/2012
Mai 16 21:22:59 pc01 kernel: task: ffff8801f0613900 task.stack:
function checkInitial()
if fs.isDir(".cpm.d") then
readPackageLists()
return 0
else
initConfDir()
checkInitial()
return 0
end
end
---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 02.02.16 21:54
Description: Ticking block entity
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeLo(Unknown Source)
at java.util.TimSort.mergeAt(Unknown Source)
at java.util.TimSort.mergeCollapse(Unknown Source)