Skip to content

Instantly share code, notes, and snippets.

/* Copyright 2015-2016 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:
#!/bin/bash
# CVE-2010-3847 Exploit
# Copyright 2015-2016 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
@Low-power
Low-power / create-ct.sh
Created March 19, 2017 00:54
create-sh.sh script for PVE
#!/bin/sh
# Create a containter in Proxmox Virtual Environment with ZFS support
# Copyright 2015-2017 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
@Low-power
Low-power / mount.nfs
Created November 27, 2017 18:54
Simple mount helper program for mounting NFSv4 in GNU/Linux
#!/bin/sh
# Simple mount helper program for mounting NFSv4 in GNU/Linux
# Copyright 2015-2017 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
@Low-power
Low-power / js
Last active April 23, 2018 05:18
Nodejs wrapper to support .noderc.js and dynamic prompt.
#!/bin/sh
# A Node.js wrapper
# 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,
# distribute, sublicense, and/or sell copies of the Software, and to
/* Simple command interface to the nmount(2) system call
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,
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:
@Low-power
Low-power / chatproxy.c
Last active May 2, 2020 02:26
Chatroom proxy for SSHOUT and ssh-chat revision 24
/* Chatroom relay between SSHOUT and ssh-chat
* Copyright 2015-2020 Rivoreo
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
#!/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,
#!/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
@Low-power
Low-power / qemu-2.12.1-revert-exit-grab-ctrl-alt-g-back-to-ctrl-alt.diff
Last active January 17, 2019 10:55
Revent changes in QEMU SDL user interface hotkey for exiting mouse grab
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)