Skip to content

Instantly share code, notes, and snippets.

Fille bobmoff

Block or report user

Report or block bobmoff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bobmoff
bobmoff / Unity 3D Linux Standalone Build running in Docker
Last active Jun 27, 2017
Unity 3D Linux Standalone Build running in Docker (Development and Production)
View Unity 3D Linux Standalone Build running in Docker
This file exists only to make up the name of the gist
@bobmoff
bobmoff / index.html
Last active Feb 18, 2017 — forked from anonymous/index.html
Positron
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Positron Preview</title>
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v0.28.0/mapbox-gl.css" />
<script src="https://api.mapbox.com/mapbox-gl-js/v0.28.0/mapbox-gl.js"></script>
<style>
@bobmoff
bobmoff / Unity Server in Docker Container
Last active Oct 17, 2017
Running Unity headless unix build in Docker container on Docker Cloud
@bobmoff
bobmoff / BouncyWall
Last active Jan 22, 2016
Bouncy wall physics behaviour for Cocktail Cruise
View BouncyWall
using UnityEngine;
using System.Collections;
public class Wall : MonoBehaviour {
Vector2 DesiredLocalPosition;
Quaternion DesiredRotation;
Transform DesiredTransform;
Rigidbody2D Body;
View keybase.md

Keybase proof

I hereby claim:

  • I am bobmoff on github.
  • I am bobmoff (https://keybase.io/bobmoff) on keybase.
  • I have a public key whose fingerprint is 7B1A 17FD 3E98 B2EF 0B65 4355 F53F FB62 8E92 C33C

To claim this, I am signing this object:

@bobmoff
bobmoff / ufw-dynamic-host-update
Created Apr 26, 2014
I found a very useful script that creates rules dynamically for specific hosts in this blog. The script needs to be run with cron, so it can lookup a hostname and add/delete rules in case the IP changed. The content of /etc/ufw-dynamic-hosts.allow could look like this: tcp:22:yourpc.no-ip.org and a crontab entry for executing the script every fi…
View ufw-dynamic-host-update
#!/bin/bash
HOSTS_ALLOW=/etc/ufw-dynamic-hosts.allow
IPS_ALLOW=/var/tmp/ufw-dynamic-ips.allow
add_rule() {
local proto=$1
local port=$2
local ip=$3
@bobmoff
bobmoff / MongoDB Install Script
Last active Nov 4, 2015
Script to Install MongoDB on Ubuntu / Digital Ocean Droplet
View MongoDB Install Script
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
apt-get -y update
apt-get install -y mongodb-org
View install-nodejs.sh
#!/bin/sh
CURRENT=$(node -v)
VERSION=$(curl -L -s http://nodejs.org/dist/latest/ \
| egrep -o '[0-9]+\.[0-9]+\.[0-9]+' \
| tail -n1)
PLATFORM=linux
ARCH=x64
PREFIX="/usr/local"
View TouchPriority.h
//
// SKNode+TouchPriority.h
// ButtonLab
//
// Created by Fille Åström on 10/20/13.
// Copyright (c) 2013 IMGNRY. All rights reserved.
//
#import <SpriteKit/SpriteKit.h>
View RSTimingFunction.h
//
// RSTimingFunction.h
//
// Created by Raphael Schaad on 2013-09-28.
// This is free and unencumbered software released into the public domain.
//
#import <Foundation/Foundation.h>
You can’t perform that action at this time.