Tutorial and tips for GitHub Actions workflows
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 | |
| # Repack a split GGUF so one tensor (default: the qwen4exp engram table | |
| # per_layer_token_embd.weight) sits ALONE in the final shard, with no other tensors | |
| # sharing that file. Motivation: on Metal, llama.cpp wires the mmap'd regions that | |
| # back GPU tensors; a tensor interleaved with them in the same file gets wired along | |
| # for the ride (measured +24 GiB on Qwen3.8-Flash-Next). A file containing only | |
| # CPU-side tensors keeps its own mapping and stays pageable. | |
| # | |
| # Tensor bytes are copied verbatim (no requantization). Output layout for an N-file | |
| # input: shard 1 = byte-for-byte copy of input shard 1 (metadata-only; split.count and |
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 ruby | |
| # https://asmirnov.xyz/vram | |
| # https://vram.asmirnov.xyz | |
| require "fileutils" | |
| require "json" | |
| require "open-uri" | |
| # https://huggingface.co/spaces/NyxKrage/LLM-Model-VRAM-Calculator/blob/main/index.html |
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
| fragment branchProtection on BranchProtectionRule { | |
| allowsDeletions | |
| allowsForcePushes | |
| creator { | |
| login | |
| } | |
| id | |
| isAdminEnforced | |
| requiredStatusCheckContexts | |
| requiredApprovingReviewCount |
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
| ! https://raw.githubusercontent.com/arosh/ublacklist-github-translation/master/uBlacklist.txt | |
| ! Github fake | |
| *://bleepcoder.com/* | |
| *://githubja.com/* | |
| *://*.gitmemory.com/* | |
| *://giters.com/* | |
| *://githubmemory.com/* | |
| *://*.wenyanet.com/* | |
| *://issueexplorer.com/* | |
| *://opensourcelibs.com/* |
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. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the | |
| software to the public domain. We make this dedication for the benefit |
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
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
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 python | |
| """ | |
| Display gluster traffic | |
| This tool uses gluster profiling feature, parsing cumulative statistics. | |
| To understand correctly the results, you have to divide overall write statistics with number of replicas. | |
| Also striped volumes needs to be taken in mind - overall statistics just print sum of all bricks | |
| read/written bytes. |
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
NewerOlder