- A PowerShell function to replace things and use Git in the process.
- Driver code originated from https://mcpmag.com/articles/2018/08/08/replace-text-with-powershell.aspx
- Requested by OMG member
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
#!/usr/bin/env bash | |
# SPDX-FileCopyrightText: 2024 Tomodachi94 | |
# | |
# SPDX-License-Identifier: MIT | |
# license_report.sh: show all files and their inline REUSE-specified licenses | |
# Requirements: bash, ripgrep (https://github.com/BurntSushi/ripgrep), the REUSE tool (https://github.com/fsfe/reuse-tool), and some POSIX utilities (sed, echo) | |
lint_output=$(reuse lint | rg -F "* Used licenses: " | sed 's/\* Used licenses\: //g') | |
IFS=',' read -ra LICENSES <<< "$lint_output" | |
echo "${LICENSES[@]}" | |
for license in "${LICENSES[@]}"; do |
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
#!/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 |
Register names for CraftOS-PC computers and then launch them with fzf.
- 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)
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
/* ==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") { |
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.)
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.
- 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
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
local shell = shell | |
if _HOST:find("Recrafted") then | |
shell = require("shell") | |
end | |
shell.run("/bin/unix-path-bootstrap.lua") |