Skip to content

Instantly share code, notes, and snippets.

@huiyiqun
huiyiqun / PKGBUILD
Created July 12, 2017 01:19
working PKGBUILD for ethminer-git
# Maintainer: Rowan Decker <[email protected]>
# Contributor: Eric Toombs <ee double you toombs at you waterloo dot see eh?>
# Contributor: Afri 5chdn <[email protected]>
# Contributor: Andy Weidenbaum <[email protected]>
pkgname=ethminer-git
pkgver=0.12.0.0.20170712.f99ca9822
pkgrel=1
pkgdesc="Ethereum miner with CUDA and stratum support. chfast's version."
arch=('i686' 'x86_64')
@huiyiqun
huiyiqun / iperf3.txt
Last active September 17, 2016 06:22
EDUP EP-DB1302 2.4G/5.8G USB双频无线网卡
$ iperf3 -c 192.168.233.1
Connecting to host 192.168.233.1, port 5201
[ 4] local 192.168.233.53 port 58836 connected to 192.168.233.1 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 12.1 MBytes 101 Mbits/sec 0 522 KBytes
[ 4] 1.00-2.00 sec 12.6 MBytes 106 Mbits/sec 0 454 KBytes
[ 4] 2.00-3.00 sec 12.3 MBytes 104 Mbits/sec 0 505 KBytes
[ 4] 3.00-4.00 sec 12.5 MBytes 105 Mbits/sec 0 389 KBytes
[ 4] 4.00-5.00 sec 12.1 MBytes 101 Mbits/sec 0 413 KBytes
[ 4] 5.00-6.00 sec 12.6 MBytes 106 Mbits/sec 0 427 KBytes
$ ldd /usr/lib/netease-cloud-music/netease-cloud-music
/usr/lib/netease-cloud-music/netease-cloud-music: /usr/lib/libcrypto.so.1.0.0: no version information available (required by /usr/lib/netease-cloud-music/netease-cloud-music)
/usr/lib/netease-cloud-music/netease-cloud-music: /usr/lib/libQt5Gui.so.5: version `Qt_5' not found (required by /usr/lib/libQt5X11Extras.so.5)
/usr/lib/netease-cloud-music/netease-cloud-music: /usr/lib/libQt5Core.so.5: version `Qt_5.7' not found (required by /usr/lib/libQt5X11Extras.so.5)
/usr/lib/netease-cloud-music/netease-cloud-music: /usr/lib/libQt5Core.so.5: version `Qt_5' not found (required by /usr/lib/libQt5X11Extras.so.5)
/usr/lib/netease-cloud-music/netease-cloud-music: /usr/lib/libQt5Gui.so.5: version `Qt_5' not found (required by /usr/lib/libQt5Multimedia.so.5)
/usr/lib/netease-cloud-music/netease-cloud-music: /usr/lib/libQt5Network.so.5: version `Qt_5' not found (required by /usr/lib/libQt5Multimedia.so.5)
/usr/lib/netease-cloud-music/netease-cloud-music: /usr/lib/libQt
import csv
import requests
import itertools
from netaddr import cidr_merge, iprange_to_cidrs
from ipaddress import (summarize_address_range,
collapse_addresses, IPv4Address)
class AddressBlock(object):
def __init__(self, country_code):
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- Use embedded bitmaps in fonts like Calibri? -->
<match target="font" >
<test qual="all" name="family" compare="not_eq">
<string>Noto Color Emoji</string>
</test>
<edit name="embeddedbitmap" mode="assign">
@huiyiqun
huiyiqun / macvlan.md
Created November 4, 2015 13:41
读macvlan代码的心得(为了给macvlan添加multicast支持)

Macvlan 内核代码阅读备忘

暂时没有博客,就放到这里了。

Macvlan和Macvtap的关系

Macvtap的代码没有去深读,从代码头上的注释来看,macvtap主要是在macvlan的基础上封装了一个char设备,维护一个队列,因此网络相关的主要逻辑应该在macvlan里。

Macvlan的数据结构里的逻辑关系(主要看macvlan_common_newlink)

+--------------------------------------------------------------------------------------------------------------------------+

class Rule
if: (@condition) -> @
and: (condition) ->
@andCondition = new Rule()
@andCondition.if condition
or: (condition) ->
@orCondition = new Rule()
@orCondition.if condition
HOST: https://bluepaste.herokuapp.com
# Special Case
I'd like to an array whose member is limited to special object but this object should not be fixed.
# Some Resource [/]
## Result not perfect [GET]
archey3 0.5-3
bash 4.3.033-1
bash-completion 2.1-5
bzip2 1.0.6-5
coreutils 8.23-1
diffutils 3.3-2
e2fsprogs 1.42.12-2
file 5.22-1
filesystem 2015.02-1
findutils 4.4.2-6
abootimg-git 20130104-2
acpi 1.7-1
acpid 2.0.23-4
aliedit 1.0.3.20-2
alsa-utils 1.0.29-1
android-sdk r24.1.2-1
android-sdk-platform-tools r22-2
android-udev r142-1
arandr 0.1.7.1-3
arch-install-scripts 15-1