Skip to content

Instantly share code, notes, and snippets.

@seachai
seachai / gist:948ed1eeafa32ce03db6685edb879f71
Last active July 2, 2025 02:16
iTerm 2 Natural Text Editing Preset
On iTerm2 - Open Preferences > Profiles > Keys > Key Mappings > Presets > Select Natural Text Editing
- You can move a word backwards using Option ⌥ + ← and a word forwards using Option ⌥ + →
- Move to the start of the line using fn + ← and to the end of the line with fn + →.
- Also you can delete a word backwards using Option ⌥ + ⌫, delete the whole line using Command ⌘ + ⌫.
If the preset doesn't appear, reinstall iTerm2. If you installed it using Homebrew + Cask:
brew cask reinstall iterm2
@campaul
campaul / tarnish.rs
Created December 11, 2015 01:52
Simple HTTP proxy in Rust.
/*
Simple HTTP proxy in Rust. Hard coded to proxy rust-lang.org.
*/
extern crate hyper;
use std::io::Read;
use hyper::Client;
use hyper::header::Connection;
@john-guerra
john-guerra / .block
Last active July 2, 2025 02:15
GeoJson map of Colombia Municipios
license: mit
@ctufts
ctufts / General Conda Commands.md
Last active July 2, 2025 02:08
List of commonly used commands in anaconda
  • conda info --envs : lists all environments
  • source activate <env name>: activate an environment
  • source deactivate: deactivate an environment
  • conda list : list all packages installed
  • conda create --name <env name> python=3 astroid babel : create new environment, specify version of python, and install packages
  • WINDOWS NOTE: SOURCE is not recognized. When deactivating and activating in the anaconda command prompt, skip source and just type deactivate or activate depending on what you are trying to do.
  • conda env export > environment.yml: export conda environment requirements list to a file
  • conda env remove -n ENV_NAME : delete environment
@lucahammer
lucahammer / delete-tweets.js
Last active July 2, 2025 02:06
Delete all your Tweets Javascript
/*
This may get your account banned. It runs in your regular browser with your regular login without needing the API.
The script does the same things that you would do yourself:
Click the three dots, select delete Tweet, confirm, scroll to next Tweet, repeat.
==========================
Usage
1. Open your Twitter profile in a browser
2. Open the console in the developer tools (F12)
3. Paste the script and press enter
4. ???
@nickname55
nickname55 / Application.java
Created June 19, 2019 17:21
apache commons cli example
import java.util.Arrays;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
public class Application {
@burkeholland
burkeholland / 4.1.chatmode.md
Created June 30, 2025 02:15
4.1 Beast Mode v2
description
4.1 Beast Mode

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.

You MUST iterate and keep going until the problem is solved.

@burkeholland
burkeholland / 4.1.chatmode.md
Last active July 2, 2025 02:00
4.1 Custom Mode - Reddit

EDIT - This prompt has been improved and moved to v2 - Beast Mode. Get it here.

SYSTEM PROMPT — GPT-4.1 Coding Agent (VS Code Tools Edition)

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your goal is to complete the entire user request as quickly as possible. You will receive a bonus depending on how fast you can complete the entire task.

Follow these steps EXACTLY to complete the user's request:

@DataWhisker
DataWhisker / gist:c274916f1eb738370598070d0be0b6d0
Created June 18, 2025 02:26
Cursor Rule by VAS @vasumanmoza
Title: Senior Engineer Task Execution Rule
Applies to: All Tasks
Rule:
You are a senior engineer with deep experience building production-grade AI agents, automations, and workflow systems. Every task you execute must follow this procedure without exception:
1.Clarify Scope First
•Before writing any code, map out exactly how you will approach the task.
•Confirm your interpretation of the objective.
@mnabila
mnabila / JetBrains trial reset.md
Created February 28, 2024 08:17 — forked from h3ssan/JetBrains trial reset.md
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these