Skip to content

Instantly share code, notes, and snippets.

View danburkhol's full-sized avatar

Daniel Burkholder danburkhol

View GitHub Profile
@danburkhol
danburkhol / gist:b2d0d42bdafa5eb5d235ee5fcf09595d
Created August 8, 2023 21:31
ytdl video downloader script
#!/bin/bash
# Check if the youtube-dl command is available
# https://github.com/ytdl-org/youtube-dl
if ! command -v youtube-dl &> /dev/null; then
echo "youtube-dl command not found. Please install it first."
exit 1
fi
options=()
#!/bin/bash
# The purpose of this script is to display calendar events from a specified
# calendar using icalBuddy. The script takes two arguments: the day for which
# to retrieve events (today, yesterday, or tomorrow) and the calendar email
# address. The output is formatted and can include replacements of specific
# event names with custom strings. Before executing, the script checks if
# icalBuddy and Homebrew are installed and prompts the user to install them
# if they are not already present.
@danburkhol
danburkhol / aoc_day3.php
Created December 3, 2022 19:04
AOC 2022 Day3
<?php
/*
The list of items for each rucksack is given as characters all on a single line. A given rucksack always has the same number of items in each of its two compartments, so the first half of the characters represent items in the first compartment, while the second half of the characters represent items in the second compartment.
To help prioritize item rearrangement, every item type can be converted to a priority:
@danburkhol
danburkhol / collaborate_on_branches.md
Created July 20, 2017 19:49 — forked from elfrank/collaborate_on_branches.md
How to work on someone else's branch

#How to work on someone else's branch

Let's assume you need to collaborate with Batman on his forked repository.

  • First, you need to add his fork as a remote.
git remote add batman git@github.com:batman/iambatman.git
  • Now, you can fetch, pull and push to his fork (if you have permissions to do so).