Skip to content

Instantly share code, notes, and snippets.

@mfd
mfd / 06.png
Last active December 28, 2025 17:02
Gilroy font
06.png
@Klerith
Klerith / git-alias.md
Last active December 28, 2025 17:01
Useful Git Alias

Log

git config --global alias.lg "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"

Status

git config --global alias.s status --short

Alternativa útil de status

git config --global alias.s status -sb

@PrinceSinghhub
PrinceSinghhub / DSA Calendar 2026 | Plan of Action.md
Last active December 28, 2025 16:56
Everything from 0 to Advance | DSA Calendar 2026 | Plan of Action

DSA Calendar 2026 | Plan of Action 🔥

DSA is no longer about solving random sheets or memorizing solutions. It’s about a clear, structured, and realistic approach from absolute beginner to interview-ready Candidate.

  • How to start DSA from zero (even if you don’t know coding)
  • When to focus on language basics vs DSA
  • A 3-phase preparation strategy used by serious engineers
  • Exact timelines for topics, patterns, and problem counts
  • Why 300–400 problems ≠ success (and what actually matters)
@dougg0k
dougg0k / REACT_NATIVE_SECURITY.md
Last active December 28, 2025 16:48
React Native Security - this compilation were initially built upon a help request about security for a banking app.

Obfuscate code helps.

@jlia0
jlia0 / agent loop
Last active December 28, 2025 16:47
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet

Proxmox VE tips

Just some tips I gathered over time. All in one easily reachable place so I can share it wherever I want.

Please note that unless you see a shebang (#!/...) these code blocks are usually meant to be copy & pasted directly into the shell. Some of the steps will not work if you run part of them in a script and copy paste other ones as they rely on variables set before.
The { and } surrounding some scripts are meant to avoid poisoning your bash history with individual commands, etc. You can ignore them if you manually copy paste the individual commands.
I chose to write things "in the open" that way so there's still some control and things don't become a black box.

Table of contents

简介

这是一份速成指南,教你在《精灵宝可梦传说:Z-A》的“异次元战斗区域”里该把什么当作目标。很多玩家因为只想去抓宝可梦,经常直接无视这些区域,但千万别小看它们!这是个刷资源的好地方,绝对不亏。翻译自Anubis的数据挖掘:(https://gist.github.com/Lusamine/311d510240c69dbe81103c86095e9883)

我能从异次元战斗区域获得什么样的超棒奖励?

  • 打破漂浮的精灵球会掉落经验糖果和异次元树果,外加由“道具之力”带来的额外物品。这跟在异次元野生区域是一样的。

  • 打败特定的NPC会给你奖励:异次元树果、稀有精灵球和王冠。这些NPC一次会给好几个同类型的道具,你可以通过S/L大法来挑选你想要的。这对刷稀有精灵球(5星扭曲)和高级抗虫果(4星扭曲)特别有用。

  • 完成任务能给你的下一个目标积攒大量点数!比同等级的异次元野生区域给的点数多多了,而且任务通常只是打败训练家,做起来比较简单。

    完成一个5星战斗区域的所有任务,大概能让你拿到 16000 到 17000 点(满分25000),离下一次特殊扫描就只差一场失控Mega战了。

217 | Contains Duplicate 👯‍♂️ - Leetcode Day 2

The Challenge: Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.

💡 The "Aha!" Moment

Initially, I thought about comparing every number against every other number (Brute Force), but that is too slow for large lists. I realized I didn't need to check everyone against everyone; I just needed a way to remember what I had already seen. If I see a number that is already in my "memory," I know immediately it is a duplicate.

🛠️ My Strategy: The "Bouncer" Set

@fnky
fnky / ANSI.md
Last active December 28, 2025 16:28
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@othyn
othyn / guide.md
Last active December 28, 2025 16:28
Fix horrendously bad macOS (12.3.1 tested) SMB (Samba) performance on Unraid

Intro

Out of the box, my SMB performance on macOS 12.3.1 would top out at around 20MB/s in short ~5 second bursts, which was absolutely horrendous, slow to navigate in Finder and slugish to interact with.

Since making these changes, I now get sustained ~80-100MB/s+ and instant Finder navigation which is superb and how things should be out-of-the-box (OOTB)!

May 2023 update: As of Ventura, the SMB issues were just horribly inconsistent and hard to maintain. Something in the combination of Unraid, macOS and SMB just doesn't play nice. I ended up binning NFS/SMB all together and heading to a locally hosted Nextcloud instance for file syncing, then using SFTP/Ansible Git flow for editing files within appdata.

Sources