Skip to content

Instantly share code, notes, and snippets.

View h4ck3rm1k3's full-sized avatar

James Michael DuPont h4ck3rm1k3

View GitHub Profile
This seems to work if I download i t from drush :
php -c ~/ drupal/drush/drush.php --uri=http://wiki.sharedmap.org/test/drupal dl drupal-7.x
spilotro:~/wiki.sharedmap.org/test/drupal-7.x-dev> php -c ~/ ../drupal/drush/drush.php --uri=http://wiki.sharedmap.org/test/drupal-7.x-dev/ status
Drupal Root : /home/wikisharedmaporg/wiki.sharedmap.org/test/drupal-7.x-dev
Drupal version : 7.5-dev
Catchable fatal error: Argument 2 passed to t() must be an array, null given, called in /home/wikisharedmaporg/wiki.sharedmap.org/test/drupal/drush/includes/drush.inc on line 269 and defined in /home/wikish\
aredmaporg/wiki.sharedmap.org/test/drupal-7.x-dev/includes/bootstrap.inc on line 1283
@h4ck3rm1k3
h4ck3rm1k3 / vanna build log
Created October 18, 2011 06:48
vanna build on my computer
rvm use ruby-1.9.2-p290
Using /home/mdupont/.rvm/gems/ruby-1.9.2-p290
rvm do bundle install
....
mdupont@space-station:~/experiments/diaspora_deps/vanna_orig$ rvm do rake 2>&1 | tee original.txt
ruby test/basic_test.rb
/home/mdupont/.rvm/gems/ruby-1.9.2-p290/gems/turn-0.8.3/lib/turn/autorun/minitest.rb:14:in `<top (required)>': MiniTest v1.6.0 is out of date. (RuntimeError)
`gem install minitest` and add `gem 'minitest' to you test helper.
@h4ck3rm1k3
h4ck3rm1k3 / bboxfilter.cgi
Created January 28, 2012 17:11 — forked from andrewharvey/bboxfilter.pl
XSL to convert http://api.fosm.org/api/0.6/changesets into an Atom/GeoRSS feed
#!/usr/bin/perl -wT
# This script uses XML::Atom::Filter to filter an existing FOSM recent changes
# feed given a query bbox based on the georss:box for each entry in the feed
#
# Ideally we would implement it on the server for /feed to return the static
# atom feed from disk, and /feed?bbox to call this CGI script.
#
# This script is licensed CC0 by Andrew Harvey <andrew.harvey4@gmail.com>
#
@h4ck3rm1k3
h4ck3rm1k3 / capwiz automation
Created March 2, 2012 15:28
automate usage of capwiz
use strict;
use warnings;
use WWW::Mechanize;
use LWP::Debug qw(+);
use YAML;
my $subject;
my $body;
@h4ck3rm1k3
h4ck3rm1k3 / OSMDevOAuthClientExample.pl
Created March 30, 2012 17:00
OSMDevOAuthClientExample
#!perl -w
use strict;
use lib qw(lib);
#use JSON::Any;
#put this in the .osmdev_config to start it up
#consumer_key = yUV5Mk9FZYEGdFEfZ786AiMl6R9D0flYWXsu10bQ
#consumer_secret = jJs8XFPjywSyrVlwkNvLanh7ZVyHaJWTQHWFOn1U
my $CONFIG = ".osmdev_config";
@h4ck3rm1k3
h4ck3rm1k3 / Makefile.PL
Created April 1, 2012 10:49
update of dbd-spatialite-read-only
Path: .
URL: http://dbd-spatialite.googlecode.com/svn/trunk
Repository Root: http://dbd-spatialite.googlecode.com/svn
Repository UUID: d2782b3c-602d-90c4-b058-38e27e1bf60e
Revision: 31
Node Kind: directory
Schedule: normal
Last Changed Author: lokkju
Last Changed Rev: 31
Last Changed Date: 2012-01-12 16:07:07 -0800 (Thu, 12 Jan 2012)
@h4ck3rm1k3
h4ck3rm1k3 / ServerSocket.pm
Created August 19, 2012 04:23
ZeroMQ example
package Functions::ServerSocket;
################################################
# This package will contain the functions to send and receive message
# on the server side
################################################
use strict;
use warnings;
use ZeroMQ qw/:all/;
@h4ck3rm1k3
h4ck3rm1k3 / buildlog.txt
Created September 20, 2012 13:46
Build log and runtime erros for fspot
make
Building ./F-Spot.sln
/usr/lib/mono/3.5/Microsoft.Common.targets: warning : Reference 'nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' not resolved
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Found a conflict between : 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e0
@h4ck3rm1k3
h4ck3rm1k3 / signpost.blend
Created October 24, 2012 08:27
Blender Wikipedia Signpost
This file has been truncated, but you can view the full file.
@h4ck3rm1k3
h4ck3rm1k3 / gist:9976430
Last active August 29, 2015 13:58
cmake for opencv cgi
# ----------------------------------------------------------------------------
# CMake file for C samples. See root CMakeLists.txt
#
# ----------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8)
SET(opencv "../")
include_directories(
${opencv}include
${opencv}modules/objdetect/include