Skip to content

Instantly share code, notes, and snippets.

View energygreek's full-sized avatar
💭
I may be slow to respond.

Heyman energygreek

💭
I may be slow to respond.
  • Shenzhen, China
View GitHub Profile
@energygreek
energygreek / gdk-gstappsrc-stream.c
Created November 2, 2022 07:52 — forked from nzjrs/gdk-gstappsrc-stream.c
GStreamer Streaming AppSrc Example
/* gcc gdk-gstappsrc-stream.c -Wall `pkg-config --cflags --libs gstreamer-app-0.10 gdk-pixbuf-2.0` -o gdkstream */
#include <gst/gst.h>
#include <gst/app/gstappsrc.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
@energygreek
energygreek / wechat_amr_wav.py
Created August 24, 2022 03:13 — forked from ollyja/wechat_amr_wav.py
convert weichat amr audio files into wav
# WeChat aud file converter to wav files
# Dependencies:
# SILK audio codec decoder (available at https://github.com/gaozehua/SILKCodec)
# ffmpeg
#
# By Gabriel B. Nunes (gabriel@kronopath.net)
# Adapted from another script by Nicodemo Gawronski (nico@deftlinux.net)
#
# update by ollyja
@energygreek
energygreek / README.md
Created June 20, 2020 11:31 — forked from Jxck/README.md
libuv TCP server/client sample

how to compile

$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices server.c -o server
$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices client.c -o client