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 / zenity-win32-test.patch
Created June 12, 2022 08:40
hack it and let Zenity run on Win32
From 5f77c68c183febcd20060e9531bbee88d4bb6de3 Mon Sep 17 00:00:00 2001
From: r2 <[email protected]>
Date: Sun, 12 Jun 2022 16:36:41 +0800
Subject: [PATCH] work around
HEAD: https://gitlab.gnome.org/GNOME/zenity/-/tree/d3b2a8728d11e3b0466bc7a1abc0c7a9794d5135
---
meson.build | 4 +++-
meson_post_install.py | 13 +++++++------
@holishing
holishing / centos8-9.sh
Created March 31, 2022 18:10 — forked from yodermk/centos8-9.sh
Commands to live-upgrade CentOS Streams 8 -> 9
# The general procedure here is adapted from the 7->8 guide here. https://www.tecmint.com/upgrade-centos-7-to-centos-8/
#
# It is a curated list of my bash history. I entered other commands so hopefully I got the right ones here.
yum upgrade
reboot
dnf install epel-release
dnf install rpmconf
dnf install yum-utils
rpmconf -a # answer "n" to both things
@holishing
holishing / web-servers.md
Created September 28, 2021 12:55 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@holishing
holishing / update-and-update-repo-desc.bash
Created July 28, 2021 16:03
update git repo desc for bash
#!/usr/bin/env bash
set -x
for i in $(ls -d git/*.git)
do
cd "$i"
git fetch
git_remote_url=$(git config --get remote.origin.url)
if [[ $git_remote_url == *"github.com"* ]]; then
@holishing
holishing / 0001-Add-patch-for-epel-to-lower-the-requirements-of-pypa.patch
Created February 23, 2021 12:30
Add patch for epel to lower the requirements of pyparsing
From eaaba5eee86a603b2a4f8ac84ae6dd2b60e8bc9b Mon Sep 17 00:00:00 2001
From: Sean Ho <[email protected]>
Date: Tue, 23 Feb 2021 12:17:02 +0000
Subject: [PATCH] Add patch for epel to lower the requirements of pyparsing
version
---
...ements-of-pyparsing-version-to-1.5.5.patch | 26 +++++++++++++++++++
python-certbot-nginx.spec | 9 +++++--
2 files changed, 33 insertions(+), 2 deletions(-)
@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 -
@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 / 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 / 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>