Skip to content

Instantly share code, notes, and snippets.

View emmasteimann's full-sized avatar

Goose Goosington (Emma Steimann) emmasteimann

  • PNF-404
View GitHub Profile
@emmasteimann
emmasteimann / build.sh
Created June 10, 2021 10:50 — forked from johndpope/build.sh
libceres.a universal build
#!/bin/bash
#brew install eigen3
EIGEN_PATH=/opt/local/include/eigen3
# build for device
cmake . -DCMAKE_TOOLCHAIN_FILE=./cmake/iOS.cmake -DEIGEN_INCLUDE_DIR=${EIGEN_PATH} -DIOS_PLATFORM=OS -DEIGENSPARSE=ON
make -j8
# install headers in ..
make install
//
// GradientView.swift
// Aura
//
// Created by Egor Sakhabaev on 23.07.17.
// Copyright © 2017 Egor Sakhabaev. All rights reserved.
//
import UIKit
@emmasteimann
emmasteimann / 1_kubernetes_on_macOS.md
Created July 31, 2018 21:43 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@emmasteimann
emmasteimann / compile_ffmpeg.md
Created July 25, 2018 18:30 — forked from teocci/compile_ffmpeg.md
Compile FFmpeg on Ubuntu 16.04

Compile FFmpeg on Ubuntu

This basic guide supports Ubuntu Xenial Xerus 16.04 and will enable several external encoding and decoding libraries: libfaac (AAC encoder), libfdk-aac (AAC encoder), libmp3lame (MP3 encoder), libopencore-amr (AMR encoder/decoder), librtmp (for additional RTMP protocols), libtheora (Theora encoder), libvorbis (Vorbis encoder), libvpx (VP8 encoder/decoder), and libx264 (H.264 encoder). These are optional and may be omitted if desired. This guide will also install many filters (see the filter list in the [Filtering Guide][1].

Note: Copy and paste the whole code box for each step.

Preparation

@emmasteimann
emmasteimann / Model.cpp
Created August 31, 2016 11:38 — forked from emkooz/Model.cpp
Assimp loader
#include "Model.hpp"
bool core::ModelLoader::loadModel(const char* fp, Model* m)
{
core::log("Loading " + (std::string)fp, core::green);
Assimp::Importer importer; // used to import the model
const aiScene* scene = importer.ReadFile(fp,
aiProcess_Triangulate |

Problem

RBenv not being detected inside tmux

# rbenv versions
  system
  1.8.7
  1.8.7-p358
 1.9.2
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
IFS="$(printf '\n\t')"
mkdir -p ~/.ssh
if ! [[ -f ~/.ssh/authorized_keys ]]; then
echo "Creating new ~/.ssh/authorized_keys"
touch ~/.ssh/authorized_keys
fi
user=$1

Introduction

  • This script lets you set up and use a temporary DigitalOcean droplet to download torrent files.
  • Once downloaded, they can be streamed down to your local machine.
  • This uses transmission-cli for the torrent client, and nginx to serve files.

Setup on Local Machine

  • This assumes that you have a DigitalOcean account and tugboat set up, as well as seedbox-setup.sh present in the current directory.
#!/usr/bin/ruby
# brew install portaudio
# gem install bloopsaphone
require 'bloops'
# the bloops o' phone
bloops = Bloops.new
bloops.tempo = 150