Skip to content

Instantly share code, notes, and snippets.

View DennisSnijder's full-sized avatar

Dennis Snijder DennisSnijder

View GitHub Profile
@DennisSnijder
DennisSnijder / php7.sh
Created May 1, 2017 20:36
Cached PHP7 @ Travis
#Downloading the .pearrc, travis doesn't allow me to cache files...
curl -s -o $HOME/.pearrc https://gist.githubusercontent.com/DennisSnijder/66cc4de2da72e23482193c52c5fcf39e/raw/ab510552fd9515fdec74f97b39f3c825434eeb57/.pearrc
#Checking if the PHP7 binaries are already there.
if [ -d "$HOME/.phpenv/versions/7.0.17/include" ]; then
echo "PHP7 already installed, setting php env..."
phpenv global 7.0.17
exit 0
fi
#PEAR_Config 0.9
a:13:{s:15:"preferred_state";s:6:"stable";s:8:"temp_dir";s:17:"/tmp/pear/install";s:12:"download_dir";s:17:"/tmp/pear/install";s:7:"bin_dir";s:40:"/home/travis/.phpenv/versions/7.0.17/bin";s:7:"php_dir";s:47:"/home/travis/.phpenv/versions/7.0.17/share/pear";s:7:"doc_dir";s:41:"/home/travis/.phpenv/versions/7.0.17/docs";s:8:"data_dir";s:41:"/home/travis/.phpenv/versions/7.0.17/data";s:7:"cfg_dir";s:40:"/home/travis/.phpenv/versions/7.0.17/cfg";s:7:"www_dir";s:40:"/home/travis/.phpenv/versions/7.0.17/www";s:7:"man_dir";s:40:"/home/travis/.phpenv/versions/7.0.17/man";s:8:"test_dir";s:42:"/home/travis/.phpenv/versions/7.0.17/tests";s:10:"__channels";a:3:{s:5:"__uri";a:0:{}s:11:"doc.php.net";a:0:{}s:12:"pecl.php.net";a:0:{}}s:13:"auto_discover";i:1;}
@DennisSnijder
DennisSnijder / GL30Abstraction.java
Last active October 20, 2023 23:56
this might be helpful for people who are having problems with GL30 on osx
package abstraction;
import Util.OsCheck;
import org.lwjgl.opengl.APPLEVertexArrayObject;
import org.lwjgl.opengl.GL30;
public final class GL30Abstraction {
public static void glBindVertexArray( int array ) {
OsCheck.OSType ostype = OsCheck.getOperatingSystemType();