├── .github ├── dependabot.yml └── workflows │ └── update.yaml ├── LICENSE └── README.md /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "github-actions" # See documentation for possible values 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "daily" 12 | -------------------------------------------------------------------------------- /.github/workflows/update.yaml: -------------------------------------------------------------------------------- 1 | name: Update Starred Repos 2 | on: 3 | schedule: 4 | #- cron: "0 19 * * *" # 12 PM Nepal time is 6 AM UTC 5 | - cron: "0 */2 * * *" # Every 2 Hr 6 | # Allows to run this workflow manually from the Actions tab 7 | workflow_dispatch: 8 | #------------------------------------------------------------------------------------# 9 | env: 10 | USER_AGENT: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0" 11 | RCLONE_CF_R2_PUB: "${{ secrets.RCLONE_CF_R2_PUB }}" 12 | GITHUB_TOKEN: "${{ secrets.GHP_NO_PRIVILEGE }}" 13 | #------------------------------------------------------------------------------------# 14 | jobs: 15 | awesome-stars: 16 | name: Update Starred Repos 17 | runs-on: ubuntu-latest 18 | permissions: 19 | contents: write 20 | container: ghcr.io/juev/starred:latest 21 | steps: 22 | - name: 🚀 Run Starred 23 | run: | 24 | # Presets 25 | set -x ; set +e 26 | #--------------# 27 | starred --username azathothas --repository Stars --sort --token ${GITHUB_TOKEN} --message '💫' 28 | continue-on-error: true 29 | #------------------------------------------------------------------------------------# 30 | BackUp: 31 | needs: [awesome-stars] 32 | runs-on: ubuntu-latest 33 | permissions: 34 | contents: write 35 | 36 | steps: 37 | - name: Checkout repository 38 | uses: actions/checkout@v4 39 | with: 40 | path: main 41 | filter: "blob:none" 42 | 43 | - name: Setup Env 44 | run: | 45 | sudo apt update -y 46 | sudo apt install dos2unix -y 47 | pip install ansi2txt --upgrade 48 | continue-on-error: true 49 | 50 | - name: Install Addons 51 | run: | 52 | # Presets 53 | set -x ; set +e 54 | #--------------# 55 | #action-lint 56 | sudo curl -qfsSL "https://bin.ajam.dev/x86_64_Linux/actionlint" -o "/usr/local/bin/actionlint" && sudo chmod +xwr "/usr/local/bin/actionlint" 57 | #delta 58 | sudo curl -qfsSL "https://bin.ajam.dev/x86_64_Linux/delta" -o "/usr/local/bin/delta" && sudo chmod +xwr "/usr/local/bin/delta" 59 | #dust 60 | sudo curl -qfsSL "https://bin.ajam.dev/x86_64_Linux/dust" -o "/usr/local/bin/dust" && sudo chmod +xwr "/usr/local/bin/dust" 61 | #eget 62 | sudo curl -qfsSL "https://bin.ajam.dev/x86_64_Linux/eget" -o "/usr/local/bin/eget" && sudo chmod +xwr "/usr/local/bin/eget" 63 | #git-sizer 64 | sudo curl -qfsSL "https://bin.ajam.dev/x86_64_Linux/git-sizer" -o "/usr/local/bin/git-sizer" && sudo chmod +xwr "/usr/local/bin/git-sizer" 65 | #rclone 66 | sudo curl -qfsSL "https://bin.ajam.dev/x86_64_Linux/rclone" -o "/usr/local/bin/rclone" && sudo chmod +xwr "/usr/local/bin/rclone" 67 | #validtoml 68 | sudo curl -qfsSL "https://bin.ajam.dev/x86_64_Linux/validtoml" -o "/usr/local/bin/validtoml" && sudo chmod +xwr "/usr/local/bin/validtoml" 69 | #Yq 70 | sudo curl -qfsSL "https://bin.ajam.dev/x86_64_Linux/yq" -o "/usr/local/bin/yq" && sudo chmod +xwr "/usr/local/bin/yq" 71 | #Yj 72 | sudo curl -qfsSL "https://bin.ajam.dev/x86_64_Linux/yj" -o "/usr/local/bin/yj" && sudo chmod +xwr "/usr/local/bin/yj" 73 | continue-on-error: true 74 | #------------------------------------------------------------------------------------# 75 | - name: rClone BackUp Repo ("https://pub.ajam.dev/repos/$GITHUB_REPOSITORY") 76 | run: | 77 | # Presets 78 | set -x ; set +e 79 | #--------------# 80 | #touch "$HOME/.rclone.conf" 81 | echo "${{ secrets.RCLONE_CF_R2_PUB }}" > "$HOME/.rclone.conf" 82 | #chdir to Repo 83 | cd "$GITHUB_WORKSPACE/main" 84 | #Git pull 85 | git pull origin main --no-edit 2>/dev/null 86 | #Del Bloat 87 | rm -rf "$(pwd)/.git" 88 | #Upload to Pub 89 | echo -e "[+] Syncing $GITHUB_REPOSITORY to pub.ajam.dev/repos/$GITHUB_REPOSITORY \n" 90 | rclone sync "." "r2:/pub/repos/$GITHUB_REPOSITORY/" --user-agent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) obsidian/1.5.3 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36" --buffer-size="100M" --s3-upload-concurrency="500" --s3-chunk-size="100M" --multi-thread-streams="500" --checkers="2000" --transfers="1000" --check-first --checksum --copy-links --fast-list --progress 91 | continue-on-error: true 92 | #EOF 93 | #------------------------------------------------------------------------------------# 94 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | --------------------------------------------------------------------------------