Skip to content

Instantly share code, notes, and snippets.

View amosshapira's full-sized avatar

Amos Shapira amosshapira

  • Sydney, Australia
View GitHub Profile
Emscripten does not work with LLVM 3.3, which is provided with Fedora 19.
Download LLVM 3.2 and Clang from http://llvm.org/releases/. Copy the clang
source code into tools\clang, and run make (but not make install).
Set LLVM_ROOT='/home/yourname/Development/llvm-3.2.src/Release+Asserts/bin' in ~./emscripten.
sudo yum install nodejs - I found that chromium installed later versions
of the v8 package, which meant that nodejs would not install. So download
Node.js from http://nodejs.org/download/.
#!/bin/bash
set -e
cd ~/
wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.65.tar.gz
tar -zxf mysql-5.1.65.tar.gz
cd mysql-5.1.65
./configure '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-fast-mutexes' '--with-big-tables' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--without-readline' '--with-ssl' '--without-docs' '--with-extra-charsets=all' '--with-plugins=max' '--with-embedded-server' '--with-embedded-privilege-control'
make
#
# file_content.rb
#
# Amos Shapira: cloned from exists.rb at https://gist.github.com/chrisleavoy/5312010,
# returns the content of the file found
#
# James Fellows 8/8/12: cloned from git://gist.github.com/1160472.git then
# modified to resolve puppet:/// paths
#
# Copyright 2011 Puppet Labs Inc.