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
# for all patches up to date, or download tgz from vim.org | |
hg clone https://vim.googlecode.com/hg/ vim | |
cd vim | |
# override vi_cv_path_python with your preferred python 2.x location | |
./configure --disable-selinux --enable-gui=no --enable-pythoninterp --enable-perlinterp --enable-rubyinterp --enable-multibyte --prefix=$HOME vi_cv_path_python=/usr/local/bin/python2.7 | |
make -j 20 | |
make install |
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
#if defined(WIN32) | |
#elif defined(__MACH__) | |
static inline unsigned short bswap_16(unsigned short x) { | |
return (x>>8) | (x<<8); | |
} | |
static inline unsigned int bswap_32(unsigned int x) { | |
return (bswap_16(x&0xffff)<<16) | (bswap_16(x>>16)); | |
} |
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
<?php | |
$url = $_GET["url"]; | |
$vid = 0; | |
$acgtv = ""; | |
if (preg_match("/http:\/\/www.bilibili.tv\/video\/(av\\d+)/", $url, $matches)) { | |
$acgtv = $matches[1]; | |
$response = file_get_contents($url); | |
preg_match("/vid=(\\d+)/", $response, $matches); | |
$vid = $matches[1]; | |
} |
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
<?php | |
define('FFMPEG', '/usr/bin/ffmpeg'); | |
define('WGET', '/usr/bin/wget'); | |
set_time_limit(3600); /* we are working with small chunks of files */ | |
ignore_user_abort(true); /* do not terminate script execution if disconnect */ | |
@ini_set("output_buffering", 0); | |
@ini_set('implicit_flush', 1); | |
header("Connection: close"); | |
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); |
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
/** | |
* Local(e)Run: Run application in specified locale (chs as hard-coded). | |
* | |
* Originial purpose: run fterm.exe in non-Chinese(PRC) locale. | |
* | |
* Author: [email protected] | |
*/ | |
#include <stdio.h> | |
#include <tchar.h> |
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
/* | |
* Datapipe6 - ipv6-aware fork of datapipe.c | |
* Sample usage: | |
* datapipe6 localipv4addr 23 remoteipv6addr 23 | |
* | |
* | |
* Written by feuvan <[email protected]> | |
* Original ipv4 version by Jeff Lawson <[email protected]> | |
* See statement below | |
* |