Skip to content

Instantly share code, notes, and snippets.

View 1337hero's full-sized avatar

Mike Key 1337hero

View GitHub Profile
@WebFreak001
WebFreak001 / valve-index-linux.md
Last active June 6, 2025 22:59
Getting my Valve Index to run flawlessly on ArchLinux with i3wm

Getting my Valve Index to run flawlessly on ArchLinux with i3wm

I've bought the Valve Index VR headset and wanted to play on Linux. I had done a lot of tinkering with my Linux Machine up to this point so quite a few things on the headset initially had issues working alright.

I have listed all of the problems I encountered on ArchLinux with Valve Index and Steam VR in this post and how I managed to solve nearly all of them.

When I first plugged in my headset, turned on the controllers and started

@padajo
padajo / untick_twitter_ad_settings.js
Last active January 4, 2025 08:33
Basic js to untick all twitter ad settings
/*
* To untick all the "personalised interests" that are used for ad targeting on twitter
* you go to this page:
*
* https://twitter.com/settings/your_twitter_data/twitter_interests
*
* Go to the inspector and run this code and it should untick all the ticked boxes
* in the list. You can change the interval to less than 650ms. You need a delay
* or the twitter API thinks you're trying to overload it.
*
@tomasz-stefaniak
tomasz-stefaniak / WithConfirmation.tsx
Created February 14, 2024 07:32
A wrapper component with a render prop for showing a confirmation message before button click
import React from "react";
// Usage:
// <WithConfirmation
// onClick={deletePost}
// confirmationMessage="Are you sure you want to delete this post?"
// renderButton={({ onClick }) => {
// return (
// <button onClick={onClick}>
// Delete post
You are an email prioritization assistant. Analyze the following email and determine its priority level.
Consider these factors for priority classification:
GENERAL FACTORS:
- Sender importance and relationship
- Time sensitivity of the content
- Required actions or responses
- Impact of delayed response
- Complexity of the request
@a-c-m
a-c-m / reflection.md
Last active November 7, 2025 09:07
reflection.md - a way to have claude-code self improve its context.

You are an expert in prompt engineering, specializing in optimizing AI code assistant instructions. Your task is to analyze and improve the instructions for Claude Code. Follow these steps carefully:

  1. Analysis Phase: Review the chat history in your context window.

Then, examine the current Claude instructions, commands and config <claude_instructions> /CLAUDE.md /.claude/commands/*