Skip to content

Instantly share code, notes, and snippets.

View ryankurte's full-sized avatar
🥔

ryan ryankurte

🥔
View GitHub Profile
@ryankurte
ryankurte / pixy_case.scad
Created January 18, 2016 05:51
CMUCam 5 Pixy Case
conv = 25.4;
pixy_width = 54;
pixy_height = 51;
wall = 3;
clearance = 1;
thickness = 2;
hole_size = 4;
@ryankurte
ryankurte / gas_knob.scad
Created January 18, 2016 05:50
Replacement knob for gas cooker
height = 7;
d_outside = 17.2;
hole_size = 3.4;
hole_taper = 6;
thickness = 3;
inner = 6;
inner_key = 4.4;
@ryankurte
ryankurte / gencert.sh
Last active August 30, 2016 02:19
Helper script for generating self signed CAs and certificates
#!/bin/bash
#
set -e
if [ "$#" -ne 3 ] && [ "$#" -ne 4 ]; then
echo "Usage: $0 CA NAME ORG"
echo "CA - name of fake CA"
echo "NAME - name of fake client"
echo "ORG - organisation for both"

Keybase proof

I hereby claim:

  • I am ryankurte on github.
  • I am ryankurte (https://keybase.io/ryankurte) on keybase.
  • I have a public key whose fingerprint is E3E8 7FF9 8CB0 A229 342C 3169 40A6 AB2B 3548 F685

To claim this, I am signing this object:

@ryankurte
ryankurte / gist:5d74835753f361a60cae
Created December 15, 2015 04:13
efm32gg-st3700 yotta getting started
yotta init
yotta target efm32gg-stk-gcc
yotta build
@ryankurte
ryankurte / README.md
Last active August 31, 2015 03:30
Compile Clang/LLVM for cross building

Test with: clang -target arm-none-eabi -mcpu=cortex-m3 --sysroot=~/.env/gcc-arm-none-eabi -c test.c

@ryankurte
ryankurte / progressbar.c
Created June 28, 2015 21:21
C Command Line Progress Bar
void print_progress(unsigned int bar_size, float progress)
{
printf("[");
int8_t pos = bar_size * progress;
for (int i = 0; i < bar_size; ++i) {
if (i < pos) {
PRINTF("=");
} else if (i == pos) {
PRINTF(">");
@ryankurte
ryankurte / app.init.d
Last active August 29, 2015 14:23
Node.js init.d script
#!/bin/bash
### BEGIN INIT INFO
# Provides: [APP_NAME_HERE]
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Forever running [APP_NAME_HERE]
# Description: Forever running [APP_NAME_HERE]
### END INIT INFO
@ryankurte
ryankurte / nodeenv.sh
Last active March 10, 2016 08:27
Project local node.js installer
#!/bin/bash
# Setup a project local environment for a nodejs project
# This installs and links a local node instances so that node and application versions can be coupled.
# Installation is both local to the project, and does not require superuser permissions.
# Inspired by Python's virtualenv. For more information, see http://wp.me/pZZvH-an
#
# Usage:
# 1. Add this file to your node project
# 2. Run with `source ./setup.sh` to setup a local node.js instance
#
@ryankurte
ryankurte / gcc-arm-none-eabi.rb
Last active August 29, 2015 14:20
Homebrew formula for precompiled gcc-arm-none-eabi from launchpad
class GccArmNoneEabi < Formula
homepage "https://launchpad.net/gcc-arm-embedded/"
version "4.9-2015-q1"
url "https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q1-update/+download/gcc-arm-none-eabi-4_9-2015q1-20150306-mac.tar.bz2"
sha1 "da07fd4edc09da8748b3a61252eed793059c138f"
revision 1
def install
binaries = [