Skip to content

Instantly share code, notes, and snippets.

@Valinwolf
Valinwolf / auth.php
Created February 8, 2022 17:20
Owncast Recordings System
#/var/www/somewhere/auth.php
<?php
if($_POST['name']=="YOUR_STREAM_KEY") {
http_response_code(200);
exit();
} else {
http_response_code(401);
exit();
}
@Valinwolf
Valinwolf / .vimrc
Last active January 14, 2020 21:17
My VIM Configs
set mouse-=a
@Valinwolf
Valinwolf / README.md
Last active January 14, 2020 20:52
A collection of tools for use with OctoPrint printers. (Mesh tools for UBL)

Installation

To install run the following commands:

sudo wget https://gist.githubusercontent.com/Valinwolf/4170ba47b132f8389307bbf05104d1aa/raw/tram -O /usr/local/bin/tram
sudo wget https://gist.githubusercontent.com/Valinwolf/4170ba47b132f8389307bbf05104d1aa/raw/remesh -O /usr/local/bin/remesh
sudo wget https://gist.githubusercontent.com/Valinwolf/4170ba47b132f8389307bbf05104d1aa/raw/adjust-mesh -O /usr/local/bin/adjust-mesh
sudo wget https://gist.githubusercontent.com/Valinwolf/4170ba47b132f8389307bbf05104d1aa/raw/preheat -O /usr/local/bin/preheat
sudo wget https://gist.githubusercontent.com/Valinwolf/4170ba47b132f8389307bbf05104d1aa/raw/octoprint-api.ini -O /etc/octoprint-api.ini
sudo chmod 755 /usr/local/bin/{tram,remesh,adjust-mesh,preheat}
@Valinwolf
Valinwolf / octoprint.log
Created December 10, 2019 06:18
OctoPrint Log
2019-12-10 02:43:23,615 - octoprint.startup - INFO - ******************************************************************************
2019-12-10 02:43:23,616 - octoprint.startup - INFO - Starting OctoPrint 1.3.12
2019-12-10 02:43:23,617 - octoprint.startup - INFO - ******************************************************************************
2019-12-10 02:43:23,729 - octoprint.plugin.core - INFO - Loading plugins from /home/octoprint/.env/lib/python2.7/site-packages/octoprint/plugins, /home/octoprint/.octoprint/plugins and installed plugin packages...
2019-12-10 02:43:24,466 - octoprint.plugins.octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available
2019-12-10 02:43:24,483 - octoprint.plugin.core - INFO - Found 15 plugin(s) providing 15 mixin implementations, 23 hook handlers
2019-12-10 02:43:24,547 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2019-12-10 02:43:24,591 - octoprint.server - INFO - Intermediary server started
2019-1
@Valinwolf
Valinwolf / JavaScript Console
Created December 10, 2019 05:53
OctoPrint Webcam Software Error
packed_core.js?b00f909b:15825 Starting dependency resolution...
packed_core.js?b00f909b:15935 ... dependency resolution done
packed_core.js?b00f909b:16227 Initial application setup done, connecting to server...
ZpDw9mNBngU:1 Access to XMLHttpRequest at 'https://googleads.g.doubleclick.net/pagead/id' from origin 'https://www.youtube.com' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
chrome-extension://invalid/:1 Failed to load resource: net::ERR_FAILED
packed_core.js?b00f909b:13900 Connected to the server
packed_core.js?b00f909b:16195 Finalizing application startup
chrome-extension://invalid/:1 Failed to load resource: net::ERR_FAILED
VM11375:140 DomDistiller debug level: 0
packed_core.js?b00f909b:16076 Going to bind 41 view models...
@Valinwolf
Valinwolf / after.conf
Created November 13, 2019 07:42
NGINX Configs
# configuration file /etc/nginx/nginx.conf:
user apache apache;
worker_processes auto;
error_log /var/log/nginx/error.log;
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 4096;
}
@Valinwolf
Valinwolf / PKGBUILD.diff
Created October 4, 2019 23:43
AUR android-studio diff
diff --git a/PKGBUILD b/PKGBUILD
index 463c394..3742f81 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,9 +8,9 @@
# Maintainer: Kordian Bruck <k@bruck.me>
pkgname=android-studio
-pkgver=3.5.0.21
+pkgver=3.5.1.0
@Valinwolf
Valinwolf / dump.log
Created August 1, 2019 12:11
Shutdown Coredump
PID: 16095 (construct)
UID: 0 (root)
GID: 0 (root)
Signal: 6 (ABRT)
Timestamp: Thu 2019-08-01 07:06:01 CDT (3min 38s ago)
Command Line: construct w0lfr.net
Executable: /usr/local/bin/construct
Control Group: /user.slice/user-0.slice/session-4.scope
Unit: session-4.scope
Slice: user-0.slice
@Valinwolf
Valinwolf / build.log
Created August 1, 2019 01:12
Construct Build Output
This file has been truncated, but you can view the full file.
[root@srv1 construct]# make && make install
Making all in include/ircd
make[1]: Entering directory '/root/construct/include/ircd'
g++ -std=gnu++17 -pipe -march=native -Og -falign-functions -g -ggdb -fvar-tracking -fvar-tracking-assignments -frecord-gcc-switches -fstack-protector-explicit -fvisibility-inlines-hidden -fnothrow-opt -fno-threadsafe-statics -fsigned-char -pthread -fpch-deps -fmax-errors=2 -o ircd.h.gch -DHAVE_CONFIG_H -DPCH -Wall -Wextra -Wpointer-arith -Wcast-align -Wcast-qual -Wfloat-equal -Wwrite-strings -Wparentheses -Wmissing-noreturn -Wundef -Wpacked -Wformat -Wformat-y2k -Wformat-nonliteral -Wstrict-aliasing=2 -Wstrict-overflow=5 -Wdisabled-optimization -Winvalid-pch -Winit-self -Wuninitialized -Wunreachable-code -Wno-overloaded-virtual -Wnon-virtual-dtor -Wnoexcept -Wsized-deallocation -Wctor-dtor-privacy -Wsign-promo -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override -Wtrampolines -Wrestrict -Wnull-dereference -Wplacement-new=2 -Wundef -Wodr -Werror=return-type -Wno-missin
@Valinwolf
Valinwolf / valgrind.log
Created July 31, 2019 21:55
Valgrind Output
ator<std::pair<rocksdb::Tickers, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::vector(std::initializer_list<std::pair<rocksdb::Tickers, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::pair<rocksdb::Tickers, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) (stl_vector.h:519)
==14822== by 0x4EAF01A: __static_initialization_and_destruction_0(int, int) [clone .constprop.171] (statistics.h:331)
==14822== by 0x400FDE9: call_init.part.0 (dl-init.c:72)
==14822== by 0x400FEE9: call_init (dl-init.c:118)
==14822== by 0x400FEE9: _dl_init (dl-init.c:119)
==14822== by 0x4001149: ??? (in /usr/lib64/ld-2.28.so)
==14822== by 0x1: ???
==14822== by 0x1FFF000516: ???
==14822== by 0x1FFF000520: ???
==14822==