Skip to content

Instantly share code, notes, and snippets.

View ziodave's full-sized avatar

David Riccitelli ziodave

View GitHub Profile
@jwage
jwage / SplClassLoader.php
Last active August 16, 2024 17:36
Add MIT license.
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"
@davidandrzej
davidandrzej / seq-union.scala
Created December 9, 2012 18:25
Scala Seq.union behavior - come on!
scala> val x = Seq(1,2)
x: Seq[Int] = List(1, 2)
scala> val y = Seq(2,3)
y: Seq[Int] = List(2, 3)
scala> x.union(y)
res0: Seq[Int] = List(1, 2, 2, 3)
@ziodave
ziodave / ckan.sh
Last active August 29, 2015 14:00
install CKAN on Mac OS X (very alpha)
#!/bin/bash
export CKAN_HOME=~/Developer/ckan
export SOLR_TMPL_CONF=/usr/local/opt/solr/libexec/example/solr
install_prerequisites() {
brew install solr
brew install postgres
brew install python
pip install --upgrade setuptools
@ziodave
ziodave / 1.patch
Last active March 14, 2024 13:51
bitnami-docker-wordpress-nginx / Dockerfile patch to add php-redis
diff --git a/6/debian-12/Dockerfile b/6/debian-12/Dockerfile
index 7bce99f..64678a4 100644
--- a/6/debian-12/Dockerfile
+++ b/6/debian-12/Dockerfile
@@ -32,6 +32,34 @@ ENV APP_VERSION="6.0.0" \
NGINX_HTTP_PORT_NUMBER="" \
PATH="/opt/bitnami/common/bin:/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/wp-cli/bin:/opt/bitnami/nginx/sbin:/opt/bitnami/mysql/bin:$PATH"
+ARG REDIS_VERSION=5.3.7
+RUN set -ex ; \