mastodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance, open to everyone, but mainly English and French speaking.

Administered by:

Server stats:

745
active users

#cheatsheet

0 posts0 participants0 posts today

ChatGPT Prompting CheatSheet: Get Better Results with Smarter Prompts 🧠⌨️🤖

Want to make ChatGPT work for you — faster and more accurately? Mastering the art of prompting is key.

🧩 Basic Prompt Structures:
• Instructional: “Explain X to a beginner”
• Conversational: “Act as a cybersecurity mentor and guide me through Y”
• List-based: “Give me 10 tools used in Z with pros/cons”
• Comparison: “Compare OSINT tools Spiderfoot vs Maltego”
• Step-by-step: “Break down how to do X in 5 steps”
• Role-based: “You are a penetration tester. How would you approach Y?”

📌 Prompting Tips:
• Be specific — avoid vague terms
• Add context: role, audience, tone
• Use constraints: “In less than 100 words” or “With examples only”
• Stack prompts: Give follow-up instructions to refine the result
• Iterate: Don't expect perfection on the first try — tweak and retry!

Bonus Use Cases in Cybersecurity:
• Generate reports from scan data
• Summarize threat intelligence
• Create cheat sheets or lab exercises
• Draft educational posts and disclaimers

Disclaimer: This guide is for educational purposes. Always validate AI-generated content before applying it in real-world scenarios.

Linux Hardening Cheat Sheet
This cheat sheet covers essential baseline hardening steps with actionable commands, it is basic so there are many things can be added for different purposes, Contributions welcome on GitHub! Enjoy! - Yetkin

github.com/yetkind/LinuxHarden
#cheatsheet #linux

GitHubGitHub - yetkind/LinuxHardeningCheatSheet: Linux System Hardening CheatsheetLinux System Hardening Cheatsheet. Contribute to yetkind/LinuxHardeningCheatSheet development by creating an account on GitHub.

I'm not embarrassed to say that I still sometimes confuse `crate::` vs `super::` in #rust. Even though `super` is kinda obviously `..` and crate is kinda obviously `~`.

But anyway, here's an example I'll put into my #howto #cheatsheet cabinet:

```
// use crate::conf::point_config::PointConfig;
use super::point_config::PointConfig;
```