Skip to content

Instantly share code, notes, and snippets.

View wisdomfusion's full-sized avatar

Hu Zhifei wisdomfusion

View GitHub Profile
@wisdomfusion
wisdomfusion / install-gcc-4.9.3-on-centos6.txt
Last active March 29, 2021 03:18
Install gcc-4.9.3 on CentOS 6
yum install libmpc-devel mpfr-devel gmp-devel
cd /usr/src/
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2 -O
tar xvfj gcc-4.9.3.tar.bz2
cd gcc-4.9.3
./configure --disable-multilib --enable-languages=c,c++
make -j `grep processor /proc/cpuinfo | wc -l`
make install
@wisdomfusion
wisdomfusion / ip_query.pl
Last active June 3, 2016 06:56
IP query with IP::QQWry and qqwry.dat
#!/usr/bin/perl -w
use strict;
use v5.12;
use utf8;
use Encode;
use IP::QQWry::Decoded;
use Carp qw( croak );
binmode(STDIN, ':encoding(utf8)');