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 / installptt.sh
Created September 19, 2018 04:32
pttbbs for WSL batch file
#!/usr/bin/env bash
sudo groupadd --gid 99 bbs \
&& useradd -g bbs -s /bin/bash --uid 9999 bbs \
&& mkdir /home/bbs \
&& chown -R bbs:bbs /home/bbs
sudo apt update \
&& apt upgrade -y \
&& apt-get install -y --no-install-recommends \
bmake \
@holishing
holishing / tg_1.3.14_1.4.diff
Created October 5, 2018 04:36
Telegram: diff from 1.3.14 to 1.4
diff -ur work.1.3.14/tdesktop-1.3.14/.gitmodules work/tdesktop-1.4.0/.gitmodules
--- work.1.3.14/tdesktop-1.3.14/.gitmodules 2018-08-28 00:07:59.000000000 +0800
+++ work/tdesktop-1.4.0/.gitmodules 2018-09-28 21:08:38.000000000 +0800
@@ -13,3 +13,6 @@
[submodule "Telegram/ThirdParty/crl"]
path = Telegram/ThirdParty/crl
url = https://github.com/telegramdesktop/crl.git
+[submodule "Telegram/ThirdParty/xxHash"]
+ path = Telegram/ThirdParty/xxHash
+ url = https://github.com/Cyan4973/xxHash.git
@holishing
holishing / test_docker_volume.patch
Created December 21, 2018 15:41
Docker volume patch test for PttBBS
diff --git a/include/common.h b/include/common.h
index 36447c7a..ce806d62 100644
--- a/include/common.h
+++ b/include/common.h
@@ -14,7 +14,7 @@
#define FN_CONF_BANIP BBSHOME "/etc/banip.conf" // <B8>T<A4><EE><B3>s<BD>u<AA><BA> IP <A6>C<AA><ED>
// BBS Data File Names
-#define FN_PASSWD BBSHOME "/.PASSWDS" /* User records */
+#define FN_PASSWD BBSHOME "/index/.PASSWDS" /* User records */
@holishing
holishing / test_pygmt_debian_buster.md
Last active July 13, 2019 03:30
在 Debian Buster 上測試 PyGMT (不依賴 Anaconda Python 3)

在 Debian Buster 上測試 PyGMT (不依賴 Anaconda Python 3)

前言

或許直接抓 experimental 的包來測試更快,但為了方便研究與修改,這邊還是用把它抓下來重建套件的方式,之後看 PyGMT 也能不能打包成 dpkg 套件包吧

步驟

  1. 建置 deb package 需要:
@holishing
holishing / test_pygmt_debian_buster_en.md
Last active July 12, 2019 10:20
Testing PyGMT on Debian Buster without Anaconda Python 3

Testing PyGMT on Debian Buster without Anaconda Python 3

Steps

  1. To build debain package, we need:
apt install fakeroot dpkg-dev build-essential \
            devscripts debhelper git # with root
 # git for fetching debian salsa repo
@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 ==============================
@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 / 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 <[email protected]>
pkgname=inkscape
-pkgver=0.92.2
-pkgrel=3
@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 / 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