Skip to content

Instantly share code, notes, and snippets.

@emmaxd00
emmaxd00 / notas.md
Last active May 31, 2025 04:56
My first gists

GitHub Gist stars

@aivarsk
aivarsk / solve_me.py
Last active May 31, 2025 04:55
solve_me() for Python3.11+
def solve_me(solution):
res = solution()
del res
if res:
print("Solved")
solution = lambda: [
g.write(b"\x09\x09\x09\x09")
for x, y, g in [
@asefsoft
asefsoft / list_of_blocked_sites.md
Last active May 31, 2025 04:53
لیست سایت های تحریم کننده ایران

لیست سایت ها و دامنه هایی که آی پی های ایران را تحریم کرده اند.

analytics.google.com
firebaseremoteconfig.googleapis.com
cloud.google.com
ads.google.com
fonts.googleapis.com
developer.android.com

PDF Processing with Multi-GPU Support / 多GPU支持的PDF处理

中文说明

概述

本项目提供了一个使用多GPU并行处理PDF文件的Python脚本。它基于 MinerU 库,能够将PDF文件转换为Markdown格式,并支持在多GPU环境下高效处理大量文件。

主要功能

  1. 多GPU支持:利用多个GPU并行处理PDF文件,显著提高处理速度。
  2. 日志记录:支持控制台和文件日志记录,便于调试和监控。
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 31, 2025 04:49
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@chranderson
chranderson / nvmCommands.js
Last active May 31, 2025 04:45
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@boxabirds
boxabirds / .cursorrules
Last active May 31, 2025 04:34
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
import re
from txtai import Embeddings, LLM
# Prompt courtesy of the following link: https://github.com/codelion/optillm/blob/main/cot_reflection.py
def cot(system, user):
system = f"""
{system}
You are an AI assistant that uses a Chain of Thought (CoT) approach with reflection to answer queries. Follow these steps:

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@kishorekethineni
kishorekethineni / roboflow-tflite-object-detection.ipynb
Last active May 31, 2025 04:29
Roboflow-TFLite-Object-Detection.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.