Skip to content

Instantly share code, notes, and snippets.

View joshbuhler's full-sized avatar
🏔️
Stuff. And things.

Joshua Buhler joshbuhler

🏔️
Stuff. And things.
View GitHub Profile
https://everything2.com/index.pl?node_id=1520430
99991 11113 11115 11117 11119 11133 11135 11137 11139 11153
11155 11157 11159 11173 11175 11177 11179 11193 11195 11197
11199 11313 11315 11317 11319 11333 11335 11337 11339 11353
11355 11357 11359 11373 11375 11377 11379 11393 11395 11397
11399 11513 11515 11517 11519 11533 11535 11537 11539 11553
11555 11557 11559 11573 11575 11577 11579 11593 11595 11597
11599 11713 11715 11717 11719 11733 11735 11737 11739 11753
11755 11757 11759 11773 11775 11777 11779 11793 11795 11797
@joshbuhler
joshbuhler / Govee_led_ir.md
Created July 30, 2022 16:40
IR codes for a Govee 44-button remote.

Govee 44 Button Remote

IR codes for a Govee 44-button remote, captured using a Control4 CORE-1 controller. Buttons are labeled based on the top-left of the remote. From top to bottom, 1-11, from left to right, A-D.

1A - Brightness Up

0000 006f 0022 0002 0157 00a6 0016 0015 0016 0015 0015 0015 0016 0015 0016 0015 0015 0015 0016 0015 0016 0015 0015 003e 0016 003e 0016 003e 0015 003e 0016 003e 0016 003e 0015 003e 0016 003e 0016 0015 0016 0015 0015 003f 0016 003e 0016 003f 0015 0015 0016 003e 0015 0015 0016 003e 0015 003e 0016 0015 0015 0015 0016 0015 0016 003e 0016 0015 0016 003e 0016 05c3 0156 0053 0016 0de2
@joshbuhler
joshbuhler / stringsValidator.sh
Created March 20, 2019 20:22
Used to run plutil -lint against all .strings files found in a folder, or its subfolders.
# Usage: sh stringsValidator.sh ~/path/to/strings/folder
rootFolder=.
if [[ $1 ]]; then
rootFolder=$1
fi
stringsFiles=$(find $rootFolder -type f -name "*.strings");
for stringsFile in $stringsFiles; do
plResult=$(plutil -lint $stringsFile)

Keybase proof

I hereby claim:

  • I am joshbuhler on github.
  • I am joshbuhler (https://keybase.io/joshbuhler) on keybase.
  • I have a public key whose fingerprint is 3883 BF29 5216 B107 D605 6F70 2C04 B9F3 70F4 C9D1

To claim this, I am signing this object:

@joshbuhler
joshbuhler / Date subtraction
Created April 8, 2013 18:01
Simple method for calculating a date that was one week, one month, 6 months, or a year ago.
// DateFilter is just an enum for some preset dates to filter on.
- (NSDate *) dateForFilter:(DateFilter)filterType
{
NSDate *today = [NSDate date];
NSCalendar *cal = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *dateComp = [[NSDateComponents alloc] init];
switch (filterType) {
case DateFilterWeek:
@joshbuhler
joshbuhler / Build number auto-bump
Last active December 15, 2015 21:09
This will automatically bump the build number of your project's info.plist file when creating an archive for distribution of your app. To use, add this script as a "Run Script" phase to your Xcode build phases, *before* the "Copy Bundle Resources" phase. (It needs to be here so that the updated info.plist file will be copied into the new archive…
#!/bin/bash
##################################################
#
# BuildVersion incrementing script v1.0
#
##################################################
processedPlist="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
projectPlist="${INFOPLIST_FILE}"
@joshbuhler
joshbuhler / Git Scrum alias
Last active December 14, 2015 13:39
Quick git log of the previous day's commits. Just add this as an alias to your ~/.gitconfig file. Use by invoking the "git scrum" command.
scrum = log --since '1 day ago' --no-merges --pretty=format':%C(yellow)%h %aN%n %B%n' --author <AUTHOR_EMAIL>
@joshbuhler
joshbuhler / Terminal Tab Names
Last active October 2, 2015 19:38
Custom tab names for Terminal.app. Just add this to your .bash_profile and restart Terminal.
# Add to .bash_profile, then restart Terminal (or open a new tab.)
# Usage: tabname "<TAB_NAME>"
#
# Quotes around the new tab name are optional - but make it easier to
# add tabnames that contain spaces or special characters.
tabname () {
echo -e "\033];$1\007";
}
@joshbuhler
joshbuhler / gist:1424129
Created December 2, 2011 17:41
MoviePlayer notifications
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidStart:)
name:@"UIMoviePlayerControllerDidEnterFullscreenNotification"
object:nil];
// Apparently Apple had this notification misspelled in iOS < 4.3
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackDidStart:)
name:@"UIMoviePlayerControllerDidEnterFullcreenNotification"
object:nil];
// grab the version number from the app bundle
NSString *versionString = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
versionLabel.text = [NSString stringWithFormat:@"Version %@", versionString];