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 is free and unencumbered software released into the public domain. | |
| # For more information, please refer to <https://unlicense.org> | |
| function Get-IC10Hash { | |
| <# | |
| .SYNOPSIS | |
| Generate IC10 hash values for Stationeers game objects. | |
| .DESCRIPTION | |
| Converts a text string to an IC10 hash value (signed 32-bit CRC32) and its hex notation. |
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 is free and unencumbered software released into the public domain. | |
| # For more information, please refer to <https://unlicense.org> | |
| function Get-IC10Hash { | |
| <# | |
| .SYNOPSIS | |
| Generate IC10 hash values for Stationeers game objects. | |
| .DESCRIPTION | |
| Converts a text string to an IC10 hash value (signed 32-bit CRC32) and its hex notation. |
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 is free and unencumbered software released into the public domain. | |
| # For more information, please refer to <https://unlicense.org> | |
| stationeers.hash() { | |
| python3 -c " | |
| import zlib | |
| def ic10_hash(text): | |
| crc32 = zlib.crc32(text.encode('utf-8')) & 0xFFFFFFFF | |
| return crc32 if crc32 < 0x80000000 else crc32 - 0x100000000 |
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 is free and unencumbered software released into the public domain. | |
| # For more information, please refer to <https://unlicense.org> | |
| stationeers.hash() { | |
| # Get CRC32 as unsigned 32-bit hex value | |
| local crc32_hex=$(printf "%s" "$1" | rhash --crc32 - -p '%C') | |
| # Convert hex to decimal unsigned | |
| local crc32_dec=$((16#$crc32_hex)) |
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
| // ==UserScript== | |
| // @name Immich v2.2.3 Version Notification TEMPORARY WORKAROUND | |
| // @namespace https://github.com/zatricky | |
| // @version 0.1 | |
| // @description Prevents rendering loop from version notification bug in Immich v2.2.3. ONLY LET THIS RUN ONCE - THEN DISABLE IT ONCE YOU ARE ABLE TO USE IMMICH AGAIN | |
| // @author https://github.com/zatricky | |
| // @match https://your-immich-host/* | |
| // @match https://your-immich-host/admin/* | |
| // @match http://your-immich-host:2283/* | |
| // @match http://your-immich-host:2283/admin/* |
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 python3 | |
| """ Custom remote transmission server configurations | |
| """ | |
| from transmission_rpc import Client | |
| # See https://transmission-rpc.readthedocs.io/ | |
| PROTOCOL="https" | |
| USERNAME="user" | |
| PASSWORD="password" | |
| HOST="remote.server.example.net" |
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
| bdseal dr7 6 | |
| add r7 r7 1 | |
| mod r7 r7 6 | |
| bgtz 7 r7 | |
| yield | |
| j 0 | |
| ls r4 dr7 0 Occupied | |
| l r5 dr7 Activate | |
| seqz r0 r5 | |
| and r6 r4 r0 |
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 | |
| set -e | |
| set -u | |
| #set -x | |
| diskusage () { # (directory) | |
| pushd "$@" > /dev/null | |
| echo "## $(pwd) ##" | |
| du -xk --max-depth=1 | sort -nr | awk ' | |
| BEGIN { |
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 | |
| [[ "$(id -u)" -eq 0 ]] || (echo "Got root?" ; exit 5) | |
| command -v btrfs > /dev/null || (echo "Command not found: btrfs" ; exit 4) | |
| for folder in $* ; do | |
| mount | awk '{print $3}' | grep "$(pwd)/${folder}" && echo "${folder} has a submount?" && exit 1 | |
| btrfs sub list . | grep "${PWD##*/}/${folder}" && echo "${folder} has a subvolume?" && exit 2 | |
| [ -e ${folder}.temp ] && echo "${folder}.temp already exists?" && exit 3 || true | |
| mv ${folder} ${folder}.temp | |
| btrfs sub create ${folder} |
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 | |
| # | |
| # NAME: mkscript | |
| # Description: Creates a basic script using itself as a template | |
| # Created: 2013-09-12 | |
| # Updated: 2018-06-02 | |
| # Version: 0.14.2 | |
| # Copyright (C) Brendan Hide 2013-2018 | |
| # License: MIT License (Expat) | |
| # See https://opensource.org/licenses/MIT and https://en.wikipedia.org/wiki/MIT_License |
NewerOlder