Skip to content

Instantly share code, notes, and snippets.

View sunnyjocker's full-sized avatar

SunnyJocker sunnyjocker

View GitHub Profile
@nevack
nevack / archived.md
Last active December 19, 2023 00:56
[ARCHIVED] Fix for CSR Dongle 0a12:0001 ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

This gist is currenctly archived.

Please refer to previous revisions if you know what to do.

The patch proposed was merged into kernel in 5.8 release, but no longer working as of linux 5.11

@patrickelectric
patrickelectric / video_udp.py
Last active March 16, 2024 20:28
Get video from gstreamer udp with python and visualize with OpenCV
#!/usr/bin/env python
import cv2
import gi
import numpy as np
gi.require_version('Gst', '1.0')
from gi.repository import Gst
@davecoutts
davecoutts / anaconda_offline_package_bundler.py
Last active September 13, 2021 12:13
Create offline package install bundles for Continuum Analytics Anaconda
DESCRIPTION = \
"This script builds a tar'd bundle of Anaconda packages and their dependencies suitable for installing on an offline server."
EPILOG = \
'''
The basic work flow is as follows,
- The user manually runs a conda 'dry-run' install command on an online server to generate a json file containing the required packages and their dependency packages.
- The script loads the 'dry-run' json file(s) and performs the following actions,
- Create a 'channel' directory per online channel, as discovered from the json file(s).
- Download the packages and their dependency packages into the channel directory.
@xjdrew
xjdrew / squid_https.md
Last active October 18, 2023 17:10
配置squid https代理

编译

通过ubuntuapt-get安装的squid没有启用ssl功能,需要手动编译。

编译squid步骤如下。

安装依赖及获取源代码

apt-get install openssl libssl-dev ssl-cert
apt-get source squid
@nebgnahz
nebgnahz / gstreamer.md
Last active November 6, 2023 12:28
Collections of GStreamer usages

Most GStreamer examples found online are either for Linux or for gstreamer 0.10.

This particular release note seems to have covered important changes, such as:

  • ffmpegcolorspace => videoconvert
  • ffmpeg => libav

Applying -v will print out useful information. And most importantly the negotiation results.

@eleventigers
eleventigers / GLTextureView.java
Created March 14, 2014 10:34
GLTextureView from GLSurfaceView
import java.io.Writer;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGL11;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.egl.EGLContext;
import javax.microedition.khronos.egl.EGLDisplay;
import javax.microedition.khronos.egl.EGLSurface;
import javax.microedition.khronos.opengles.GL;