Code Tactics
Відкрити в Telegram
ur portal to the freshest tech stuff! ⚡️ What I drop here’s shit I need, love, think about... not just for u 😁
Показати більше513
Підписники
Немає даних24 години
-37 днів
-330 днів
Архів дописів
513
Github Trending: All languages
jumpserver / jumpserver
JumpServer is an open-source Privileged Access Management (PAM) tool that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.
21 квіт 2025, 09:05
21 квіт 2025, ~16:17
513
Github Trending: All languages
007revad / Synology_HDD_db
Add your HDD, SSD and NVMe drives to your Synology's compatible drive database and a lot more
21 квіт 2025, 09:05
21 квіт 2025, ~16:17
513
Github Trending: All languages
jwasham / coding-interview-university
A complete computer science study plan to become a software engineer.
21 квіт 2025, 09:05
21 квіт 2025, ~16:17
513
Github Trending: All languages
drawdb-io / drawdb
Free, simple, and intuitive online database diagram editor and SQL generator.
21 квіт 2025, 09:05
21 квіт 2025, ~16:17
513
Github Trending: All languages
allenai / olmocr
Toolkit for linearizing PDFs for LLM datasets/training
21 квіт 2025, 09:05
21 квіт 2025, ~16:17
513
The GitHub Blog
How to take climate action with your code
Climate change is one of the most pressing issues of this century. We are working with developers to leverage technology to create a greener world. So, this Earth Day, we’re excited to launch the Climate Action Plan for Developers.
We’ve curated tools and projects to help you kick-start your climate action journey and contribute to achieving net zero carbon emissions. Explore over 60,000 green software and climate-focused repositories on GitHub.
Not sure where to start? Take a look below at a few highlights that can help you start to green your code today. 🚀 Speed & Scale
Speed & Scale is a global initiative to move leaders to act on the climate crisis. Their team has developed a net zero action plan, with 10 objectives and 49 key results that track yearly progress. Learn about their action plan ⚡️ Electricity Maps
Electricity Maps is the leading electricity grid API, offering a single source for accessing carbon intensity and energy mix globally. As a developer you can go beyond just viewing the maps to pull data from their API, download data files, and even contribute to their open source project. Access the Electricity Maps API 🖥️ CodeCarbon
CodeCarbon is a lightweight software package that allows for integration into any Python project to track and reduce CO2 emissions from your computing. Get started with using the software package and check out the opportunities to help support this open source project. Get started with the software package 🌳 ClimateTriage, by OpenSustain.Tech
ClimateTriage helps developers discover a meaningful way to contribute to open source projects focused on climate technology and sustainability. Harness the power of open source collaboration to tackle environmental challenges such as climate change, clean energy, biodiversity, and natural resource conservation. Whether you’re an experienced developer, a scientist, or a newcomer looking to contribute, connect you with opportunities to use your skills to create a sustainable future. Get started with a Good First Issue 💪 Use GitHub Copilot and CodeCarbon for greener code
Computational tasks, especially in AI, have a growing carbon footprint. Learn how CodeCarbon, an open-source Python library, helps measure CO2 emissions from your code. Together with GitHub Copilot, integrate CodeCarbon into your projects, allowing you to track energy use and optimize for sustainability. Get started with GitHub Copilot for free today
Learn more about how you can take climate action today.
The post How to take climate action with your code appeared first on The GitHub Blog.
21 квіт 2025, 09:02
513
21 квіт 2025, 07:36
513
21 квіт 2025, 07:36
21 квіт 2025, ~16:17
513
21 квіт 2025, 07:36
21 квіт 2025, ~16:17
513
21 квіт 2025, 07:36
21 квіт 2025, ~16:17
513
Btw... I have started Developers my own productivity tool called "NewTab+"
For more details, check here: https://github.com/venopyx/newtabplus
I'm thinking to add more features that I wanna use personally...
It is chrome extension with some cool features.
21 квіт 2025, 04:59
513
logies. Document translation is just the tip of the iceberg. Based on this framework, you can explore many more applications of local AI, such as:
* Code Generation and Explanation: Using models like
codellama or deepseek-coder to assist with programming.
* Text Summarization and Information Extraction: Quickly understanding the core content of long documents or reports.
* Content Creation and Polishing: Generating blog posts, email drafts, creative writing, etc.
* Local Knowledge Base Q&A: Combining RAG (Retrieval-Augmented Generation) techniques to let LLMs answer questions based on your local documents.
In the future, as local LLM technology continues to evolve and ServBay's features iterate, we have every reason to believe that running powerful, efficient, and secure AI applications on personal computers will become increasingly common. Start now with this batch translation project and freely explore the infinite possibilities that ServBay and Ollama bring to your local AI endeavors!21 квіт 2025, 04:18
21 квіт 2025, ~04:47
513
tables, code block language identifiers, etc.).
* Always spot-check the translated files, especially sections with complex formatting. Manual correction might be necessary.
4.
Performance and Resource Consumption:
* Running LLMs is computationally intensive. Translation speed depends on your CPU, memory (RAM), and whether GPU acceleration is available.
* Large models (e.g., 7B+) can be very slow without a GPU. ServBay's Ollama integration typically utilizes available GPUs (NVIDIA or Apple Silicon) automatically. You can check related settings in ServBay's Ollama configuration.
* If you encounter performance bottlenecks or system lag:
* Increase the
REQUEST_DELAY value.
* Try using smaller models (e.g., 3B or 4B) or quantized models (often indicated by q4, q5, q8, etc., in the model name). Quantized models trade a small amount of precision for faster speed and lower resource usage. ServBay's model management interface usually lists these quantized versions.
* In ServBay's Ollama config, check if Max loaded models and Parallel Num. are set reasonably (for single-task batch processing, they usually don't need to be high).
5.
Handling Large Files:
* Very large Markdown files might cause:
* Ollama processing timeouts (the script sets a 300-second timeout, which might need to be longer).
* Exceeding the model's context window limit, leading to truncated content or incomplete translations.
* High memory consumption.
* For extremely large files, you might need to implement a Chunking strategy: split the large file into smaller chunks (e.g., by paragraph or fixed character count), send each chunk to Ollama for translation separately, and then merge the results. This increases script complexity.
6.
Error Handling and Retries:
* The script includes basic error handling but could be enhanced. For example, implementing an automatic retry mechanism: when an API call fails (due to network issues or Ollama being temporarily unresponsive), wait for a short period and automatically retry a few times.
* Log errors more detailedly for easier troubleshooting.
7.
Incremental Translation:
* The current script processes all files every time it runs (unless you manually cancel). It could be modified to check if the target file exists and if its modification time is more recent than the source file. If so, skip it, thus implementing incremental translation (only translating new or modified files).
8.
Concurrent Processing:
* If your hardware is powerful enough (especially multi-core CPU or strong GPU) and your Ollama configuration allows parallel processing (Parallel Num. > 0), consider using Python's multiprocessing or threading libraries to process multiple files concurrently. This could significantly speed up the overall translation time but will increase resource consumption and code complexity. Conclusion: Embark on Your Local AI Journey Congratulations! By following this tutorial, you have successfully utilized ServBay's built-in Ollama functionality to set up a local, private, and automated batch translation workflow for Markdown documents. You've not only learned about ServBay's powerful integration capabilities in the AI/LLM space but also mastered how to interact with locally running large language models via a simple Python script to solve real-world problems.
The core advantage of this local AI solution lies in keeping your data entirely in your own hands, eliminating concerns about privacy breaches or high API costs. At the same time, it grants you immense flexibility and control – you can freely choose models, adjust parameters, optimize workflows, and even work offline.
ServBay, as an excellent integrated development environment, proves its forward-thinking nature once again by embracing Ollama, providing developers and tech enthusiasts with a convenient platform to explore and apply cutting-edge AI techno[...]21 квіт 2025, 04:17
21 квіт 2025, ~04:47
