Skip to content

Instantly share code, notes, and snippets.

View joshuacrowley's full-sized avatar
🍐

Joshua Crowley joshuacrowley

🍐
View GitHub Profile
@sullyo
sullyo / collect_code.sh
Created September 22, 2024 18:49
Clones a github repo and puts all the code into a single text file perfect for LLMs
#!/bin/bash
# Check if a GitHub URL is provided as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <github_url>"
exit 1
fi
# Store the GitHub URL
GIT_URL="$1"
@jonathontoon
jonathontoon / pico-spiral.p8
Created October 11, 2021 10:31
A quick spiral visualization. Written in Lua for PICO-8.
pico-8 cartridge // http://www.pico-8.com
version 33
__lua__
function _init()
frme=0
pi=3.141592653589793
cx=64
cy=64

Raise Open File Limits in OS X

in OS X 10.4 to macOS sierra 10.12 and maybe higher!

Create Launcher Script:

/Library/LaunchDaemons/limit.maxfiles.plist

Copy this entire code block and paste it into your terminal and push Return to create this file for you with correct permissions. It will (probably) ask for your password:

@n8henrie
n8henrie / Remindersapp_Export.ics
Created May 26, 2014 18:15
.ics file exported from Reminders.app on OSX, with a few comments and examples of each of the fields.
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Apple Inc.//Mac OS X 10.9.3//EN
CALSCALE:GREGORIAN
X-COMMENT: Copy your timezone data from an exported .ics file from Reminders.app.
BEGIN:VTIMEZONE
TZID:America/Denver
BEGIN:DAYLIGHT
TZOFFSETFROM:-0700
@niksumeiko
niksumeiko / git.migrate
Last active April 29, 2025 08:03
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.