Skip to content

Instantly share code, notes, and snippets.

@Sarverott
Last active May 14, 2025 10:30
Show Gist options
  • Save Sarverott/a9933eea3dd0e4fc54e8ff275bd79dcf to your computer and use it in GitHub Desktop.
Save Sarverott/a9933eea3dd0e4fc54e8ff275bd79dcf to your computer and use it in GitHub Desktop.
craftset sample for project's ".craft" to maintainer and developer repository helper toolbox that was created to meet the high standard and wide range of areas that concern the requirements for routine work of technomancers. Standard craftset of BOS mainframe - https://github.com/Sarverott/blacksmith-organization-system [FOR_UCDI_NOTE: test exam…
[craftset]
description = standard craftset for BOS workshop mainframe system - https://github.com/Sarverott/blacksmith-organization-system
craftset_reporef = https://gist.github.com/a9933eea3dd0e4fc54e8ff275bd79dcf.git
version = 1.4.2.5
unixusat = 1747218248256
selfcheck_hallow = 2bd95f090a034610e671901f42875ab6::f8af429b61593732b16ab92513446af0d4783318::61d04f5d3c17b929b908a44eb1192b5c6040aa0f7320f5c341abb325debdd331
selfdev_hallow = 35d92f35b63966cf7f719eb245a7905d::d0c90b25ebeba6e25d9e911a9c876d99d2efedd0::bbe4eda68288b902b96b137d25e6eb21643f32d391563f0a3c485740bef67f18
selfrun_hallow = 800102c81d6e218a09dec3a08ded206b::6555466f8c80c08f0ae8e134dfa89f5ef980faa0::b861cd77820b3743d83c9fc84c5466ec3ed9eb35aa906cbedac8520761244dcc
omnis_blessing = false
[hallowed]
1173489464 = 1747218248256---c9c86d6fd02dff9c1164ad797f82bc68::a09e4ca7e1294b43150e2be704e3058d2a893464::27011ec8e84bf200c92960b7af1d6ad255164131e62524446be733b476f21bc9---1.4.2.5
634062158 = 1747216333137---221cdc89fef22dd834a082d7fb4e8596::dbd9e9ddcbe284a98bd03ac42f2ea3a65aaa6a00::ab382f5f5bf7cd0f1a5a164eec73bafcf59ae2657ef72e463ca5b7ebd47e1d26---1.4.2.2
717096361 = 1747216333316---b04536a52ef59172e255e8efdf89e98a::2593dd863ce2bf381669205bd7816708668917ec::84ab16251c5ff9696e061ef5d4b249a2c856e39d3490e9cbd00cbca4dc6a7767---1.4.2.3
450561129 = 1747210653424---d41d8cd98f00b204e9800998ecf8427e::da39a3ee5e6b4b0d3255bfef95601890afd80709::e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855---1.2.12.4
625280308 = 1747216333497---4e9964554ad4bdd554f03b1619d73380::cd85958807912bc05bb8fee72d4355f00778a0e3::85a6d33f7d0f74e9063cf2156035ec000990c4a3b8eed93285058d1b65fe260b---1.4.2.4
951125643 = 1747210653779---c6c656f9e53fc1900955095b9ce41e0c::52ee2a2397af071fb920d3198c8be446bb87772f::ac696389d28cdb312e4242256933f3ed1b0c2af46cfede5559a789cd04a0dd1b---1.2.12.6
1333659587 = 1747210653954---b16aecca8a3ce8156c4bc5128fb4d99c::e2fce91aa82f1122f80284e8b26b73deaef57f95::c637528d0edf376e809c72da09c48e6399734967843a097366b9a28548446b88---1.2.12.7
1206126439 = 1747210654131---9bdb07f00b1c7696870f77efd874c76c::66e614a710311615ec2ca51412ca1a7ec2fb7f90::fdf76babaced4ca637b56ed171553d1b09aebfea1398bafaebe9237656bfa905---1.2.12.8
912524896 = 1747210654308---d41d8cd98f00b204e9800998ecf8427e::da39a3ee5e6b4b0d3255bfef95601890afd80709::e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855---1.2.12.9
214893230 = 1747210654484---a5124f531d89d4cc5e89bfa932d42910::da0774f430164b8d56274c681e5eb446b9b348be::f13c9dc22a83d63fe8d8747657a0d097393516af82405b0453fb649140e03f76---1.2.12.10
1751058659 = 1747210654660---fb2df5bc9bd651c4aa2476b9ceb4dff5::675474f4062d98508ceea454ecf46487549eb30d::f0fa94ae923c752cceaebd0c4caf54ff132de417bc555421d40ebae154d78f7b---1.2.12.11
818808343 = 1747210652137---ebbbff1e505781872a1b525c20ec44c4::752d20a96f25a470ef4b5b0f6954c0ca54f18a34::87137a1b7b3504f5c63d418e372ab52ee90962a32d1e359740c875ca4072e1a4---1.2.12.0
2490501774 = 1747214486566---0009774af020479f6484827bafbd0023::98fac785658b99ebf4db4a87a50f58b66624ecbc::80c10859ad24dc5a8cd9d0142d1f91d33fb59e08ee109eb92205b4681b968185---1.4.1.0
2018511274 = 1747216161684---0009774af020479f6484827bafbd0023::98fac785658b99ebf4db4a87a50f58b66624ecbc::80c10859ad24dc5a8cd9d0142d1f91d33fb59e08ee109eb92205b4681b968185---1.4.2.0
#!/bin/sh
# by Sett Sarverott
# to Apokryf Institute
# 2025 [UNIXUSAT=1747166305814]
#!/bin/sh
# by Sett Sarverott
# to Apokryf Institute
# 2025 [UNIXUSAT=1747166305814]
CRAFTSET_RUNNER=$(readlink -f $0)
CRAFTSET_DIR=$(dirname "$CRAFTSET_RUNNER")
TMP_SELFCRAFT_DIR=$(mktemp -d)
sha1sum * > $TMP_SELFCRAFT_DIR/triangulum.sha1.txt
sha256sum * > $TMP_SELFCRAFT_DIR/triangulum.sha256.txt
md5sum * > $TMP_SELFCRAFT_DIR/triangulum.md5.txt
ls -1 > $TMP_SELFCRAFT_DIR/sanctified.txt
python3 ./mr_hefaisto.py $TMP_SELFCRAFT_DIR
#!/bin/sh
# by Sett Sarverott
# to Apokryf Institute
# 2025 [UNIXUSAT=1747166305814]
CRAFTSET_RUNNER=$(readlink -f $0)
CRAFTSET_DIR=$(dirname "$CRAFTSET_RUNNER")
TMP_SELFCRAFT_DIR=$(mktemp -d)
sha1sum * >
type = "sign-by-oath"
category = "craftset"
UNIXUSAT = 1747166305814
entrycode = ""
[blessing]
by = ""
oathseal = ""
haikus = []
signhash = ""
target = ".craftset.cfg"
consecrated_triangulum = ["md5","sha1","sha256"]
unattached_thoughts = []

