Skip to content

Instantly share code, notes, and snippets.


JingTao Chen NKUCodingCat

Block or report user

Report or block NKUCodingCat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
NKUCodingCat / Dockerfile.xsm_lvliang_env_CentOS_6.6
Created Apr 10, 2019
View Dockerfile.xsm_lvliang_env_CentOS_6.6
FROM centos:6.6
RUN yum -y install yum install centos-release-scl
RUN yum -y install nano gcc devtoolset-7-gcc-c++ gcc-gfortran cmake glibc-static libstdc++-static
RUN echo -e "\nsource scl_source enable devtoolset-7 \n" >> /root/.bashrc
set -xe
function update_package_lists() {
printf "Updating package lists"
apt-get update -y 2> /dev/null > /dev/null
if [ $? -eq 0 ]; then
printf " => Done\n"
return 0
printf " => ERROR\n"
return 1
# This script may use ~8 MiB Memory, it is fast and safe
def find_IP(dns_ser, domain, timeout = 2):
import dns.resolver, sys
T = dns.resolver.Resolver(); T.nameservers = [dns_ser, ]; T.timeout = T.lifetime = timeout
answers = T.query(domain, raise_on_no_answer=False)
return [rdata for rdata in answers]
except Exception as e:
if e.__class__.__base__ == dns.exception.DNSException:
NKUCodingCat / hosts
Created Oct 12, 2016
host file to unlock netease music in USA
View hosts
import cPickle as pickle
import numpy
import PyDeepCL
import re
# Warning: this module is just an approximate seriallize to the net
# It does not cover each property of NeuralNet
# Use it carefully
# Working in Python 2.7, PyDeepCL 10.3.0a3 / DeepCL 10.1.0
View gist:f70b9fd9d958ea5fad80
import socket
import ssl
import os
import platform
import random
import re
import IPy
You can’t perform that action at this time.