Skip to content

Instantly share code, notes, and snippets.

@hopsoft
hopsoft / README.md
Last active July 29, 2025 18:17
AI Prompt Cheatsheet

AI/Large Language Model Prompt Tuning Cheatsheet

When crafting prompts for AI or LLMs, you can adjust various inputs or variables to tailor the model's responses. Here's a simple guide to understanding what each of these terms means:

  • prompt: The question or statement you provide to the model, essentially telling it what you want to know or do.

    • Example: "What is the weather today?" vs. "Write a poem about the rain."
    • Effect: Directly sets the topic and style of the AI's response.
  • max_tokens: Limits how long the AI's response can be, like setting a maximum number of words or sentences it can use to answer.

  • 50 - Makes the AI provide a concise, often one-sentence reply.

@MufasaVII
MufasaVII / ubuntu-server-setup-netplan.md
Created April 20, 2023 09:44 — forked from plembo/ubuntu-server-setup-netplan.md
Ubuntu Server Setup - with netplan

Ubuntu Server Setup - with netplan

Introduction

The assumption here is that you're now starting with a Ubuntu 22.04 LTS Server or newer, rather than Desktop, base (Ubuntu Desktop deploys NetworkManager rather than systemd-networkd by default).

The goal is networking configured for static addressing using systemd-networkd and netplan. Note that punctuation (including hypens, '-') and indentation are significant when working with netplan YAML files.

There are a lot good arguments against using netplan. I have tried NetworkManager (packages named "network-manager", but the service is "NetworkManager.service" -- go figure) on Ubuntu Server, and was

@vadimstasiev
vadimstasiev / .readme.md
Last active September 15, 2023 15:35
Ubuntu Fix MTP - Archive

Original Thread: https://ubuntuforums.org/showthread.php?t=2226702

STEP 1

Firstly we're going to need to install some of the common MTP apps that will be needed. Open up a terminal and type the following two lines one after the other.

Code: sudo apt-get install libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9

Code:

@Juan-Embid
Juan-Embid / googe_dorks_cheatsheet.md
Last active February 24, 2026 22:08
A list of useful Google Dorks queries and explanations

Google-Dorks-Cheat-Sheet

A list of useful Google Dorks queries and explanations. Feel free to improve with your own payloads and techniques. Go ahead an make a pull request.

Documentation

Every section contains the following information:

  • A query description and how to exploit it, including several payloads
  • Pictures for the README.md
  • Other content referenced in the description

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt install openjdk-14-jdk

Android SDK

@davidjguru
davidjguru / bash_aliases
Last active August 2, 2025 18:27
BASH Aliases commands for a Linux (Debian / Ubuntu) environment
## Morning Opertures
alias whatsup='service --status-all'
alias hello='sudo /etc/init.d/apache2 stop && cd workspace/project && ddev start && ddev launch'
alias hi='sudo systemctl stop apache2'
alias iad='systemctl is-active docker'
alias ports='nmap localhost'
alias dns="sudo systemd-resolve --status | grep 'DNS Servers'"
alias bye='shutdown -r now'
## Usual Instructions

Awesome-crawler Awesome

A collection of awesome web crawler,spider and resources in different languages.

Contents

@nebuIr
nebuIr / WSL2_Guide.md
Last active April 8, 2024 18:13
WSL2 Guide

WSL2 Guide for Debian

Install Debian

Set default WSL version to 2: wsl --set-default-version 2

Install the Debian Distribution from the Windows Store.

Optional:

Set another user as the default user: Debian config --default-user <username>

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt install openjdk-8-jdk-headless

Android SDK