hefajsto

read omnis
get grich 

on change
for file changed
    git fetch
    git pull
    increment file's grih_ver 
    include updated hash triangulats
    increment total grih_ver
    write out versions
    sign omnis
    git add file
    git add .omnis
    make commit
    git fetch
    git push
    # tumblr post
    # twitter post
{
"test_namespace":{
"rsa_pub":"",
"host":"",
"index":{
"craftset_tester":""
},
"triangulum":""
}
}
{
"pre-applypatch.sample": "cb78aa7e9b9c146e5db65d86dd83f04e2b6942a06fab50c704a0fd900683f3b6ad1164e74afe2f267f6da91cdff0b9ab07713e12cefc6f8d741b5df194f4fda6",
"fsmonitor-watchman.sample": "5168643c1768ec83554a9066754507a781b6d14251a46a469222d462efc6ca87a72c90679154e8a723349c91e7772b32ac9b08dfe313cded0ee0a6f17885079e",
"pre-push.sample": "cc98bbe0e3865e2023af04416e10689e3aecd3f3928cf90c2acc0d3d7306388886779025c8967c8ea198af1f4fe29d16c65d4e1d546c7a8fa513f5ba7df16850",
"push-to-checkout.sample": "586efb6a206f73d8a94561266153a624e2753830bc431a283bed998c46ac00a9df4995ddfd0aa852b1a22b4672c80f2c33cee3fe2e3321e392ff4cef26dbf75e",
"pre-rebase.sample": "00d21d5d72386c3d9b5a1c36ba85201f730556a8295d4353af54af7892ab81010d42aff209ec1fda61c54e4dda3737cea5fda64f09d40ce5004ae28239565025",
"sendemail-validate.sample": "a19dbbc2ef6c367aadbfb900ae58c377d88ac9b6c0ac6de49c962d44d993418875f64143defda56bae8d0697dcd15be2928d32aa77508d3958769f18a4a53154",
"prepare-commit-msg.sample": "50ec8a0dd98427e80a82a8d8ce44462a845876e1594c9d0e89483ce9a8aaad616edea0e5c45c1bb69d8fe7f520c6f2260d6fa350d77b400899c3ae375e965bfb",
"update.sample": "be3780974589d06eddba6fa0aa15a3e3dfe390e2827a1a6ae5cb83d6ac47e79ef9b1bbb53f067372f8dc70db0350d3770e78537fd3cfe734200ff824eca4cada",
"pre-merge-commit.sample": "e4dc204494f5062efa3032b00c64707a4f38978040482501b3e085f071e3ee5a9737d537e6a52002ceb4ebe2bfe09e555c5d969581e80b3eba2a922015c67960",
"pre-receive.sample": "ee08c11fab7e896b2e09c241954ba7640338b12c75cd8040daf053c31b2f22236d7a0deac736f89d305236312fdb4f560a38d4d8debdcc9dcdd23b2d975907d5",
"commit-msg.sample": "d6bb7fa747f4625adf1877f546565cbe812ca7dd4168f7e9068e6732555d8737eba549546cf5946649e3f38de82d173aaf9c160a4c9f9445655258b4c5f955eb",
"applypatch-msg.sample": "536cce804d84e25813993efdd240537b52d00ce9cdcecf1982f85096d56a521290104c825c00b370b2752201952a9616a3f4e28c5d27a5b4e4842101a2ff9bee",
"post-update.sample": "473ad124642571656276bf83b9ff63ab1804d3c23a5bdae52391c6f70a894849ac60c10c9d31deff3938922ce83b68b1e60c11592bbf7ea503f4acd39968cefa",
"pre-commit.sample": "7cfb0a58abed1915ee1b261a1c661c7e2deea4e9227f77f5875af1a25c82e19245ba12dcb2f5052d994d0e81a3465daf37f9d8c670e17f9c96742f60fdfaaa56"
}
{
"pre-applypatch.sample": "cb78aa7e9b9c146e5db65d86dd83f04e2b6942a06fab50c704a0fd900683f3b6ad1164e74afe2f267f6da91cdff0b9ab07713e12cefc6f8d741b5df194f4fda6",
"fsmonitor-watchman.sample": "5168643c1768ec83554a9066754507a781b6d14251a46a469222d462efc6ca87a72c90679154e8a723349c91e7772b32ac9b08dfe313cded0ee0a6f17885079e",
"pre-push.sample": "cc98bbe0e3865e2023af04416e10689e3aecd3f3928cf90c2acc0d3d7306388886779025c8967c8ea198af1f4fe29d16c65d4e1d546c7a8fa513f5ba7df16850",
"push-to-checkout.sample": "586efb6a206f73d8a94561266153a624e2753830bc431a283bed998c46ac00a9df4995ddfd0aa852b1a22b4672c80f2c33cee3fe2e3321e392ff4cef26dbf75e",
"pre-rebase.sample": "00d21d5d72386c3d9b5a1c36ba85201f730556a8295d4353af54af7892ab81010d42aff209ec1fda61c54e4dda3737cea5fda64f09d40ce5004ae28239565025",
"sendemail-validate.sample": "a19dbbc2ef6c367aadbfb900ae58c377d88ac9b6c0ac6de49c962d44d993418875f64143defda56bae8d0697dcd15be2928d32aa77508d3958769f18a4a53154",
"prepare-commit-msg.sample": "50ec8a0dd98427e80a82a8d8ce44462a845876e1594c9d0e89483ce9a8aaad616edea0e5c45c1bb69d8fe7f520c6f2260d6fa350d77b400899c3ae375e965bfb",
"update.sample": "be3780974589d06eddba6fa0aa15a3e3dfe390e2827a1a6ae5cb83d6ac47e79ef9b1bbb53f067372f8dc70db0350d3770e78537fd3cfe734200ff824eca4cada",
"pre-merge-commit.sample": "e4dc204494f5062efa3032b00c64707a4f38978040482501b3e085f071e3ee5a9737d537e6a52002ceb4ebe2bfe09e555c5d969581e80b3eba2a922015c67960",
"pre-receive.sample": "ee08c11fab7e896b2e09c241954ba7640338b12c75cd8040daf053c31b2f22236d7a0deac736f89d305236312fdb4f560a38d4d8debdcc9dcdd23b2d975907d5",
"commit-msg.sample": "d6bb7fa747f4625adf1877f546565cbe812ca7dd4168f7e9068e6732555d8737eba549546cf5946649e3f38de82d173aaf9c160a4c9f9445655258b4c5f955eb",
"applypatch-msg.sample": "536cce804d84e25813993efdd240537b52d00ce9cdcecf1982f85096d56a521290104c825c00b370b2752201952a9616a3f4e28c5d27a5b4e4842101a2ff9bee",
"post-update.sample": "473ad124642571656276bf83b9ff63ab1804d3c23a5bdae52391c6f70a894849ac60c10c9d31deff3938922ce83b68b1e60c11592bbf7ea503f4acd39968cefa",
"pre-commit.sample": "7cfb0a58abed1915ee1b261a1c661c7e2deea4e9227f77f5875af1a25c82e19245ba12dcb2f5052d994d0e81a3465daf37f9d8c670e17f9c96742f60fdfaaa56"
}
#!/bin/sh
#echo "npm init / docker init etc.
# yet another separed update
git submodule add --name craftset https://gist.github.com/a9933eea3dd0e4fc54e8ff275bd79dcf.git .craft
// TODO: https://gist.github.com/Sarverott/a1d6bb152f628c718cc36fbea6e99e91
// separed commit
import tomllib
import pathlib
import configparser
import json
import os
import zlib
import sys
import hashlib
omnispath = pathlib.Path(__file__) / ".." / ".omnis.toml"
omnis_file = tomllib.load(open(omnispath.resolve(), "rb"))
print(omnis_file)
cfg_path = pathlib.Path(__file__) / ".." / ".craftset.cfg"
omnis_write = configparser.ConfigParser()
#hallows = os.popen("ls -1").read().split("\n")
omnis_write.read(cfg_path.resolve())
hallows = [hallowed for hallowed in open(f"{sys.argv[1]}/sanctified.txt").read().split("\n") if (pathlib.Path(__file__)/".."/hallowed).resolve().is_file()]
triangulums_raw_record = {}
for hashtype in ["sha1", "sha256", "md5"]:
triangulums_raw_record[hashtype] = dict([line.split()[::-1] for line in open(f"{sys.argv[1]}/triangulum.{hashtype}.txt").read().split("\n") if len(line.split())==2])
print(triangulums_raw_record)
#for checkexist in hallows:
# checkfile = pathlib.Path(__file__) / ".." / checkexist
# if checkfile.resolve().is_file():
# print(checkexist, "EXIST")
# else:
# print(checkexist, "NOT_EXIST", checkfile)
# print(tuple(hallows))
# print()
hallow_entries = {}
def NOW():
return os.popen("node -e 'console.log(`UNIXUSAT=${Date.now()}`)'").read().strip()
def create_triangulum(filename, trihash, grih_ver):
unixusat = NOW().split("=")[1]
return "".join([
str(zlib.adler32(str.encode(filename))),
"=",
unixusat,
"---",
trihash[0],
"::",
trihash[1],
"::",
trihash[2],
"---",
grih_ver
])
def selfscript_hallowing(craftset):
for label in ["check", "dev", "run"]:
tmp_path = pathlib.Path(__file__) / ".." / f".craftset.self{label}.sh"
tmp_path = tmp_path.resolve()
tmp_selfscript = []
for tri_hashtype in ["md5","sha1","sha256"]:
with open(tmp_path, "rb") as f:
diglet = hashlib.file_digest(f, tri_hashtype)
tmp_selfscript.append(diglet.hexdigest())
tmp_option = f"self{label}_hallow"
craftset["craftset"][tmp_option] = "::".join(tmp_selfscript)
unixusat = NOW().split("=")[1]
craftset["craftset"]["unixusat"] = unixusat
note_dev = "<hefajsto> selfscripts edits"
craftset["craftset"]["version"] = grihver_increment(craftset["craftset"]["version"], "r")
repo_update(craftset, note_dev, ["git add .craftset.self*"])
def grihver_increment(version, level="h"):
grihver = version.split(".")
ver_levels = "grih"
level_above = False
for x in range(4):
if level_above:
grihver[x]="0"
elif level==ver_levels[x]:
level_above=True
grihver[x]=str(int(grihver[x])+1)
return ".".join(grihver)
def repo_sync():
for order in ["git fetch", "git pull", "git push"]:
print("#__ \t", order)
os.system(order)
def repo_update(craftset, note_dev, additional_commands=["git add *"]):
procedure_task = [
"git add .craftset.cfg",
f"git commit -m '{note_dev} _ {craftset["craftset"]["version"]} # [UNIXUSAT={craftset["craftset"]["unixusat"]}]' "
]
for order in additional_commands:
print("#__ \t", order)
os.system(order)
for order in procedure_task:
print("#__ \t", order)
os.system(order)
def hallows_reset(craftset, accepted_hallows, checksum_record):
global cfg_path
unixusat = NOW().split("=")[1]
craftset["craftset"]["unixusat"]=unixusat
note_dev = "<hefajsto> hallows reset"
craftset["craftset"]["version"] = grihver_increment(craftset["craftset"]["version"], "r")
craftset.remove_section("hallowed")
craftset.add_section("hallowed")
repo_update(craftset, note_dev)
for hallowed in accepted_hallows:
#triangulum = f"{unixusat}---{triangulums_raw_record["md5"][hallowed]}::{triangulums_raw_record["sha1"][hallowed]}::{triangulums_raw_record["sha256"][hallowed]}---1.0.0.0"
tri = [
checksum_record["md5"][hallowed],
checksum_record["sha1"][hallowed],
checksum_record["sha256"][hallowed]
]
hallow_insert(omnis_write, hallowed, tri)
def hallow_changed(filename):
return filename in os.popen("git status -s").read()
def hallow_insert(craftset, filename, trihash):
global cfg_path
unixusat = NOW().split("=")[1]
craftset["craftset"]["unixusat"]=unixusat
note_dev = "no action"
if str(zlib.adler32(str.encode(filename))) in craftset["hallowed"]:
craftset["craftset"]["version"] = grihver_increment(craftset["craftset"]["version"], "h")
note_dev = "<hefajsto> UPDATE "+filename
else:
craftset["craftset"]["version"] = grihver_increment(craftset["craftset"]["version"], "i")
note_dev = "<hefajsto> CREATE "+filename
craftset["hallowed"][str(zlib.adler32(str.encode(filename)))]="".join([
unixusat,
"---",
trihash[0],
"::",
trihash[1],
"::",
trihash[2],
"---",
craftset["craftset"]["version"]
])
with open(cfg_path.resolve(), 'w') as updatefile:
craftset.write(updatefile)
repo_update(craftset, note_dev, [f"git add {filename}"])
# selfscript_hallowing(omnis_write)
for hallowed in hallows:
if hallow_changed(hallowed):
#triangulum = f"{unixusat}---{triangulums_raw_record["md5"][hallowed]}::{triangulums_raw_record["sha1"][hallowed]}::{triangulums_raw_record["sha256"][hallowed]}---1.0.0.0"
tri = [
triangulums_raw_record["md5"][hallowed],
triangulums_raw_record["sha1"][hallowed],
triangulums_raw_record["sha256"][hallowed]
]
hallow_insert(omnis_write, hallowed, tri)
#omnis_write["hallowed"] = dict(zip(tuple([zlib.adler32(str.encode(hallowed)) for hallowed in hallows]), tuple(hallowed)))
#hallows_reset(omnis_write, hallows, triangulums_raw_record)
repo_sync()
print(json.dumps(hallow_entries, sort_keys=True, indent=4))
#[option for option in parser['section3']]
print(dict(omnis_write))
#omnis_write = configparser.ConfigParser()
#print(json.dumps(omnis_file, sort_keys=True, indent=4))
#omnis_write.read_dict(omnis_file)
# TODO: move part of https://github.com/Sarverott/overlord/tree/master to this place
# TODO: https://gist.github.com/Sarverott/4e20dae5b1442be87eb88214c3326a45
# TODO: https://gist.github.com/Sarverott/7aae3d9424b5b9cc5493d0f2c6bb82ca
# todo: https://gist.github.com/Sarverott/e68e66ed0a2e1324ee16086170344517
# https://gist.github.com/Sarverott/c37b983be2253882844c4b010bd9e240
# https://gist.github.com/Sarverott/e7fccb169c735ad42f112f40602ab90e
# https://gist.github.com/Sarverott/5c1a1ea571999df0383c9aec12b5b0b8
const omnisBlessing=(blesser,oathseal,haikus,signhash)=>`
type = "sign-by-oath"
category = "craftset"
UNIXUSAT = ${Date.now()}
[blessing]
by = "${blesser}"
oathseal = "${oathseal}"
haikus = ${JSON.stringify(haikus)}
sign = "${signhash}"
target = ".craftset.cfg"
consecrated_triangulum = ["md5","sha1","sha256"]
`
// TODO: https://gist.github.com/Sarverott/d0e7e4d483c06fc84c0b5c16dfe63561
// separed commit again
function ttystory{
history > ~/ttystory-$(date +%s)-now.txt
}
function NOW{
node -e 'console.log(`UNIXUSAT=${Date.now()}`)'
}
# $1
#!/bin/sh
rem # by Sett Sarverott
rem # to Apokryf Institute
rem # 2025 [UNIXUSAT=1747186897490]
rem # for primary minimal basic ecosystem
rem # terraformation to live decent life
rem # in current environment at
rem # data relm this script encounters
rem # as part of ".craft" that contains
rem # stuff for someone like cybergod
rem # so that person don't have to be angry
rem # because of routine things was not prepared
rem # and to change unacceptable barren pit
rem # into friendly fertile oasis
rem # exists this batch script for windows
rem # primer_cursting.bat © 2025 by Sett Sarverott is licensed under CC BY-ND 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nd/4.0/
wsl --install ubuntu
winget install Task.Task
#!/bin/sh
# by Sett Sarverott
# to Apokryf Institute
# 2025 [UNIXUSAT=1747186897490]
# for primary minimal basic ecosystem
# terraformation to live decent life
# in current environment at
# data relm this script encounters
# as part of ".craft" that contains
# stuff for someone like cybergod
# so that person don't have to be angry
# because of routine things was not prepared
# and to change unacceptable barren pit
# into friendly fertile oasis
# exists this shell script for linux
# primer_cursting.sh © 2025 by Sett Sarverott is licensed under CC BY-ND 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nd/4.0/
sudo snap install task --classic
# TODO: https://gist.github.com/Sarverott/d26b972193893130a2e26ac4b25d7ba8
# https://gist.github.com/Sarverott/2253c39dee4ff650a6b6f51b82d1490d
version: '3'
# https://github.com/Sarverott/pyRattlesnake
# https://github.com/Sarverott/rattlesnake-ultimate
# https://github.com/Sarverott/rattlesnake
vars:
CONFIG: .craftset.cfg
tasks:
default:
cmds:
- python -c "print('{{.CONFIG}}')"
silent: false
#!/bin/sh
# by Sett Sarverott
# to Apokryf Institute
# 2025 [UNIXUSAT=1747166305814]
# craftset sample for project's ".craft" to maintainer and developer
# repository helper toolbox that was created to meet the high standard
# and wide range of areas that concern the requirements for routine
# work of technomancers
# selective_ignorance.sh © 2025 by Sett Sarverott is licensed under CC BY-ND 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nd/4.0/
if [ $(dirname "$PWD") = '.craft' ]
then
cd ..
fi
git fetch
git pull
DOT_IGNORE="./.${1}ignore"
if [ -f $DOT_IGNORE ]
then
rm $DOT_IGNORE
fi
touch $DOT_IGNORE
TMP_COMBO_DIR=$(mktemp -d)
python3 -c '(lambda argv_sys, shlex_joiner: print("\n".join([shlex_joiner(["wget", "-P", argv_sys[2], f"https://raw.githubusercontent.com/github/gitignore/refs/heads/main/{skipping_styler.title()}.gitignore"]) for skipping_styler in argv_sys[1].split(",")])))(__import__("sys").argv, __import__("shlex").join)' $2 "$TMP_COMBO_DIR" | sh
cat $TMP_COMBO_DIR/* > $TMP_COMBO_DIR/combo.ignore
python3 -c 'print("\n".join(list(set([y.strip() for y in open(__import__("sys").argv[1]).readlines() if not y[0]=="#" and y]))))' $TMP_COMBO_DIR/combo.ignore > $TMP_COMBO_DIR/final.ignore
echo "# REFNOTE: created by technomantic spirit with selective ignorance and artistical resonance of the Saint Mission of Technomancers" >> $TMP_COMBO_DIR/final.ignore
echo "# REFNOTE: this file ($DOT_IGNORE) was generated by "selective_ignorance.sh" 2025 by Sett Sarverott (https://gist.github.com/Sarverott/a9933eea3dd0e4fc54e8ff275bd79dcf under terms of CC BY-ND 4.0)" >> $TMP_COMBO_DIR/final.ignore
echo "# REFNOTE: based on resources delivered from gitignore repo with templates by Github (https://github.com/github/gitignore under terms of CC0-1.0)" >> $TMP_COMBO_DIR/final.ignore
echo "# REFNOTE: content of file have to contain this information REFNOTE to show respect for work of authors that gave opportunity to create this file" >> $TMP_COMBO_DIR/final.ignore
UNIXUSAT=$(node -e 'console.log(` [UNIXUSAT=${Date.now()}]`)')
REPO_LINK=$(git config --local remote.origin.url)
echo "# REFNOTE: by casting spell \`$0 $1 $2\` for $REPO_LINK with $UNIXUSAT" >> $TMP_COMBO_DIR/final.ignore
echo "# REFNOTE: best regards and with goodluck charm casting" >> $TMP_COMBO_DIR/final.ignore
echo "# REFNOTE: ~Apokryf Institute of Technomantic Research" >> $TMP_COMBO_DIR/final.ignore
mv $TMP_COMBO_DIR/final.ignore $DOT_IGNORE
git add $DOT_IGNORE
COMMIT_MESSAGE=$(echo "CRAFTSET :: $0 $1 $2 # $UNIXUSAT")
git commit -m "$COMMIT_MESSAGE"
git fetch
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment