Skip to content

Instantly share code, notes, and snippets.

View dkobia's full-sized avatar

David Kobia dkobia

View GitHub Profile
<?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]>
#!/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/
#!/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/
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()
- {
+ {
<%
dim Conn
dim rs
dim rs2
dim cn
dim str
dim msg
dim from
dim message
dim stmt
@dkobia
dkobia / gist:1245020
Created September 27, 2011 13:20
Reset.css
* {margin:0; padding:0;}
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {border:0; outline:0; vertical-align:baseline; background:transparent;}
.hidden {position:absolute; left:-1000em; top:-1000em; width:1px; height:1px; overflow:hidden;}
.noscreen {display:none;}
.box {min-height:1px;}
.box:after {display:block; visibility:hidden; clear:both; line-height:0; font-size:0; content:".";}
.fix {float:none; clear:both; width:0; height:0; margin:0; padding:0; border:0; line-height:0; font-size:0;}
.f-left {float:left !important;}
.f-right {float:right !important;}
.t-left {text-align:left !important;}
@dkobia
dkobia / gist:1233483
Created September 21, 2011 22:18 — forked from avalanche123/gist:981817
GitHub Emoji
:+1:
:-1:
:airplane:
:art:
:bear:
:beer:
:bike:
:bomb:
:book:
:bulb:
{
"id": "0854a69118ef3cadc54169624ca8c141",
"state": "new_content",
"text": [
{
"languageCode": "en",
"title": "I&#39;m dying to see MPs take anti-tax case to Mutunga - Daily Nation",
"text": [
null
]
{
"payload": {
"domain": "http://trunk.ushahidi.com/",
"incidents": [
{
"incident": {
"incidentid": "3495",
"incidenttitle": "Report with Photos",
"incidentdescription": "Test Report with Photos",
"incidentdate": "2010-03-31 13:21:00",
db.sources
{
"date": 1309101216,
"score": 4,
"name": "http://news.google.com/news?cf=all&ned=en_ke&hl=en&topic=h&num=3&output=rss",
"email": null,
"link": null,
"applicationIds": [],
"applicationProfileImages": [],
"parent": [],