Skip to content

Instantly share code, notes, and snippets.

View mptcp config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.4.83 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@jb-alvarado
jb-alvarado / gist:6b07aad900222287ac0b68c1e693bac8
Created Aug 25, 2017
mptcp config for redundant kernel bug
View gist:6b07aad900222287ac0b68c1e693bac8
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.4.83 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
@jb-alvarado
jb-alvarado / gist:2481a82142725c1cbfe3732eea6793f4
Created May 13, 2018
python3 wx ultimatelistctrl example
View gist:2481a82142725c1cbfe3732eea6793f4
import wx
from wx.lib.agw import ultimatelistctrl as ULC
class MainPanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.run_list = []
self.selected_obj = None
@jb-alvarado
jb-alvarado / disable-plugins-in-development.php
Last active Jun 14, 2018
Disable specified WordPress plugins in your development environment. Useful for plugins that either make network calls you don't want when working (eg, auto-posting to Facebook), or for plugins that rely on services only available in production (eg, Varnish).
View disable-plugins-in-development.php
<?php
/**
* Disable specified plugins in your development environment.
*
* This is a "Must-Use" plugin. Code here is loaded automatically before
* regular plugins load. This is the only place from which regular plugins
* can be disabled programatically.
*
* Place this code in a file in WP_CONTENT_DIR/mu-plugins or specify a
* custom location by setting the WPMU_PLUGIN_URL and WPMU_PLUGIN_DIR
@jb-alvarado
jb-alvarado / disable-global-hotkeys.patch
Created Oct 2, 2018
Disable OBS hotkeys when window is not in focus
View disable-global-hotkeys.patch
diff --git a/UI/data/locale/de-DE.ini b/UI/data/locale/de-DE.ini
index 5051ea51..791e622b 100644
--- a/UI/data/locale/de-DE.ini
+++ b/UI/data/locale/de-DE.ini
@@ -692,7 +692,7 @@ Basic.Settings.Advanced.Network="Netzwerk"
Basic.Settings.Advanced.Network.BindToIP="Interface"
Basic.Settings.Advanced.Network.EnableNewSocketLoop="Neuen Netzwerkcode aktivieren"
Basic.Settings.Advanced.Network.EnableLowLatencyMode="Niedriger Latenzmodus"
-Basic.Settings.Advanced.Hotkeys.DisableHotkeysInFocus="Hotkeys deaktivieren, wenn das Hauptfenster im Fokus ist"
+Basic.Settings.Advanced.Hotkeys.DisableHotkeysInFocus="Hotkeys deaktivieren, wenn das Hauptfenster nicht im Fokus ist"
@jb-alvarado
jb-alvarado / build.sh
Created Jan 7, 2019
build gst-plugin-bad example playout.c
View build.sh
#/bin/bash
rm -rf *.o playout
rm -rf "./deps/*"
mkdir -p ".deps"
system=$( uname -s )
if [[ "$system" == "Darwin" ]]; then
_libtool="glibtool"
View default-server-conf.sh
#!/bin/bash
# nano syntax highlighting
cat <<EOT > /usr/share/nano/config.nanorc
# config file highlighting
syntax "conf" "(\.(bashrc|zshrc|conf|config|cfg|cnf|cf|rc|lst|list|defs|ini|desktop|mime|types|preset|cache|seat|service|htaccess)$|(^|/)(\w*crontab|mirrorlist|group|hosts|passwd|rpc|netconfig|shadow|fstab|inittab|inputrc|protocols|sudoers)$|conf.d/|.config/)"
# default text
color magenta "^.*$"
@jb-alvarado
jb-alvarado / edge.conf
Created Sep 29, 2020
HLS - Origin / Edge Cache
View edge.conf
proxy_cache_path /mnt/ramdisk/cache_temp use_temp_path=off keys_zone=cache_temp:10m max_size=1536m inactive=1h;
server {
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/edge.example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/edge.example.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
server_name edge.example.org;
@jb-alvarado
jb-alvarado / hls.conf
Last active Mar 16, 2021
srs rtmp server with hls multiple bitrates
View hls.conf
listen 1935;
max_connections 20;
daemon on;
pid /usr/local/srs/objs/srs.pid;
srs_log_tank file; # console;
srs_log_file /var/log/srs.log;
ff_log_dir /dev/null;
# can be: verbose, info, trace, warn, error
srs_log_level warn;
View playbin_about-to-finish.py
#!/usr/bin/env python3
import gi
from urllib.parse import quote
gi.require_version('Gst', '1.0')
gi.require_version('GLib', '2.0')
from gi.repository import GLib, Gst