This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# install macfuse from osxfuse.github.io | |
# brew install autoconf automake objconv | |
git clone https://git.savannah.gnu.org/git/grub.git | |
cd grub | |
./bootstrap | |
./configure --disable-nls --disable-werror | |
make || make grub-mount grub-fstest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cstdint> | |
// generates random number between [0.5, 1) | |
double getrand(FILE *f) { | |
union { | |
uint64_t u; | |
double d; | |
}; | |
fread(&u, sizeof(u), 1, f); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 68a83385a5f2dd2a1f33e775366fabd2fe0c0edc Mon Sep 17 00:00:00 2001 | |
From: Alexander Qi <[email protected]> | |
Date: Tue, 18 Apr 2017 14:55:08 +0800 | |
Subject: [PATCH] Add IPIP geolocation display to GNU inetutils | |
--- | |
ping/ping_echo.c | 97 +++++++++++++++++++++++++++++++++++++++++++++++- | |
src/traceroute.c | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++---- | |
2 files changed, 198 insertions(+), 10 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 42081ef76faf196ca354622a18885f3f7677ded5 Mon Sep 17 00:00:00 2001 | |
From: Alexander Qi <[email protected]> | |
Date: Tue, 18 Apr 2017 14:05:03 +0800 | |
Subject: [PATCH] Add IPIP geolocation display to BIND-9.11.0-P3 | |
--- | |
bin/dig/nslookup.c | 3 +- | |
lib/dns/rdata.c | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++- | |
2 files changed, 96 insertions(+), 2 deletions(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 1d43349759ffdf9b9d7e4961d1326119dd6c44c0 Mon Sep 17 00:00:00 2001 | |
From: Alexander Qi <[email protected]> | |
Date: Tue, 18 Apr 2017 11:24:28 +0800 | |
Subject: [PATCH] Add IPIP support | |
--- | |
.gitignore | 2 ++ | |
Makefile.am | 4 ++- | |
configure.ac | 2 +- | |
ipip/ipip.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import os | |
import struct | |
import codecs | |
import PyQt4.QtCore | |
directory_path = sys.argv[1] | |
filenames = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 | |
# WeCase -- This file implemented Notify. | |
# Copyright (C) 2013, 2014, 2015 The WeCase Developers. | |
# License: GPL v3 or later. | |
from PyQt4 import QtCore | |
import path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# ZGCD client | |
# Contributor: Kirito <[email protected]> | |
# License: MIT | |
# TODO: urllib* compability | |
try: | |
import requests # requests is a humanic REST library | |
REST_LIBRARY = 'requests' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Using: getktxp.py [KTXP Search Page URL] | |
# TODO: | |
# 1. Merge it with lixian-cli | |
# 2. Support Multi Pages (I did not implement that because typical anime series has less than 30 episodes) | |
import sys | |
from bs4 import BeautifulSoup | |
import requests | |
import urllib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import division | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
# 声明变量 | |
PAGE = 'http://wapp.baidu.com/p/2833065220' |
NewerOlder