Skip to content

Instantly share code, notes, and snippets.

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

liuziangexit liuziangexit

🚗
两广最快小马车(没有之一)
View GitHub Profile
@1duo
1duo / centos.install.cmake.from.source.md
Last active April 23, 2024 15:58
Install CMake on CentOS 7.

Download CMake from: https://cmake.org/download/

wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz

Compile from source and install

tar zxvf cmake-3.*
@1a57danc3
1a57danc3 / one-key-outline-server
Created March 23, 2018 06:23
one-key-outline-server.sh
curl -sS https://get.docker.com/ | sh && wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh | bash
@jlblancoc
jlblancoc / Install_gcc7_ubuntu_16.04.md
Last active July 8, 2024 06:37
Installing gcc-7 & g++-7 in Ubuntu 16.04LTS Xenial

Run the following in the terminal:

Install the gcc-7 packages:

sudo apt-get install -y software-properties-common
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:

@ulasozguler
ulasozguler / remove_sl_icon.sh
Created February 4, 2017 18:58
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
@chrisidefix
chrisidefix / opencv-fourcc-on-mac-os-x.md
Last active September 27, 2022 08:54 — forked from takuma7/opencv-fourcc-on-mac-os-x.md
OpenCV Video Writer on Mac OS X

OpenCV Video Writer on Mac OS X

Fourcc tests:

  • x : not worked
  • o: worked (able to open in quicktime but need conversion)
  • oo: worked well (preview worked but wrong aspect ratio)
  • ooo: worked very well (preview worked, and aspect ratio’s right)

Size was measured by recording a static stream at 20fps over 6 seconds at a resolution of 640 x 360.

@takuma7
takuma7 / opencv-fourcc-on-mac-os-x.md
Last active April 3, 2024 07:29
OpenCV Video Writer on Mac OS X
@soarez
soarez / ca.md
Last active September 17, 2024 19:26
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.

@jartur
jartur / gist:2989312
Created June 25, 2012 15:37
java8 lambda overloading example
public class Wewe {
interface A {
int run(int x);
}
interface B {
int run(String x);
}
private void overloaded(A a)