Skip to content

Instantly share code, notes, and snippets.

View dkobia's full-sized avatar

David Kobia dkobia

View GitHub Profile
diff --git a/ee_system/expressionengine/modules/member/mod.member_auth.php b/ee_system/expressionengine/modules/member/mod.member_auth.php
index 510fb4c..4d2aef9 100644
--- a/ee_system/expressionengine/modules/member/mod.member_auth.php
+++ b/ee_system/expressionengine/modules/member/mod.member_auth.php
@@ -94,7 +94,7 @@ class Member_auth extends Member {
/** Member Login
/** ----------------------------------------*/
function member_login()
- {
+ {
#!/bin/sh
# Remove Everything First ... Start From Scratch
rm -rf /Users/david/LOCALHOST/Swiftriver/*
# Syncs REPO with RIVER.DEV on LOCALHOST
rsync -a --exclude ".git/" --exclude ".gitignore" --exclude ".DS_Store" /Users/david/repos/Swiftriver/ /Users/david/LOCALHOST/Swiftriver/
mkdir /Users/david/LOCALHOST/Swiftriver/application/cache/
mkdir /Users/david/LOCALHOST/Swiftriver/application/logs/
#!/bin/sh
# Syncs Local Git Repo with Web
rm -rf /home/.sites/swiftriver/web/*
# Sync Files
# ** rsync doesn't copy over everything for some reason ... ??
#rsync -a --exclude ".git/" --exclude ".gitignore" --exclude ".DS_Store" /home/repo/ /home/.sites/swiftriver/web/
cp -rf /home/repo/* /home/.sites/swiftriver/web/
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* Config for Twitter Plugin
*
* PHP version 5
* LICENSE: This source file is subject to GPLv3 license
* that is available through the world-wide-web at the following URI:
* http://www.gnu.org/copyleft/gpl.html
* @author Ushahidi Team <[email protected]>
<?php
...
// Array of available channel options
'channel_options' => array(
// Channel option with type
'email' => array(
// Label of the option (*tip use i18n __('xxx'))
'label' => __('Email'),
// Option type (text, textarea, password, radio)
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var orig_width = $("#map").width();
var orig_height = $("#map").height();
currZoom = map.getZoom();
currCenter = map.getCenter();
$(".fullscreenmap_click").colorbox({
width:"100%",
@dkobia
dkobia / gist:1676525
Created January 25, 2012 14:31
Swift setup on local
#!/bin/sh
############################################################
############################################################
#
# - In terminal make the script executable by typing:
#
# chmod a+x (yourscriptname)
#
# - Then in finder right-click your file and select
# "Open with" and then "Other...".
PHP Parse error: syntax error, unexpected '}' in /Users/david/LOCALHOST/Swiftriver/application/classes/swiftriver/dropletqueue.php on line 153
PHP Stack trace:
PHP 1. {main}() /Users/david/LOCALHOST/Swiftriver/index.php:0
PHP 2. Kohana_Request->execute() /Users/david/LOCALHOST/Swiftriver/index.php:118
PHP 3. Kohana_Request_Client->execute() /Users/david/LOCALHOST/Swiftriver/system/classes/kohana/request.php:1138
PHP 4. Kohana_Request_Client_Internal->execute_request() /Users/david/LOCALHOST/Swiftriver/system/classes/kohana/request/client.php:64
PHP 5. ReflectionMethod->invoke() /Users/david/LOCALHOST/Swiftriver/system/classes/kohana/request/client/internal.php:118
PHP 6. Controller_Crawler_Main->action_index() /Users/david/LOCALHOST/Swiftriver/system/classes/kohana/request/client/internal.php:118
PHP 7. Swiftriver_Crawlers::do_crawl() /Users/david/LOCALHOST/Swiftriver/application/classes/controller/crawler/main.php:107
PHP 8. Swiftriver_Crawlers::do_schedule() /Users/david/LOCALHOST/Swiftrive
{
"results": {
"person": [
"Bill",
"Moi",
"Githu Muigai",
"Kibaki"
],
"organization": [
"Cabinet",
{
"results": {
"organization": [
"Howard University",
"New York Times"
],
"person": [
"Harris Brown",
"Logosou",
"HELENE COOPER",