diff --git a/migrate.sh b/migrate.sh deleted file mode 100755 index d7ef3fc..0000000 --- a/migrate.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -#program should retrieve a list of installed packages and cloned repos, add them to a list and allow the syncing of them between installs, will be for arch so pacman package manager to install packages. Of course git will be used for the syncing of repos - - -#thanks to SBRL for this handy git repo url finder -#find /home/ctome/git/ -mount -type d -name '.git' -print0 | xargs -0 -I {} bash -c 'dirgit="{}"; dir="$(dirname "${dirgit}")"; cd "${dir}" && echo -e "$(git remote -v | tr " " "\t" | cut -f 2 | head -n1)";' |grep .com > repos.txt && mkdir -p repos; - -# cd repos && cat ../repos.txt |xargs -0 git clone; - - -# the newer way of cloning repos that you own -gh repo list --limit 100 |awk '{print $1}' | xargs -L1 gh repo clone - - -# cloning repos in my stack, credit to @Epictek for the oneliner. html-xml-utils isnt maintained on fedora so we use a docker container. This is slower but should ensure it works on any distribution - -# TODO fix so it loops through all pages, as it just grabs the first currently -# curl -s https://github.com/stars/CrimsonTome/lists/my-stack | docker run -i jezzay/html-xml-utils hxnormalize -x |docker run -i jezzay/html-xml-utils hxselect -c '#user-list-repositories > div > div > h3' | sed -n 's/.*href="\([^"]*\).*/\1/p' | awk '{print "https://github.com"$0}'|xargs -L1 git clone diff --git a/pyinfra-debug.log b/pyinfra-debug.log deleted file mode 100644 index e2a1c54..0000000 --- a/pyinfra-debug.log +++ /dev/null @@ -1,21 +0,0 @@ - File "/home/ctome/.local/pipx/venvs/pyinfra/lib64/python3.11/site-packages/pyinfra_cli/main.py", line 224, in cli - _main(*args, **kwargs) - File "/home/ctome/.local/pipx/venvs/pyinfra/lib64/python3.11/site-packages/pyinfra_cli/main.py", line 355, in _main - state, config = _handle_commands(state, config, command, original_operations, operations, quiet) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/ctome/.local/pipx/venvs/pyinfra/lib64/python3.11/site-packages/pyinfra_cli/main.py", line 612, in _handle_commands - state, config, operations = _run_deploy_operations(state, config, operations, quiet) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/ctome/.local/pipx/venvs/pyinfra/lib64/python3.11/site-packages/pyinfra_cli/main.py", line 669, in _run_deploy_operations - load_deploy_file(state, filename) - File "/home/ctome/.local/pipx/venvs/pyinfra/lib64/python3.11/site-packages/pyinfra_cli/util.py", line 247, in load_deploy_file - raise result - File "/home/ctome/.local/pipx/venvs/pyinfra/lib64/python3.11/site-packages/pyinfra_cli/util.py", line 227, in load_file - exec_file(filename) - File "/home/ctome/.local/pipx/venvs/pyinfra/lib64/python3.11/site-packages/pyinfra_cli/util.py", line 50, in exec_file - code = compile(code, filename, "exec") - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "post-install.py", line 22 - homeDir = str(server.shell(("echo $HOME")) - ^ -SyntaxError: '(' was never closed