Skip to content

Instantly share code, notes, and snippets.

View holishing's full-sized avatar
🌴
On vacation

holishing holishing

🌴
On vacation
View GitHub Profile
@holishing
holishing / README.md
Created December 5, 2019 01:36
PttBBS b2u u2b Table (common/sys )

製作方法

抓 pttbbs 源碼下來用,當然你要只抓底下的 common/sys/big5_gen.py common/sys/big5data.tar.bz2 util/pyutil/big5_gen.py 也可以

git clone https://github.com/ptt/pttbbs
cd common/sys
./big5_gen.py > big5.c  ## 印出 c 語言形式的轉換表

cd ../..
@holishing
holishing / luajit_spec.diff
Created November 17, 2019 14:25
LuaJIT epel8 i686 build patch
diff --git a/luajit.spec b/luajit.spec
index db4e9fc..2cb4cac 100644
--- a/luajit.spec
+++ b/luajit.spec
@@ -137,6 +137,12 @@ sed -i -e '/install -m/s/-m/-p -m/' Makefile
# Q= - enable verbose output
# E= @: - disable @echo messages
# NOTE: we use amalgamated build as per documentation suggestion doc/install.html
+%ifarch i686
+make amalg CC="gcc -m32" Q= E=@: PREFIX=%{_prefix} TARGET_STRIP=: \
@holishing
holishing / 0001-add-python-sphinx-and-ghostscript-to-makedepends.patch
Last active November 15, 2019 15:18
Recommend patches for gmt AUR packages
From bd70876f70133b5c9dad50299009c65ab9d9213c Mon Sep 17 00:00:00 2001
From: holishing <holishingtest@gmail.com>
Date: Mon, 4 Nov 2019 07:20:29 +0800
Subject: [PATCH 1/3] add 'python-sphinx' and 'ghostscript' to makedepends
makedepends for documents of gmt
---
.SRCINFO | 7 +++----
PKGBUILD | 7 ++-----
2 files changed, 5 insertions(+), 9 deletions(-)
@holishing
holishing / rpm_el7to8.patch
Created November 8, 2019 13:17
OpenWebMail rpm package el7 2.54-2 to el8 2.54-3 diff
diff --git a/2543/el8_getmessage.pl.patch b/2543/el8_getmessage.pl.patch
new file mode 100644
index 0000000..995b867
--- /dev/null
+++ b/2543/el8_getmessage.pl.patch
@@ -0,0 +1,11 @@
+--- cgi-bin/openwebmail/shares/getmessage.pl 2007-08-10 09:35:42.000000000 -0700
++++ cgi-bin/openwebmail/shares/getmessage.pl.el8 2019-11-05 23:52:38.096207843 -0800
+@@ -89,7 +89,7 @@
+ $message{status} =~ s/\s//g;
@holishing
holishing / diff_el7_2541_2542.patch
Created November 8, 2019 13:08
OpenWebMail rpm package el7 2.54-1 to 2.54-2 diff
diff --git a/2541/openwebmail.spec b/2542/openwebmail.spec
index 129e10a..85f8d84 100644
--- a/2541/openwebmail.spec
+++ b/2542/openwebmail.spec
@@ -1,6 +1,6 @@
Name : openwebmail
Version : 2.54
-Release : 1.el7
+Release : 2.el7
BuildArch : noarch
@holishing
holishing / diff_2.53_2.54.patch
Created November 8, 2019 12:45
OpenWebMail 2.53 to 2.54 diff
diff --git a/openwebmail-2.53/cgi-bin/openwebmail/etc/defaults/openwebmail.conf b/openwebmail-2.54/cgi-bin/openwebmail/etc/defaults/openwebmail.conf
index 38ba0eb..4f43956 100644
--- a/openwebmail-2.53/cgi-bin/openwebmail/etc/defaults/openwebmail.conf
+++ b/openwebmail-2.54/cgi-bin/openwebmail/etc/defaults/openwebmail.conf
@@ -16,11 +16,11 @@
#
name OpenWebMail
-version 2.53
+version 2.54
@holishing
holishing / my_site.conf
Created November 6, 2019 16:13 — forked from lixingcong/my_site.conf
nginx autoindex timezone setting
location ^~ /demo {
alias /var/www/demo/;
autoindex on;
# set to on means use localtime
autoindex_localtime on;
# show size with unit 'MB' instead of 'Byte'
autoindex_exact_size off;
}
@holishing
holishing / inkscape_1.0beta1.patch
Last active September 19, 2019 12:41
Inkscape 1.0beta1 Archlinux Packaging
Index: PKGBUILD.cmake
===================================================================
--- PKGBUILD.cmake (revision 361122)
+++ PKGBUILD.cmake (working copy)
@@ -4,27 +4,25 @@
# Contributor: tobias <tobias@archlinux.org>
pkgname=inkscape
-pkgver=0.92.2
-pkgrel=3
@holishing
holishing / compare.diff
Created August 25, 2019 19:04
license diff between gtk license and lgpl2.1
diff --git a/COPYING b/lgpl-2.1.txt
index 5bc8fb2..4362b49 100644
--- a/COPYING
+++ b/lgpl-2.1.txt
@@ -1,13 +1,14 @@
- GNU LIBRARY GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
@holishing
holishing / pygmt.test.log
Created July 12, 2019 10:39
PyGMT test error log
Loaded libgmt:
binary dir: /home/rau/Tools/pygmt/bin
cores: 4
grid layout: rows
library path: /usr/lib/x86_64-linux-gnu/libgmt.so
padding: 2
plugin dir: /usr/lib/x86_64-linux-gnu/gmt/plugins
share dir: /usr/share/gmt
version: 6.0.0rc2
============================= test session starts ==============================