Skip to content

Instantly share code, notes, and snippets.

@okhowang
okhowang / hexieshe.user.js
Last active November 9, 2024 18:22
自动整合分页的文章
// ==UserScript==
// @name hexieshe page
// @namespace http://tampermonkey.net/
// @version 0.1
// @description hexieshe page
// @author okhowang
// @match https://inbangbang.com/*
// @match https://www.hexieshe.com/*
// @match https://www.hexieshe.cn/*
// @icon https://www.google.com/s2/favicons?domain=hexieshe.com
@okhowang
okhowang / # gettext - 2019-06-20_15-01-03.txt
Created June 20, 2019 07:04
gettext on "CentOS Linux release 7.2 (Final)" - Homebrew build logs
Homebrew build logs for gettext on "CentOS Linux release 7.2 (Final)"
Build date: 2019-06-20 15:01:03
@okhowang
okhowang / # llvm - 2018-06-22_16-20-43.txt
Created June 22, 2018 08:38
llvm on 2.6.16.60-0.21-domU-101126 - Homebrew build logs
Homebrew build logs for llvm on 2.6.16.60-0.21-domU-101126
Build date: 2018-06-22 16:20:43
@okhowang
okhowang / # llvm - 2018-06-22_15-50-04.txt
Created June 22, 2018 07:57
llvm on 2.6.16.60-0.21-domU-101126 - Homebrew build logs
Homebrew build logs for llvm on 2.6.16.60-0.21-domU-101126
Build date: 2018-06-22 15:50:04
@okhowang
okhowang / # gdbm - 2018-06-22_09-59-57.txt
Created June 22, 2018 02:03
gdbm on 2.6.16.60-0.21-domU-101126 - Homebrew build logs
Homebrew build logs for gdbm on 2.6.16.60-0.21-domU-101126
Build date: 2018-06-22 09:59:57
diff -ru binutils-2.28/gold/testsuite/Makefile.am binutils-2.28.fixed/gold/testsuite/Makefile.am
--- binutils-2.28/gold/testsuite/Makefile.am 2017-03-02 16:23:53.000000000 +0800
+++ binutils-2.28.fixed/gold/testsuite/Makefile.am 2017-04-05 14:01:03.000000000 +0800
@@ -1340,7 +1340,7 @@
BUILT_SOURCES += many_sections_define.h
MOSTLYCLEANFILES += many_sections_define.h
many_sections_define.h:
- (for i in `seq 1 70000`; do \
+ (for((i = 1;i<70000;i++)); do \
echo "int var_$$i __attribute__((section(\"section_$$i\"))) = $$i;"; \
@okhowang
okhowang / glibc_ld.so.preload.patch
Last active February 14, 2017 02:14
glibc_ld.so.preload
diff -ru glibc-2.19.raw/elf/rtld.c glibc-2.19/elf/rtld.c
--- glibc-2.19.raw/elf/rtld.c 2014-02-07 17:04:38.000000000 +0800
+++ glibc-2.19/elf/rtld.c 2017-02-14 10:02:43.025200000 +0800
@@ -1642,7 +1642,7 @@
open(). So we do this first. If it succeeds we do almost twice
the work but this does not matter, since it is not for production
use. */
- static const char preload_file[] = "/etc/ld.so.preload";
+ static const char preload_file[] = SYSCONFDIR "/ld.so.preload";
if (__builtin_expect (__access (preload_file, R_OK) == 0, 0))
@okhowang
okhowang / lua.patch
Last active February 16, 2019 20:42
lua 5.2 so patch
diff -Naur lua-5.2.4.origin/Makefile lua-5.2.4/Makefile
--- lua-5.2.4.origin/Makefile 2015-02-24 09:28:54.000000000 +0800
+++ lua-5.2.4/Makefile 2017-02-04 10:08:40.000000000 +0800
@@ -47,12 +47,13 @@
# Lua version and release.
V= 5.2
R= $V.4
+TO_LIB+= liblua.so liblua.so.$(V) liblua.so.$(R)
# Targets start here.