Skip to content

Instantly share code, notes, and snippets.

View ccckblaze's full-sized avatar
🎯
Focusing

Steve Han ccckblaze

🎯
Focusing
  • Sucheon
  • Xiamen, Fujian, China
View GitHub Profile
@enfont
enfont / fix.md
Last active June 4, 2024 14:28
Fixing Error: ImportError: pycurl: libcurl link-time version (7.79.1) is older than compile-time version (7.87.0)

Fixing Pycurl error on MacOs Monterrey

Issue:

celery -A workers worker --loglevel=INFO -c 2
...
  File "/Users/USERNAME/.pyenv/versions/3.8.5/envs/notifications38/lib/python3.8/site-packages/kombu/asynchronous/http/curl.py", line 41, in __init__
    raise ImportError('The curl client requires the pycurl library.')
ImportError: The curl client requires the pycurl library.
@yohhoy
yohhoy / cv2ff.cpp
Created February 17, 2016 15:41
Convert from OpenCV image and write movie with FFmpeg
/*
* Convert from OpenCV image and write movie with FFmpeg
*
* Copyright (c) 2016 yohhoy
*/
#include <iostream>
#include <vector>
// FFmpeg
extern "C" {
#include <libavformat/avformat.h>
@sphaero
sphaero / gstreamer-build.sh
Last active February 11, 2023 16:25
Install & build gstreamer from git
#!/bin/bash --debugger
set -e
BRANCH="master"
if grep -q BCM2708 /proc/cpuinfo; then
echo "RPI BUILD!"
RPI="1"
fi
[ -n "$1" ] && BRANCH=$1
@textarcana
textarcana / git-log2json.sh
Last active June 19, 2024 10:55
Convert Git logs to JSON. The first script (git-log2json.sh) is all you need, the other two files contain only optional bonus features 😀THIS GIST NOW HAS A FULL GIT REPO: https://github.com/context-driven-testing-toolkit/git-log2json
#!/usr/bin/env bash
# Use this one-liner to produce a JSON literal from the Git log:
git log \
--pretty=format:'{%n "commit": "%H",%n "author": "%aN <%aE>",%n "date": "%ad",%n "message": "%f"%n},' \
$@ | \
perl -pe 'BEGIN{print "["}; END{print "]\n"}' | \
perl -pe 's/},]/}]/'