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 / pttbbs_vote_1stpatch.md
Last active April 19, 2020 21:55
vote log (after 1st patch)

Manually Test Records

Previous settings of 1st Vote

Previous settings
第 1 號投票
請輸入投票名稱:投票一號
@holishing
holishing / openssh-build-static.sh
Created May 19, 2020 17:01 — forked from fumiyas/openssh-build-static.sh
Build OpenSSH with static linked zlib and OpenSSL libraries
#!/bin/sh
set -u
set -e
umask 0077
prefix="/opt/openssh"
top="$(pwd)"
root="$top/root"
build="$top/build"
@holishing
holishing / linuxjailonbsd.md
Last active January 8, 2021 05:59
linuxjailonbsd (tested on 2019/10, tested chroot in FreeBSD 12.2 on 2021/1)
@holishing
holishing / README.md
Created August 28, 2020 15:44 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@holishing
holishing / gist:4375f4770233e131a3cc04a328261279
Created January 10, 2021 17:48
openrc_on_debian_buster_linuxalator_jail_on_FreeBSD.log
rc off logging started at Mon Jan 11 01:43:56 2021
* Caching service dependencies ...
[ ok ]
[....] Stopping OpenBSD Secure Shell server: sshd[ ok .
[....] Stopping MTA:[ ok .
ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken
[....] Stopping system message bus: dbus[ ok .
[....] Stopping periodic command scheduler: cron[ ok .
[....] Stopping enhanced syslogd: rsyslogd[ ok .
@holishing
holishing / openrc_on_alpine_linuxulator_jail_on_FreeBSD.log
Created January 10, 2021 18:44
openrc_on_alpine_linuxulator_jail_on_FreeBSD.log
rc shutdown logging started at Mon Jan 11 02:38:23 2021
* Caching service dependencies ...
Service `hwdrivers' needs non existent service `dev'
Service `machine-id' needs non existent service `dev'
[ ok ]
* Unmounting loop devices
* Unmounting filesystems
rc shutdown logging stopped at Mon Jan 11 02:38:24 2021
@holishing
holishing / debian10_kvm.xml
Created February 13, 2021 11:56
libvirt config of debian10 guest
<domain type="kvm">
<name>debian10</name>
<uuid>fb719f1c-435e-429f-ac49-240e1c51766a</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://debian.org/debian/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">4194304</memory>
<currentMemory unit="KiB">4194304</currentMemory>
@holishing
holishing / dream_logtest.patch
Created February 19, 2021 14:17
dreambbs log usage test
From 5eddb5339b3db8352a3b123f23c05cb21844950f Mon Sep 17 00:00:00 2001
From: "0@0" <test@test>
Date: Fri, 19 Feb 2021 22:14:57 +0800
Subject: [PATCH 1/2] log test
---
maple/bbsd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/maple/bbsd.c b/maple/bbsd.c
@holishing
holishing / 0001-Revert-fix-IPv6-socket-fix-misuse-of-AF_UNSPEC-for-s.patch
Created February 19, 2021 14:20
tmp workaround for dreambbs docker not working in pure ipv4 env
From b0c620994d90522ef00309b94d53091e063516f7 Mon Sep 17 00:00:00 2001
From: "0@0" <test@test>
Date: Fri, 19 Feb 2021 22:18:29 +0800
Subject: [PATCH] Revert "fix(IPv6 socket): fix misuse of AF_UNSPEC for server
socket"
This reverts commit 2e3fe5fc1e462b7e2bb75ff071b09cfa4e850c65.
---
innbbsd/channel.c | 2 +-
maple/bbsd.c | 10 ++++------
@holishing
holishing / Dockerfile
Created February 21, 2021 14:38 — forked from christianberg/Dockerfile
Sharing a unix socket between a Docker container and it's host
FROM ubuntu
RUN apt-get update
RUN apt-get install -y socat
VOLUME /foo
CMD socat UNIX-LISTEN:/foo/bar.sock -