Skip to content

Instantly share code, notes, and snippets.

@sixman9
sixman9 / install-llvm.sh
Last active December 3, 2022 22:25
Bash script to download and build LLVM and Clang
#!/bin/bash
# install-llvm.sh
# Copyright (c) 2010 Ben Karel. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE.txt file or at http://eschew.org/txt/bsd.txt
# This file was found at http://foster.googlecode.com/hg/scripts and updated by Richard Joseph, Nov 2012
#The current LLVM and CLANG version can be found at http://llvm.org/releases/download.html
@sixman9
sixman9 / blurayInstall.sh
Last active January 19, 2018 13:44
Install Bluray capability to Ubuntu/debian
#!/bin/bash
#Found at http://askubuntu.com/a/193065/35729
#don't forget to 'chmod +x <thisFile>'
sudo add-apt-repository ppa:motumedia/mplayer-daily
sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get upgrade
@sixman9
sixman9 / unix2DosInstall.sh
Created November 16, 2012 00:02
Small script to instate the missing unix2dos and dos2unix command on Ubuntu
#!/bin/bash
#Install unix2dos and dos2unix on Ubuntu Linux
#unix2dos and dos2unix are replace with todos and fromdos
#We'll install those and then alias them
sudo apt-get install tofrodos
sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix
sudo ln -s /usr/bin/todos /usr/bin/unix2dos
@sixman9
sixman9 / installBrowserFlash.sh
Created November 7, 2012 11:13
Installs Flash browser plugin for 32bit or 64bit debian-based Linux
#!/bin/bash
#moaiLinuxUnoffical.sh
#Determine the OS architecture (32/64bit) using 'uname -m', then run the required commands (see http://stackoverflow.com/a/106416/304330)
ourArch=$(uname -m)
#Linux-friendly version of Moai
#see also git://github.com/shadowmint/moai-dev.git
githubRepoOwner="spacepluk"
@sixman9
sixman9 / buildBox2dCmake.sh
Created November 5, 2012 16:39
Box2d bash build script for CMake, as per box2d instructions - Place at top of Box2d SVN checkout
#!/bin/bash
pushd ./Box2D/Build > /dev/null 2>&1
#Clean build dir
rm -fr ./*
#-DCMAKE_INSTALL_PREFIX:PATH=/opt/Box2D
cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON -D CMAKE_INSTALL_PREFIX=/opt/Box2D ..
make
sudo make install
@sixman9
sixman9 / installCinnamonDesktopUbuntu12_xx.sh
Created October 18, 2012 13:15
Install Cinnamon desktop on Ubuntu 12.04 & 12.10
#!/bin/bash
#Cinnamon 1.6 Released: Install it on Ubuntu 12.04 & 12.10
#Found at http://handytutorial.com/cinnamon-1-6-released-install-ubuntu-12-04-12-10/ and mny other places ;-)
sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon
@sixman9
sixman9 / gist:3814869
Created October 1, 2012 22:32
3D Indice loop from Stackoverflow
Found @ http://stackoverflow.com/a/7723372/304330
//Indices loop
byte indices[6 * 6];
int n = 0;
for(int i = 0; i < 4 * 6; i += 4)
{
indices[n++] = i;
@sixman9
sixman9 / gist:3811895
Created October 1, 2012 13:49 — forked from notanumber/gist:3353668
Simple Triangle
#ifndef TEMPLATEGAME_H_
#define TEMPLATEGAME_H_
#include "gameplay.h"
using namespace gameplay;
class TestApp : public Game
{
public:
@sixman9
sixman9 / gist:3811894
Created October 1, 2012 13:48 — forked from notanumber/gist:3350538
Simple Quad
#ifndef TEMPLATEGAME_H_
#define TEMPLATEGAME_H_
#include "gameplay.h"
using namespace gameplay;
class TestApp : public Game
{
public:
@sixman9
sixman9 / sbt
Created September 14, 2012 10:58 — forked from trygvis/sbt
My SBT wrapper scripts
#!/bin/sh
if [ -z "$SBT_VERSION" ]
then
SBT_VERSION=0.7.7
fi
JAR=$HOME/.sbt/sbt-launch-$SBT_VERSION.jar
mkdir -p $HOME/.sbt