Skip to content

Instantly share code, notes, and snippets.

View kamaulynder's full-sized avatar
💭
Need great Female Tech Talent, talk to me!!

Linda Kamau kamaulynder

💭
Need great Female Tech Talent, talk to me!!
View GitHub Profile
#!/bin/bash
cd .
START_TIME=$(date +%s)
# Check if behat, phpunit and phpspec is installed
if [ ! -f "bin/phpspec" ] || [ ! -f "bin/behat" ] || [ ! -f "bin/phpunit" ]; then
# Install behat
echo "Installing testing tools..."
1 ---
2 - hosts: all
3 user: vagrant
4 sudo: True
5 connection: ssh
6 vars:
7 site_name: ping.lan
8 mnt_dir: /mnt/ping
9 mysql_database: ping
10 mysql_user: root
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 Vagrant.configure("2") do |config|
5 config.vm.box = "ubuntu/trusty64" # provided by VagrantCloud
6
7 config.vm.provider :virtualbox do |vb|
8 vb.name = "ping"
9 end
10
==> default: Running provisioner: puppet...
==> default: Running Puppet with main.pp...
==> default: stdin: is not a tty
==> default: Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
==> default: (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1117:in `issue_deprecation_warning')
==> default: Debug: Runtime environment: puppet_version=3.7.1, ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8
==> default: Debug: Failed to load library 'selinux' for feature 'selinux'
==> default: Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class apt at /tmp/vagrant-puppet-3/manifests/main.pp:11 on node ushahidi-platform.dev
==> default: Wrapped exception:
==> default: Could not find declared class apt
@kamaulynder
kamaulynder / migration script
Last active August 29, 2015 14:06
Testing current migration script
2014-09-26 11:49:51 --- NOTICE: Cleaning DB in /private/var/wwwdocs/Lamu/modules/minion/classes/Kohana/Minion/Task.php:250
2014-09-26 11:49:57 --- NOTICE: Fetching categories in /private/var/wwwdocs/Lamu/application/classes/Task/Ushahidi/Import2x.php:359
2014-09-26 11:49:57 --- NOTICE: Importing categories in /private/var/wwwdocs/Lamu/application/classes/Task/Ushahidi/Import2x.php:359
Minion_Exception [ 0 ]: Error creating tag. Details:
{"errors":[{"message":"Undefined index: SERVER_NAME","code":"Notice","class":"ErrorException","file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/URL.php","line":86,"trace":[{"file":"\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/URL.php","line":86,"function":"error_handler","class":"Kohana_Core","type":"::","args":[8,"Undefined index: SERVER_NAME","\/private\/var\/wwwdocs\/Lamu\/vendor\/kohana\/core\/classes\/Kohana\/URL.php",86,{"protocol":"http","index":true,"base_url":"\/Lamu\/httpdocs\/","port":null,"domain":null}]},{"fil
/**
* Map Settings
*
* @module MapSettingsView
* @author Ushahidi Team <[email protected]>
* @copyright 2014 Ushahidi
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3)
*/
define([ 'marionette', 'jquery', 'underscore',
/**
* Map Settings
*
* @module MapSettingsView
* @author Ushahidi Team <[email protected]>
* @copyright 2014 Ushahidi
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3)
*/
define([ 'marionette', 'jquery', 'underscore',
{
"name": "Ushahidi-Platform",
"version": "3.0.0-beta.5",
"dependencies": {
"requirejs": "~2.1",
"jquery": "~2.1",
"jquery.cookie": "~1.4",
"jquery-simplepicker": "~0.1",
"backbone": "~1.1",
"backbone.marionette": "~1.8",
<article class="body-wrapper">
<div class="row">
<section class="map-settings-box">
<div class="post-header">
<h5><i class="fa fa-map-marker"></i> Map Settings</h5>
</div> <!-- end .post-header -->
<div class="post-body">
<form>
/**
* Map Settings
*
* @module MapSettingsView
* @author Ushahidi Team <[email protected]>
* @copyright 2014 Ushahidi
* @license https://www.gnu.org/licenses/agpl-3.0.html GNU Affero General Public License Version 3 (AGPL3)
*/
define([ 'marionette', 'jquery', 'underscore',