git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
import logging | |
import cStringIO | |
import csv | |
DEBUG = False | |
def data2csv(data): | |
si = cStringIO.StringIO() | |
cw = csv.writer(si, delimiter='\t',lineterminator="\n") | |
for row in data: |
log4j.debug=false | |
# Default level is INFO | |
log4j.rootLogger=INFO,StdoutErrorFatal,StdoutWarn,StdoutInfo,StdoutDebug,StdoutTrace | |
# and for com.some.package.* log everything | |
log4j.logger.com.some.package=TRACE | |
log4j.appender.StdoutErrorFatal=org.apache.log4j.ConsoleAppender | |
log4j.appender.StdoutErrorFatal.layout=org.apache.log4j.PatternLayout |
Press minus + shift + s
and return
to chop/fold long lines!
1. Send HTTP GET Request | |
String url = "http://www.google.com/search?q=httpClient"; | |
HttpClient client = HttpClientBuilder.create().build(); | |
HttpGet request = new HttpGet(url); | |
// add request header | |
request.addHeader("User-Agent", USER_AGENT); | |
HttpResponse response = client.execute(request); |
Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.
Tambahkan list di bawah ke /etc/hosts
.
# Go to home directory | |
cd ~ | |
# You can change what anaconda version you want at | |
# https://repo.continuum.io/archive/ | |
wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh | |
bash Anaconda3-5.0.1-Linux-x86_64.sh -b -p ~/anaconda | |
rm Anaconda3-5.0.1-Linux-x86_64.sh | |
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bashrc |
Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:
Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.
Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.
Instructions provided for both Fedora and Ubuntu (including Debian):
Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running: