This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright 2015-2021 Rivoreo | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the | |
# "Software"), to deal in the Software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, | |
# distribute, sublicense, and/or sell copies of the Software, and to | |
# permit persons to whom the Software is furnished to do so, subject to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Put followings into /etc/crontab | |
# LANG=C.UTF-8 | |
# LC_TIME=C | |
# 10 8 * * 1 root dt=`date +\%F.\%H-\%M` && tmux -L download-and-build-gcc-10-snapshot new-session -d "exec script -t -c 'exec sh /home/src/download-and-build-gcc-10-snapshot.sh' /home/src/download-and-build-gcc-10-snapshot.log.$dt 2> /home/src/download-and-build-gcc-10-snapshot.log.$dt.time" | |
set -x | |
set -e | |
GCC_SNAPSHOT_URL=http://ftp.tsukuba.wide.ad.jp/software/gcc/snapshots/LATEST-10/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file has no copyright assigned and is placed in the Public Domain. | |
# No warranty is given. | |
# Usage: kgdb -w < clear-all-vnodes-text-flag.gdb | |
set $p = mountlist.tqh_first | |
while $p != 0 | |
set $v = $p->mnt_nvnodelist.tqh_first | |
while $v != 0 | |
if $v->v_type == VREG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright 2015-2019 Rivoreo | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the | |
# "Software"), to deal in the Software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, | |
# distribute, sublicense, and/or sell copies of the Software, and to | |
# permit persons to whom the Software is furnished to do so, subject to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Ctrl-Alt-Del warning for systemd. | |
# Override default CAD action of rebooting system. | |
# Copyright 2015-2020 Rivoreo | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the | |
# "Software"), to deal in the Software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2015-2024 Rivoreo | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An experiment to make a Multiboot-compliant kFreeBSD i386 image. | |
Copyright 2019 Rivoreo | |
Added code are released under the FreeBSD license (2-clause). | |
diff -ru --exclude-from freebsd-src-diff-exclude-names --new-file a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c | |
--- a/sys/boot/common/load_elf.c 2016-03-25 09:09:27.000000000 +0800 | |
+++ b/sys/boot/common/load_elf.c 2019-05-15 18:46:30.670084560 +0800 | |
@@ -161,6 +161,9 @@ | |
Elf_Ehdr *ehdr; | |
int err; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru qemu-2.12.1.orig/ui/sdl.c qemu-2.12.1/ui/sdl.c | |
--- qemu-2.12.1.orig/ui/sdl.c 2018-08-03 05:48:53.000000000 +0800 | |
+++ qemu-2.12.1/ui/sdl.c 2019-01-17 18:48:26.806839746 +0800 | |
@@ -335,11 +335,11 @@ | |
status = " [Stopped]"; | |
else if (gui_grab) { | |
if (alt_grab) | |
- status = " - Press Ctrl-Alt-Shift-G to exit mouse grab"; | |
+ status = " - Press Ctrl-Alt-Shift to exit mouse grab"; | |
else if (ctrl_grab) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
[ -n "$BASH" ] && set +H | |
if ! grep -q -e ^9\\. -e ^10\\. /etc/debian_version; then | |
echo "Should be Debian 9 or 10" 1>&2 | |
exit 1 | |
fi | |
if [ "`dpkg --print-architecture`" != amd64 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#!/bin/sh | |
# pstree | |
# Copyright 2015-2018 Rivoreo | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the | |
# "Software"), to deal in the Software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, |