Skip to content

Instantly share code, notes, and snippets.

@rofrol
rofrol / macos_tips.md
Last active June 21, 2025 19:28
tips for a lifetime windows user switching to mac
  1. To have switching with alt+tab and window previews, install https://formulae.brew.sh/cask/alt-tab. You may need to change in settings alt+tab to Show windows from applications: All apps.
  2. To have fast switching between fullscreen windows: don't fullscreen and just autohide top bar instead. You may also autohide dock. One downside if you move mouse to top bar and click to fast, you will show desktop instead. Threre is some possibility for fast switching with fullscreen windows with https://github.com/koekeishiya/yabai but is hacky.
  3. Install https://brew.sh. Disable qurantine with export HOMEBREW_CASK_OPTS=--no-quarantine in ~/.zshrc link. To upgrade packages without asking for root password many times https://github.com/rofrol/dotfiles/blob/master/bin/brew-update. To list brew packages https://github.com/rofrol/dotfiles/blob/master/bin/brew-packages.
  4. Learn Finder shortcuts: enter to rena
@sshh12
sshh12 / cursor-agent-system-prompt.txt
Last active June 21, 2025 19:24
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@SansPapyrus683
SansPapyrus683 / debugging.h
Last active June 21, 2025 19:23
A useful debugging template for C++.
#include <iostream>
#include <vector>
#include <deque>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
template <typename T>
std::ostream& operator<<(std::ostream& out, const std::vector<T>& vec) {

Tutorial of Downloading and Building the CoreProtect Plugin

This tutorial will explain from nothing how to build/create the CoreProtect plugin or 1.21 from it's source code on GitHub.

I am assuming you don't know anything and don't have anything installed and are using a Windows device.

Prerequisites

Watch these tutorial videos (very short).

  • You must use Java JDK 21. Download here.
@okineadev
okineadev / commit-message-guidelines.md
Last active June 21, 2025 19:17
🤖 Copilot commit messages instructions for VS Code

Paste it to settings.json:

"github.copilot.chat.commitMessageGeneration.instructions": [
  {
    "text": "Follow the Conventional Commits format strictly for commit messages. Use the structure below:\n\n```\n<type>[optional scope]: <gitmoji> <description>\n\n[optional body]\n```\n\nGuidelines:\n\n1. **Type and Scope**: Choose an appropriate type (e.g., `feat`, `fix`) and optional scope to describe the affected module or feature.\n\n2. **Gitmoji**: Include a relevant `gitmoji` that best represents the nature of the change.\n\n3. **Description**: Write a concise, informative description in the header; use backticks if referencing code or specific terms.\n\n4. **Body**: For additional details, use a well-structured body section:\n   - Use bullet points (`*`) for clarity.\n   - Clearly describe the motivation, context, or technical details behind the change, if applicable.\n\nCommit messages should be clear, informative, and professional, aiding readability and project tracking."
  }
]
@stkptr
stkptr / android-cli-build.md
Last active June 21, 2025 19:10
Guide for getting a command line buildsystem for Android apps set up

Developing Android apps without Android Studio (Debian 12)

If you're looking to develop an Android app you might be led to Android Studio. It's the IDE recommended and developed by Google for the express purpose of Android development. It does what it needs to, but if you look at the system requirements you will see some alarming numbers. If you're using an older system, or simply don't want to use AndroidStudio, this is the guide for you.

Installing packages

We won't be using many apt packages due to permissions issues and incompatible versions. That being said:

$ sudo apt install openjdk-17-jdk sdkmanager kotlin
@RyanLua
RyanLua / fritzing.md
Last active June 21, 2025 19:04
Free download of Fritzing using the official download links

Fritzing Free Download

Important

You need to be logged into Fritzing for these download links to work.

Works by redirecting to the official release download. Visiting the links in the browser directly won't work and needs to be a redirect from a website such as Fritzing or GitHub.

Steps

  1. Sign up or log into https://fritzing.org
@gd3kr
gd3kr / script.js
Created February 15, 2024 06:30
Download a JSON List of twitter bookmarks
/*
the twitter api is stupid. it is stupid and bad and expensive. hence, this.
Literally just paste this in the JS console on the bookmarks tab and the script will automatically scroll to the bottom of your bookmarks and keep a track of them as it goes.
When finished, it downloads a JSON file containing the raw text content of every bookmark.
for now it stores just the text inside the tweet itself, but if you're reading this why don't you go ahead and try to also store other information (author, tweetLink, pictures, everything). come on. do it. please?
*/
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active June 21, 2025 19:16
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy