Discover gists
This document captures current best practices for R development, emphasizing modern tidyverse patterns, performance, and style. Last updated: August 2025
- Use modern tidyverse patterns - Prioritize dplyr 1.1+ features, native pipe, and current APIs
- Profile before optimizing - Use profvis and bench to identify real bottlenecks
- Write readable code first - Optimize only when necessary and after profiling
- Follow tidyverse style guide - Consistent naming, spacing, and structure
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 bash | |
| # | |
| # php2shell-triage.sh | |
| # Read-only triage for PHP2Shell (CVE-2026-109618 / CVE-2026-109619). | |
| # It checks whether your PHP build was in the vulnerable range and looks for | |
| # the few signals an exploitation attempt tends to leave behind. | |
| # | |
| # It never changes anything on the system. It only reads logs and lists files. | |
| # Run as root (or via sudo) so it can read FPM and auth logs: | |
| # sudo bash php2shell-triage.sh [WEBROOT] |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \
A comprehensive, practical reference for
unzip,tar, andxz/unxzon Linux — covering every common extraction case with real examples.
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
| """JSON serializer for Elasticsearch Python client that | |
| uses the 'orjson' library for performance. | |
| https://github.com/ijl/orjson | |
| """ | |
| # Implement the Serializer.loads() and .dumps() APIs w/ orjson: | |
| import orjson | |
| from elasticsearch import SerializationError, JSONSerializer |
