Skip to content

Instantly share code, notes, and snippets.

View liuziangexit's full-sized avatar
🚗
两广最快小马车(没有之一)

liuziangexit liuziangexit

🚗
两广最快小马车(没有之一)
View GitHub Profile
@liuziangexit
liuziangexit / remove_sl_icon.sh
Created October 1, 2021 05:51 — forked from ulasozguler/remove_sl_icon.sh
Remove spotlight icon from menu bar.
cd /System/Library/CoreServices/Spotlight.app/Contents/MacOS
sudo cp Spotlight Spotlight.bak
sudo perl -pi -e 's|(\x00\x00\x00\x00\x00\x00\x47\x40\x00\x00\x00\x00\x00\x00)\x42\x40(\x00\x00\x80\x3f\x00\x00\x70\x42)|$1\x00\x00$2|sg' Spotlight
cmp -l Spotlight Spotlight.bak
sudo codesign -f -s - Spotlight
sudo killall Spotlight
@liuziangexit
liuziangexit / opencv-fourcc-on-mac-os-x.md
Created December 18, 2020 12:52 — forked from takuma7/opencv-fourcc-on-mac-os-x.md
OpenCV Video Writer on Mac OS X
@liuziangexit
liuziangexit / ca.md
Created May 15, 2019 12:29 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

I did the following to install devtoolset-7:
yum install centos-release-scl
yum install devtoolset-7-gcc-c++
Every time I want gcc to default to using GCC 7, I run the following:
scl enable devtoolset-7 bash
@liuziangexit
liuziangexit / Install_gcc7_ubuntu_16.04.md
Created June 13, 2018 14:17 — forked from jlblancoc/Install_gcc7_ubuntu_16.04.md
Installing gcc-7 & g++-7 in Ubuntu 16.04LTS Xenial

Run the following in the terminal:

Install the gcc-7 packages:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y

Set it up so the symbolic links gcc, g++ point to the newer version:

@liuziangexit
liuziangexit / gist:11d0f27032ef7eb51fb67098abfea3e5
Last active January 3, 2018 17:06
HEIF Utility 开发计划
输出转换后的文件时包含 EXIF 元数据(2017年内)
色域转换(2018年初)
在 Windows 资源管理器直接显示 HEIF 图片的略缩图(2018年初)
all done。