Skip to content

Instantly share code, notes, and snippets.

View tomodachi94's full-sized avatar

Tomo tomodachi94

View GitHub Profile
@tomodachi94
tomodachi94 / detection_script.sh
Last active March 30, 2024 04:11
A hopefully-helpful diagram to help you determine a course of action about the liblzma thing.
#!/usr/bin/env bash
set -eu
# find path to liblzma used by sshd
path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')"
# does it even exist?
if [ -z "$path" ]
then
@tomodachi94
tomodachi94 / README.md
Last active March 28, 2024 04:13
craftos-select: register names for CraftOS-PC computers and then launch them

craftos-select

Register names for CraftOS-PC computers and then launch them with fzf.

Dependencies

  • CraftOS-PC (with the CLI accessible)
  • awk (GNU awk was used in development, but any compliant version should suffice)
  • fzf (for picking the computer from the registry)
  • jq (for manipulating the registry)
/* ==UserStyle==
@name Cinny Compact
@namespace gist.github.com/tomodachi94
@version 1.0.0
@description Reduce spacing on Cinny, a Matrix client
@author https://floss.social/@tomodachi94
@updateURL https://gist.github.com/tomodachi94/a6595023cd84051ac36e93fd85797c30/raw
==/UserStyle== */
@-moz-document domain("app.cinny.in") {
@tomodachi94
tomodachi94 / README.md
Created December 9, 2022 19:16
Startup.d: Portable startup directory

Startup.d

Usage

Place this file into the startup file: Leave off the extension, as it's more portable across legacy mod versions.

Place files you want to run into /startup.d You may place folders there as well, but they must have an init.lua inside of them.

@tomodachi94
tomodachi94 / README.md
Last active December 9, 2022 02:40
LockdownMode.lua: Get off of my lawn!

This program is intended for research purposes. Use at your own risk.

In case it isn't obvious, this program is malicious by nature. Do not execute this unless you know what you're doing! (It's only about 20 lines.)

Usage

This piece of malware locks you out in as many ways as it can.

This software is pretty merciful in its default configuration. It preserves the settings that were previously set and doesn't delete files.

@tomodachi94
tomodachi94 / PRIOR_ART.md
Created November 16, 2022 05:07
Prior art for ComputerCraft package managers, in no particular order
  • Lyqyd/packman
  • MCJack123/lua-dpkg
  • keplar155c/opus's package manager
  • Lupus590-CC/LuaStoned
  • danports/amber
  • PentagonLP/ccpt
  • pixelcmtd/cpm
  • Tomodachi94/ccpkg-packages
  • Gibbo3771/ccpkg
  • TangentFox's cc-pkg
@tomodachi94
tomodachi94 / unix-path-bootstrap-startup.lua
Last active December 6, 2022 00:21
Bootstrap Unix-like directories onto a ComputerCraft computer's path
local shell = shell
if _HOST:find("Recrafted") then
shell = require("shell")
end
shell.run("/bin/unix-path-bootstrap.lua")