Skip to content

Instantly share code, notes, and snippets.

View MitsuhaMiyamizu's full-sized avatar
🌴
On vacation

是夕流芳 MitsuhaMiyamizu

🌴
On vacation
  • Utopia Planitia, Mars.
View GitHub Profile
<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
@MitsuhaMiyamizu
MitsuhaMiyamizu / webvirtmgr.md
Created November 16, 2016 04:32 — forked from noreply-builder/webvirtmgr.md
webvirtmgr systemd service example

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: xyz.wang@outlook.com
环境: 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
@MitsuhaMiyamizu
MitsuhaMiyamizu / bamfilter_oneliners.md
Created August 25, 2020 10:59 — forked from davfre/bamfilter_oneliners.md
SAM and BAM filtering oneliners
@MitsuhaMiyamizu
MitsuhaMiyamizu / compile_pytorch_with_icx.md
Created October 6, 2020 08:11 — forked from CaoZhongZ/compile_pytorch_with_icx.md
Compile PyTorch with Intel Compiler Next Generation

Intel Compiler Next Generation

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.

Setup Intel Compiler Environment

After installed Parallel® Studio, setup compilation environment.

. /opt/intel/bin/compilervars.sh intel64

Start Compilation

@MitsuhaMiyamizu
MitsuhaMiyamizu / SimpleGibbs.md
Last active April 23, 2021 02:28 — forked from dmbates/SimpleGibbs.md
Simple Gibbs sampler in Julia

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