This file contains 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 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 <h@kirito.me> | |
# License: MIT | |
# TODO: urllib* compability | |
try: | |
import requests # requests is a humanic REST library | |
REST_LIBRARY = 'requests' |
This file contains 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 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 <xdqi@users.noreply.github.com> | |
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 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 <xdqi@users.noreply.github.com> | |
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 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 <xdqi@users.noreply.github.com> | |
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 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 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
Windows Registry Editor Version 5.00 | |
; WARNING, this file will remove Google Chrome registry entries | |
; from your Windows Registry. Consider backing up your registry before | |
; using this file: http://support.microsoft.com/kb/322756 | |
; To run this file, save it as 'remove.reg' on your desktop and double-click it. | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\chrome.exe] |
This file contains 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 -*- | |
# 哔哩哔哩历史弹幕 (XML) 下载器 | |
# 使用:downdanmu.py av314 | |
import StringIO | |
import datetime | |
import gzip | |
import json | |
import os |
This file contains 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
@echo off | |
::注意:Vista、Win7、Win8 请用管理员运行此程序 | |
echo Loading... | |
del LAST_CHANGE /f /s /q | |
del install.exe /f /s /q | |
wget "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/LAST_CHANGE" -OLAST_CHANGE | |
for /f %%i in (LAST_CHANGE) do set newver=%%i | |
del LAST_CHANGE /f /s /q | |
cls | |
echo, |
NewerOlder