10. 恢复 kvm web 管理面板
pacman -S python-virtualenv
cd /var/www/webvirtmgr
source venv/bin/activate
<section data-background-transition='zoom' data-transition='concave' data-background='http://fdorg.qiniudn.com/galaxy-10996_1280.jpg' data-state='blackout'> | |
<h1>ppt.fdzh.org</h1> | |
<h4>在云端的泡泡糖</h4> | |
<p>请按空格 或 点击右下角方向键 继续演示 | |
</section> | |
<section data-background-transition='zoom' data-transition='linear'> | |
<h2>如何使用?</h2> | |
<p>仅需Fork一份该Gist</p> | |
<a href='https://gist.github.com/tvvocold/30e2848f2ba2a294ab28'>https://gist.github.com/tvvocold/30e2848f2ba2a294ab28</a></p> |
Update the GCC and the whole system, using hardened GCC to get every package hardened. | |
# emerge --sync | |
# eselect news read new | |
# emerge eix | |
# eix-update | |
# screen -R eme | |
# eselect profile list | |
# eselect profile set [hardening profile number] | |
# source /etc/profile | |
# emerge --oneshot gcc |
10. 恢复 kvm web 管理面板
pacman -S python-virtualenv
cd /var/www/webvirtmgr
source venv/bin/activate
[Unit] | |
Description=dhclient for sending DUID IPv6 | |
Wants=network.target | |
Before=network.target | |
[Service] | |
Type=forking | |
ExecStart=/sbin/dhclient -cf /etc/dhcp/dhclient6.conf -pf /var/run/dhclient6.ens3.pid -6 -D LL -N -v ens3 | |
PIDFile=/var/run/dhclient6.ens3.pid | |
ExecReload=/bin/kill -HUP $MAINPID |
# -*- coding:utf-8 -*- | |
# !/usr/bin/env python3 | |
''' | |
Author: ayasakinagi | |
Email: [email protected] | |
环境: Python3 | |
依赖: deluge_client | |
使用: 修改host, port, username, password, limitSize, dataPath变量 |
# -*- encoding: utf-8 -*- | |
# Author: Epix | |
# | |
# Ban Xunlei IP for deluge | |
# This script will check deluge connected peers per 30 seconds. | |
# When an IP with UA in `BAN_PATTERNS` is found, the IP will be added to `BLOCK_LIST_FILE`. | |
# However if the IP is uploading or reporting 100% progress, it will say "WTF?" | |
import logging |
SAM and BAM filtering one-liners
@author: David Fredman, [email protected] (sans poly-A tail)
@dependencies: http://sourceforge.net/projects/bamtools/ and http://samtools.sourceforge.net/
Please extend with additional/faster/better solutions via a pull request!
BWA mapping (using piping for minimal disk I/O)
After Intel® Parallel® Studio XE 2020, you could use icx/icpx to enable intel compiler next generation code generator. It combined clang frontend and icc's cutting edge optimization, ideal for opensource projects which already supported opensource compilers.
After installed Parallel® Studio, setup compilation environment.
. /opt/intel/bin/compilervars.sh intel64
The Gibbs sampler discussed on Darren Wilkinson's blog and also on Dirk Eddelbuettel's blog has been implemented in several languages, the first of which was R.
This gist was written in purpose of demonstration only and may not exist without the help of @Ionizing.
The task is to create a Gibbs sampler for the unscaled density
f(x,y) = x x^2 \exp(-xy^2 - y^2 + 2y - 4x)
using the conditional distributions
module TraceGraphs | |
import TraceCalls: Trace | |
import PlotRecipes: GraphPlot | |
using RecipesBase | |
type MyGraph | |
source::AbstractVector{Int} | |
destiny::AbstractVector{Int} | |
end |