Skip to content

Instantly share code, notes, and snippets.


Øyvind Saltvik fivethreeo

View GitHub Profile
fivethreeo /
Last active Jan 16, 2019
Script to export bezier curves from blender to three.js
import bpy
myCurve =[0] # here your curve
spline= myCurve.splines[0] # maybe you need a loop if more than 1 spline
scale = 200
curvepath_template = """
var curves = new THREE.CurvePath();
View django-vpc.cfn.json
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Provision a VPC (across two AZs) Output the VPC, Subnet, and SG IDs.",
"Parameters": {
"KeyName": {
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the Elastic Beanstalk and Bastion hosts",
"Type": "String",
"MinLength": "1",
fivethreeo /
Created Jan 24, 2016
lxde with x11vnc and mopidy-spotify on osmc
# sudo bash
# lxde with x11vnc and mopidy-spotify on osmc
# 1 or 2
View form.tex
\usepackage{amssymb} % needed for math
\usepackage{amsmath} % needed for math
\usepackage[utf8]{inputenc} % this is needed for german umlauts
\usepackage[norsk]{babel} % this is needed for german umlauts
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
\usepackage[margin=2.5cm]{geometry} %layout
\usepackage{hyperref} % this is needed for forms and links within the text
fivethreeo / coreos-beta-pv.template
Created Sep 25, 2015
coreos-beta-pv.template with allowedvalues
View coreos-beta-pv.template
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CoreOS on EC2:",
"Mappings" : {
"RegionMap" : {
"eu-central-1" : {
"AMI" : "ami-04bcbc19"
fivethreeo / makevm.bat
Last active Sep 18, 2015
A batfile to bring up a coreos node in virtualbox
View makevm.bat
@echo off
setlocal EnableDelayedExpansion EnableExtensions
rem Install virtualbox and extensions
rem Install golang and set up PATH, GOROOT and GOPATH
rem Drop a ssh pubkey with the extension .pub in the same directory as this file
rem Key must be in ssh-(rsa|dsa) KEY form. No headers like ------------------
rem Copy from puttygen do not save from puttygen.
rem Run this batch file, use --noget if you change the go programs locally
rem Log in using username core not coreos (1 hour wasted) using the private key in putty
You can’t perform that action at this time.