This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//author: https://gist.github.com/michaeltyson/8235f5016baed5eab288 | |
#extension GL_ARB_texture_rectangle : enable | |
precision mediump float; | |
varying vec2 v_texcoord; | |
uniform sampler2D tex; | |
const vec4 kappa = vec4(1.0,1.7,0.7,15.0); | |
const float screen_width = 1280.0; | |
const float screen_height = 800.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright 2016, Florent Thiery | |
# Run uwsgi with '--profiler pycall' and run the parser on uwsgi.log | |
import sys | |
from collections import Counter | |
HEADER = '##############' | |
PATTERN = "[uWSGI Python profiler" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Copyright 2016, Florent Thiery | |
import requests | |
API_KEY = 'your-api-key' | |
BASE_URL = 'https://your.mediaserver.net' | |
VERIFY_SSL = False | |
PROXIES = {'http': '', 'https': ''} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Copyright 2016, Florent Thiery | |
import os | |
import sys | |
import requests | |
from zipfile import ZipFile | |
API_KEY = 'my-api-key' | |
BASE_URL = 'https://my.mediaserver.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=Java | |
Comment=Java | |
GenericName=Java | |
Keywords=java | |
Exec=java -jar %f | |
Terminal=false | |
X-MultipleArgs=false | |
Type=Application | |
MimeType=application/x-java-archive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import gi | |
gi.require_version("Gst", "1.0") | |
gi.require_version("GstAudio", "1.0") | |
from gi.repository import Gst, GstAudio, GObject | |
import sys | |
GObject.threads_init() | |
Gst.init(None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import gi | |
gi.require_version("Gst", "1.0") | |
gi.require_version("GstAudio", "1.0") | |
from gi.repository import Gst, GstAudio, GObject | |
import sys | |
GObject.threads_init() | |
Gst.init(None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ---------------------------------------------------------------------------- | |
# | |
# create-uninstalled-setup.sh | |
# | |
# Little shell script that creates a fresh GStreamer uninstalled setup in | |
# your home directory. | |
# | |
# ---------------------------------------------------------------------------- | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FOLDER=/opt/gstreamer | |
mkdir -p $FOLDER | |
git clone https://github.com/GStreamer/gst-build.git $FOLDER | |
cd $FOLDER | |
mkdir build | |
meson -Denable_python=true build | |
cd build | |
ninja | |
echo "Now run: $FOLDER/gst-uninstalled.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import gi | |
gi.require_version('Gst', '1.0') | |
from gi.repository import Gst, GLib | |
Gst.init(None) | |
p = "videotestsrc is-live=true ! autovideosink" |
OlderNewer