Skip to content

Instantly share code, notes, and snippets.

View apepkuss's full-sized avatar

Xin Liu apepkuss

  • SecondState
  • Beijing, China
View GitHub Profile
@paolobarbolini
paolobarbolini / README.md
Last active August 25, 2023 02:42
Top crates by crates.io reverse dependencies count

Top crates by crates.io reverse dependencies count

As of the database dump from 2023-08-12-020056.

File on GitHub Gist truncated to 2000 to make file rendering smoother.

Exported with query
CREATE MATERIALIZED VIEW all_versions AS (
@diegopacheco
diegopacheco / latest-protobuf-ubuntu-18-04.md
Created June 7, 2018 20:13
How to Install Latest Protobuf on Ubuntu 18.04
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
make
make check
sudo make install
sudo ldconfig
@SunnyRaj
SunnyRaj / configure_muliple_gcc.sh
Last active October 10, 2023 09:17
Configure multiple GCC versions on ubuntu
#!/usr/bin/env bash
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo apt-get install -y gcc-4.8 g++-4.8 gcc-4.9 g++-4.9 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10