I hereby claim:
- I am ercanozkaya on github.
- I am ercanozkaya (https://keybase.io/ercanozkaya) on keybase.
- I have a public key whose fingerprint is B0A6 E9BD A356 B535 A489 8557 99CA 0840 179C 46A7
To claim this, I am signing this object:
import sys, os, shutil, glob, zipfile | |
from xml.etree.ElementTree import ElementTree | |
class Packager: | |
temp = 'temp' | |
def __init__(self): | |
pass | |
def package(self, manifest_path): | |
self.manifest_path = manifest_path |
#!/usr/bin/python | |
import sys, os | |
source_dir = os.path.realpath(sys.argv[1]) | |
target_dir = os.path.realpath(sys.argv[2]) | |
""" | |
This function merges the source directory to target directory as symlinks | |
@Author: Israel D. Canasa (http://israelcanasa.com) |
#!/usr/bin/env python | |
import sys, os | |
help = """ | |
Usage: ./batch_symlinker destination projects [..] | |
Example: ./batch_symlinker joomla17 nooku-framework nooku-components fileman | |
""" | |
projects_dir = '/Users/ercan/Projects' | |
sites_dir = '/Users/ercan/www' |
<?php | |
/** | |
* @category Nooku | |
* @package Nooku_Server | |
* @subpackage Default | |
* @copyright Copyright (C) 2011 Timble CVBA and Contributors. (http://www.timble.net). | |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> | |
* @link http://www.nooku.org | |
*/ |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2276734/hack.sh | sh | |
# |
#!/bin/sh | |
# Credits to: | |
# - http://vstone.eu/reducing-vagrant-box-size/ | |
# - https://github.com/mitchellh/vagrant/issues/343 | |
# - https://gist.github.com/adrienbrault/3775253 | |
# Unmount project | |
umount /vagrant |
I hereby claim:
To claim this, I am signing this object:
kQuery(function($) { | |
var requests = [], | |
flattenArray = function(items){ | |
var object = {}; | |
$.each(items, function(i, item){ | |
object[item.name] = item.value; | |
}); | |
return object; | |
}, | |
getQueryString = function(form, defaults) { |
<?php | |
/** | |
* Put this file in the cli/ folder in your Joomla site and call it from the command line: | |
* $ php filename.php | |
*/ | |
@ini_set('memory_limit', -1); | |
@ini_set('xdebug.max_nesting_level', 2000); | |
const _JEXEC = 1; | |
const FOF_INCLUDED = 1; // Trick the system into believing FOF is already included |
$document_details = array( | |
'title' => 'document title', | |
'docman_category_id' => 1, | |
'storage_type' => 'file', | |
'storage_path' => 'path/to/the/file' // part of the path that comes after joomlatools-files/docman-files/ | |
); | |
$result = KObjectManager::getInstance()->getObject('com://site/docman.controller.document', array( | |
'request' => KObjectManager::getInstance()->getObject('request') | |
))->add($document_details); |