Skip to content

Instantly share code, notes, and snippets.

View chrislavender's full-sized avatar

Chris Lavender chrislavender

View GitHub Profile
@ridercz
ridercz / gopro.scad
Last active February 8, 2022 15:47
GitHub mount library for OpenSCAD
/****************************************************************************
* Altair's GoPro mounts library for OpenSCAD version: 1.0.0 (2021-04-16) *
* Copyright (c) Michal A. Valasek, 2021 license: CC BY-NC-SA 4.0 *
* ------------------------------------------------------------------------ *
* www.rider.cz * www.altair.blog *
****************************************************************************/
// Demo
$fn = 16;
color("#cc3333") gopro_mount_f();
@chrislavender
chrislavender / gist:cad26500c9655627544f
Last active March 29, 2025 22:12
HTTP Live Streaming Tutorial

Note: This is an older post that I did back when I thought I might have time to be a blogger. Oh I was oh so wrong. However, it has proven useful for some folks on stackoverflow. Thus I'm keeping it alive here on Gist.

One of my past projects dealt heavily with an open source Apple technology called HTTP Live Streaming. It’s an HTTP based streaming protocol that at its most fundamental level provides a way to stream video and audio from just about any server with nothing but a few free software tools provided by Apple**. However, it has a few additional features that I think make it a really exciting tool. Yet, I haven’t seen HTTP Live Streaming used very much. This is probably mainly due to the combination of a lack of good/clear documentation, and Apple’s Live Streaming Developer Tools being command line based also make the barrier to entry higher than many developers want to deal with.

The hope is to share my understanding of how to use this technology to:

@Marlunes
Marlunes / hide_status_bar
Created July 16, 2013 07:54
FORCE HIDE STATUS BAR FOR IOS 7 AND 6
//viewDidload
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
// iOS 7
[self prefersStatusBarHidden];
[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];
} else {
// iOS 6
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
}
@IanVaughan
IanVaughan / uninstall_gems.sh
Created June 9, 2012 20:37
Uninstall all rbenv gems
#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
gem install bundler
}